[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.14 and 1.15

version 1.14, 2003/11/20 09:20:36 version 1.15, 2004/09/17 02:42:57
Line 1 
Line 1 
 /* $OpenXM: OpenXM/src/kan96xx/Kan/option.c,v 1.13 2003/08/21 02:30:23 takayama Exp $ */  /* $OpenXM: OpenXM/src/kan96xx/Kan/option.c,v 1.14 2003/11/20 09:20:36 takayama Exp $ */
 #include <stdio.h>  #include <stdio.h>
 #include "datatype.h"  #include "datatype.h"
 #include "stackm.h"  #include "stackm.h"
Line 57  struct object KsystemVariable(ob)
Line 57  struct object KsystemVariable(ob)
   extern int DoCancel;    extern int DoCancel;
   extern int DebugContentReduction;    extern int DebugContentReduction;
   extern int QuoteMode;    extern int QuoteMode;
     extern int RestrictedMode, RestrictedMode_saved;
   
   int n,i;    int n,i;
   struct object ob1,ob2,ob3,ob4;    struct object ob1,ob2,ob3,ob4;
Line 184  struct object KsystemVariable(ob)
Line 185  struct object KsystemVariable(ob)
         rob = KpoString(RightBracket);          rob = KpoString(RightBracket);
       }else if (strcmp(ob1.lc.str,"SecureMode")==0) {        }else if (strcmp(ob1.lc.str,"SecureMode")==0) {
         rob = KpoInteger(SecureMode);          rob = KpoInteger(SecureMode);
         }else if (strcmp(ob1.lc.str,"RestrictedMode")==0) {
           rob = KpoInteger(RestrictedMode);
       }else if (strcmp(ob1.lc.str,"Ecart")==0) {        }else if (strcmp(ob1.lc.str,"Ecart")==0) {
         rob = KpoInteger(Ecart);          rob = KpoInteger(Ecart);
       }else if (strcmp(ob1.lc.str,"EcartAutomaticHomogenization")==0) {        }else if (strcmp(ob1.lc.str,"EcartAutomaticHomogenization")==0) {
Line 314  struct object KsystemVariable(ob)
Line 317  struct object KsystemVariable(ob)
           errorKan1("%s\n","You cannot weaken the security level.");            errorKan1("%s\n","You cannot weaken the security level.");
         }          }
         rob = KpoInteger(SecureMode);          rob = KpoInteger(SecureMode);
         }else if (strcmp(ob1.lc.str,"RestrictedMode") == 0) {
           if (KopInteger(ob2) >= RestrictedMode) {
             RestrictedMode = KopInteger(ob2);
             RestrictedMode_saved = RestrictedMode;
           }else{
             errorKan1("%s\n","You cannot weaken the RestrictedMode level.");
           }
           rob = KpoInteger(RestrictedMode);
       }else if (strcmp(ob1.lc.str,"Ecart") == 0) {        }else if (strcmp(ob1.lc.str,"Ecart") == 0) {
         Ecart = KopInteger(ob2);          Ecart = KopInteger(ob2);
         rob = KpoInteger(Ecart);          rob = KpoInteger(Ecart);

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

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