version 1.11, 2003/08/19 08:02:10 |
version 1.15, 2004/09/17 02:42:57 |
|
|
/* $OpenXM: OpenXM/src/kan96xx/Kan/option.c,v 1.10 2003/07/30 09:00:52 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 54 struct object KsystemVariable(ob) |
|
Line 54 struct object KsystemVariable(ob) |
|
extern int Ecart; |
extern int Ecart; |
extern int EcartAutomaticHomogenization; |
extern int EcartAutomaticHomogenization; |
extern int TraceLift; |
extern int TraceLift; |
|
extern int DoCancel; |
|
extern int DebugContentReduction; |
|
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 181 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) { |
rob = KpoInteger(EcartAutomaticHomogenization); |
rob = KpoInteger(EcartAutomaticHomogenization); |
}else if (strcmp(ob1.lc.str,"TraceLift")==0) { |
}else if (strcmp(ob1.lc.str,"TraceLift")==0) { |
rob = KpoInteger(TraceLift); |
rob = KpoInteger(TraceLift); |
|
}else if (strcmp(ob1.lc.str,"DoCancel")==0) { |
|
rob = KpoInteger(DoCancel); |
|
}else if (strcmp(ob1.lc.str,"DebugContentReduction")==0) { |
|
rob = KpoInteger(DebugContentReduction); |
|
}else if (strcmp(ob1.lc.str,"QuoteMode")==0) { |
|
rob = KpoInteger(QuoteMode); |
}else{ |
}else{ |
warningKan("KsystemVariable():Unknown key word.\n"); |
warningKan("KsystemVariable():Unknown key word.\n"); |
} |
} |
Line 305 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); |
Line 314 struct object KsystemVariable(ob) |
|
Line 334 struct object KsystemVariable(ob) |
|
}else if (strcmp(ob1.lc.str,"TraceLift") == 0) { |
}else if (strcmp(ob1.lc.str,"TraceLift") == 0) { |
TraceLift = KopInteger(ob2); |
TraceLift = KopInteger(ob2); |
rob = KpoInteger(TraceLift); |
rob = KpoInteger(TraceLift); |
|
}else if (strcmp(ob1.lc.str,"DoCancel") == 0) { |
|
DoCancel = KopInteger(ob2); |
|
rob = KpoInteger(DoCancel); |
|
}else if (strcmp(ob1.lc.str,"DebugContentReduction") == 0) { |
|
DebugContentReduction = KopInteger(ob2); |
|
rob = KpoInteger(DebugContentReduction); |
|
}else if (strcmp(ob1.lc.str,"QuoteMode") == 0) { |
|
QuoteMode = KopInteger(ob2); |
|
rob = KpoInteger(QuoteMode); |
}else{ |
}else{ |
warningKan("KsystemVariable():Unknown key word.\n"); |
warningKan("KsystemVariable():Unknown key word.\n"); |
} |
} |