=================================================================== RCS file: /home/cvs/OpenXM/src/kan96xx/Kan/option.c,v retrieving revision 1.5 retrieving revision 1.8 diff -u -p -r1.5 -r1.8 --- OpenXM/src/kan96xx/Kan/option.c 2001/05/04 01:06:24 1.5 +++ OpenXM/src/kan96xx/Kan/option.c 2003/07/17 23:37:02 1.8 @@ -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.7 2003/07/17 07:33:03 takayama Exp $ */ #include #include "datatype.h" #include "stackm.h" @@ -50,6 +50,8 @@ struct object KsystemVariable(ob) 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 +179,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"); } @@ -292,6 +298,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"); }