[BACK]Return to option.c CVS log [TXT][DIR] Up to [local] / OpenXM / src / kan96xx / Kan

Diff for /OpenXM/src/kan96xx/Kan/option.c between version 1.1 and 1.3

version 1.1, 1999/10/08 02:12:01 version 1.3, 2000/02/24 00:27:12
Line 1 
Line 1 
   /* $OpenXM: OpenXM/src/kan96xx/Kan/option.c,v 1.2 1999/11/07 13:24:19 takayama Exp $ */
 #include <stdio.h>  #include <stdio.h>
 #include "datatype.h"  #include "datatype.h"
 #include "stackm.h"  #include "stackm.h"
Line 24  struct object ob; /* Sarray */
Line 25  struct object ob; /* Sarray */
   extern int CheckHomogenization;    extern int CheckHomogenization;
   extern int Homogenize;    extern int Homogenize;
   extern int Statistics;    extern int Statistics;
     extern int AutoReduce;
   extern int Osp;    extern int Osp;
   extern struct operandStack StandardStack;    extern struct operandStack StandardStack;
   extern struct operandStack ErrorStack;    extern struct operandStack ErrorStack;
Line 45  struct object ob; /* Sarray */
Line 47  struct object ob; /* Sarray */
   extern int DebugReductionRed; /* hidden option */    extern int DebugReductionRed; /* hidden option */
   extern char *VersionString;    extern char *VersionString;
   extern int AvoidTheSameRing;    extern int AvoidTheSameRing;
     extern char *LeftBracket;
     extern char *RightBracket;
   
   int n,i;    int n,i;
   struct object ob1,ob2,ob3,ob4;    struct object ob1,ob2,ob3,ob4;
Line 92  struct object ob; /* Sarray */
Line 96  struct object ob; /* Sarray */
         rob = KpoInteger(Homogenize);          rob = KpoInteger(Homogenize);
       }else if (strcmp(ob1.lc.str,"Statistics") == 0) {        }else if (strcmp(ob1.lc.str,"Statistics") == 0) {
         rob = KpoInteger(Statistics);          rob = KpoInteger(Statistics);
         }else if (strcmp(ob1.lc.str,"AutoReduce") == 0) {
           rob = KpoInteger(AutoReduce);
       }else if (strcmp(ob1.lc.str,"StackPointer") == 0) {        }else if (strcmp(ob1.lc.str,"StackPointer") == 0) {
         rob = KpoInteger(Osp);          rob = KpoInteger(Osp);
       }else if (strcmp(ob1.lc.str,"StandardOperandStack") == 0) {        }else if (strcmp(ob1.lc.str,"StandardOperandStack") == 0) {
Line 164  struct object ob; /* Sarray */
Line 170  struct object ob; /* Sarray */
         rob = KSpop(); /* This is exceptional style */          rob = KSpop(); /* This is exceptional style */
       }else if (strcmp(ob1.lc.str,"AvoidTheSameRing")==0) {        }else if (strcmp(ob1.lc.str,"AvoidTheSameRing")==0) {
         rob = KpoInteger(AvoidTheSameRing);          rob = KpoInteger(AvoidTheSameRing);
         }else if (strcmp(ob1.lc.str,"LeftBracket")==0) {
           rob = KpoString(LeftBracket);
         }else if (strcmp(ob1.lc.str,"RightBracket")==0) {
           rob = KpoString(RightBracket);
       }else{        }else{
         warningKan("KsystemVariable():Unknown key word.\n");          warningKan("KsystemVariable():Unknown key word.\n");
       }        }
Line 216  struct object ob; /* Sarray */
Line 226  struct object ob; /* Sarray */
       }else if (strcmp(ob1.lc.str,"Statistics") == 0) {        }else if (strcmp(ob1.lc.str,"Statistics") == 0) {
         Statistics = ob2.lc.ival;          Statistics = ob2.lc.ival;
         rob = KpoInteger(Statistics);          rob = KpoInteger(Statistics);
         }else if (strcmp(ob1.lc.str,"AutoReduce") == 0) {
           AutoReduce = ob2.lc.ival;
           rob = KpoInteger(AutoReduce);
       }else if (strcmp(ob1.lc.str,"ErrorMessageMode") == 0) {        }else if (strcmp(ob1.lc.str,"ErrorMessageMode") == 0) {
         ErrorMessageMode = ob2.lc.ival;          ErrorMessageMode = ob2.lc.ival;
         rob = KpoInteger(ErrorMessageMode);          rob = KpoInteger(ErrorMessageMode);
Line 277  struct object ob; /* Sarray */
Line 290  struct object ob; /* Sarray */
       if (strcmp(ob1.lc.str,"ringName") == 0) {        if (strcmp(ob1.lc.str,"ringName") == 0) {
         CurrentRingp->name = KopString(ob2);          CurrentRingp->name = KopString(ob2);
         rob = KpoString(CurrentRingp->name);          rob = KpoString(CurrentRingp->name);
         }else if (strcmp(ob1.lc.str,"LeftBracket") == 0) {
           LeftBracket = KopString(ob2);
           rob = KpoString(LeftBracket);
         }else if (strcmp(ob1.lc.str,"RightBracket") == 0) {
           RightBracket = KopString(ob2);
           rob = KpoString(RightBracket);
       }else{        }else{
         warningKan("KsystemVariable():Unknown key word.\n");          warningKan("KsystemVariable():Unknown key word.\n");
       }        }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>