version 1.17, 2006/12/21 05:29:49 |
version 1.20, 2016/03/31 05:27:34 |
|
|
/* $OpenXM: OpenXM/src/kan96xx/Kan/option.c,v 1.16 2005/06/16 05:07:23 takayama Exp $ */ |
/* $OpenXM: OpenXM/src/kan96xx/Kan/option.c,v 1.19 2016/03/31 03:22:54 takayama Exp $ */ |
#include <stdio.h> |
#include <stdio.h> |
#include "datatype.h" |
#include "datatype.h" |
#include "stackm.h" |
#include "stackm.h" |
|
|
#include "kclass.h" |
#include "kclass.h" |
#include "lookup.h" |
#include "lookup.h" |
#include <signal.h> |
#include <signal.h> |
|
#include "mysig.h" |
|
|
extern void ctrlC(); |
extern void ctrlC(); |
|
|
Line 17 struct object KsystemVariable(ob) |
|
Line 18 struct object KsystemVariable(ob) |
|
/* Don't forget to write the keys in usage.c */ |
/* Don't forget to write the keys in usage.c */ |
extern int PrintDollar; |
extern int PrintDollar; |
extern int Wrap; |
extern int Wrap; |
|
extern int COutput; |
extern struct ring *CurrentRingp; |
extern struct ring *CurrentRingp; |
extern int Verbose; |
extern int Verbose; |
extern int UseCriterion1; |
extern int UseCriterion1; |
Line 75 struct object KsystemVariable(ob) |
|
Line 77 struct object KsystemVariable(ob) |
|
rob = KpoInteger(PrintDollar); |
rob = KpoInteger(PrintDollar); |
}else if (strcmp(ob1.lc.str,"Wrap") == 0) { |
}else if (strcmp(ob1.lc.str,"Wrap") == 0) { |
rob = KpoInteger(Wrap); |
rob = KpoInteger(Wrap); |
|
}else if (strcmp(ob1.lc.str,"COutput") == 0) { |
|
rob = KpoInteger(COutput); |
}else if (strcmp(ob1.lc.str,"P") == 0) { |
}else if (strcmp(ob1.lc.str,"P") == 0) { |
rob = KpoInteger(CurrentRingp->p); |
rob = KpoInteger(CurrentRingp->p); |
}else if (strcmp(ob1.lc.str,"N") == 0) { |
}else if (strcmp(ob1.lc.str,"N") == 0) { |
Line 229 struct object KsystemVariable(ob) |
|
Line 233 struct object KsystemVariable(ob) |
|
P = ob2.lc.ival; Q should be set here too. |
P = ob2.lc.ival; Q should be set here too. |
CurrentRingp->p = P; |
CurrentRingp->p = P; |
rob = KpoInteger(P); */ |
rob = KpoInteger(P); */ |
|
}else if (strcmp(ob1.lc.str,"COutput") == 0) { |
|
COutput = ob2.lc.ival; |
|
rob = KpoInteger(COutput); |
}else if (strcmp(ob1.lc.str,"NN") == 0) { |
}else if (strcmp(ob1.lc.str,"NN") == 0) { |
if (ob2.lc.ival <= CurrentRingp->n && ob2.lc.ival >= CurrentRingp->m) { |
if (ob2.lc.ival <= CurrentRingp->n && ob2.lc.ival >= CurrentRingp->m) { |
CurrentRingp->nn = ob2.lc.ival; |
CurrentRingp->nn = ob2.lc.ival; |
Line 277 struct object KsystemVariable(ob) |
|
Line 284 struct object KsystemVariable(ob) |
|
rob = KpoInteger(Strict2); |
rob = KpoInteger(Strict2); |
}else if (strcmp(ob1.lc.str,"SigIgn") == 0) { |
}else if (strcmp(ob1.lc.str,"SigIgn") == 0) { |
SigIgn = ob2.lc.ival; |
SigIgn = ob2.lc.ival; |
if (SigIgn) signal(SIGINT,SIG_IGN); |
if (SigIgn) mysignal(SIGINT,SIG_IGN); |
else signal(SIGINT,ctrlC); |
else mysignal(SIGINT,ctrlC); |
rob = KpoInteger(SigIgn); |
rob = KpoInteger(SigIgn); |
}else if (strcmp(ob1.lc.str,"KSPushEnvMode") == 0) { |
}else if (strcmp(ob1.lc.str,"KSPushEnvMode") == 0) { |
KSPushEnvMode = ob2.lc.ival; |
KSPushEnvMode = ob2.lc.ival; |