=================================================================== RCS file: /home/cvs/OpenXM/src/kan96xx/Kan/option.c,v retrieving revision 1.5 retrieving revision 1.9 diff -u -p -r1.5 -r1.9 --- OpenXM/src/kan96xx/Kan/option.c 2001/05/04 01:06:24 1.5 +++ OpenXM/src/kan96xx/Kan/option.c 2003/07/29 08:36:40 1.9 @@ -1,4 +1,4 @@ -/* $OpenXM: OpenXM/src/kan96xx/Kan/option.c,v 1.4 2000/02/24 12:33:47 takayama Exp $ */ +/* $OpenXM: OpenXM/src/kan96xx/Kan/option.c,v 1.8 2003/07/17 23:37:02 takayama Exp $ */ #include #include "datatype.h" #include "stackm.h" @@ -45,11 +45,14 @@ struct object KsystemVariable(ob) extern int Homogenize_vec; extern int CmoDMSOutputOption; extern int DebugReductionRed; /* hidden option */ + extern int DebugReductionEcart; extern char *VersionString; extern int AvoidTheSameRing; extern char *LeftBracket; extern char *RightBracket; extern int SecureMode; + extern int Ecart; + extern int EcartAutomaticHomogenization; int n,i; struct object ob1,ob2,ob3,ob4; @@ -177,6 +180,10 @@ struct object KsystemVariable(ob) rob = KpoString(RightBracket); }else if (strcmp(ob1.lc.str,"SecureMode")==0) { rob = KpoInteger(SecureMode); + }else if (strcmp(ob1.lc.str,"Ecart")==0) { + rob = KpoInteger(Ecart); + }else if (strcmp(ob1.lc.str,"EcartAutomaticHomogenization")==0) { + rob = KpoInteger(EcartAutomaticHomogenization); }else{ warningKan("KsystemVariable():Unknown key word.\n"); } @@ -282,6 +289,9 @@ struct object KsystemVariable(ob) }else if (strcmp(ob1.lc.str,"DebugReductionRed") == 0) { DebugReductionRed = KopInteger(ob2); rob = KpoInteger(DebugReductionRed); + }else if (strcmp(ob1.lc.str,"DebugReductionEcart") == 0) { + DebugReductionEcart = KopInteger(ob2); + rob = KpoInteger(DebugReductionEcart); }else if (strcmp(ob1.lc.str,"AvoidTheSameRing") == 0) { AvoidTheSameRing = KopInteger(ob2); rob = KpoInteger(AvoidTheSameRing); @@ -292,6 +302,12 @@ struct object KsystemVariable(ob) errorKan1("%s\n","You cannot weaken the security level."); } rob = KpoInteger(SecureMode); + }else if (strcmp(ob1.lc.str,"Ecart") == 0) { + Ecart = KopInteger(ob2); + rob = KpoInteger(Ecart); + }else if (strcmp(ob1.lc.str,"EcartAutomaticHomogenization") == 0) { + Ecart = KopInteger(ob2); + rob = KpoInteger(EcartAutomaticHomogenization); }else{ warningKan("KsystemVariable():Unknown key word.\n"); }