| version 1.13, 2003/11/20 09:20:36 |
version 1.14, 2003/12/05 13:51:31 |
|
|
| /* $OpenXM: OpenXM/src/kan96xx/Kan/stackmachine.c,v 1.12 2002/11/07 23:35:23 takayama Exp $ */ |
/* $OpenXM: OpenXM/src/kan96xx/Kan/stackmachine.c,v 1.13 2003/11/20 09:20:36 takayama Exp $ */ |
| /* stackmachin.c */ |
/* stackmachin.c */ |
| |
|
| #include <stdio.h> |
#include <stdio.h> |
| Line 734 void scanner() { |
|
| Line 734 void scanner() { |
|
| char *tmp2; |
char *tmp2; |
| extern int ErrorMessageMode; |
extern int ErrorMessageMode; |
| int jval; |
int jval; |
| |
extern int InSendmsg2; |
| getokenSM(INIT); |
getokenSM(INIT); |
| initSystemDictionary(); |
initSystemDictionary(); |
| |
|
| Line 818 void scanner() { |
|
| Line 819 void scanner() { |
|
| } |
} |
| KSexecuteString(" ctrlC-hook "); /* Execute User Defined functions. */ |
KSexecuteString(" ctrlC-hook "); /* Execute User Defined functions. */ |
| KSexecuteString(" (Computation is interrupted.) "); /* move to ctrlC-hook? */ |
KSexecuteString(" (Computation is interrupted.) "); /* move to ctrlC-hook? */ |
| |
InSendmsg2 = 0; |
| continue ; |
continue ; |
| } else { } |
} else { } |
| if (DebugStack >= 1) { printOperandStack(); } |
if (DebugStack >= 1) { printOperandStack(); } |
|
|
| extern int SGClock; |
extern int SGClock; |
| extern int UserCtrlC; |
extern int UserCtrlC; |
| extern int OXlock; |
extern int OXlock; |
| |
|
| signal(sig,SIG_IGN); |
signal(sig,SIG_IGN); |
| /* see 133p */ |
/* see 133p */ |
| cancelAlarm(); |
cancelAlarm(); |
| Line 899 int executeToken(token) |
|
| Line 901 int executeToken(token) |
|
| int i,h0,h1; |
int i,h0,h1; |
| extern int WarningMessageMode; |
extern int WarningMessageMode; |
| extern int Strict; |
extern int Strict; |
| |
extern int InSendmsg2; |
| |
|
| if (GotoP) { /* for goto */ |
if (GotoP) { /* for goto */ |
| if (token.kind == ID && isLiteral(token.token)) { |
if (token.kind == ID && isLiteral(token.token)) { |
| Line 963 int executeToken(token) |
|
| Line 966 int executeToken(token) |
|
| ob.lc.ival = primitive; |
ob.lc.ival = primitive; |
| return(executePrimitive(ob)); |
return(executePrimitive(ob)); |
| } else { |
} else { |
| if (QuoteMode) { |
if (QuoteMode) { |
| return(DO_QUOTE); |
if (InSendmsg2) return(DO_QUOTE); |
| |
else { |
| |
Kpush(KpoString(token.token)); |
| |
return(0); /* normal exit.*/ |
| |
} |
| } |
} |
| if (WarningMessageMode == 1 || WarningMessageMode == 2) { |
if (WarningMessageMode == 1 || WarningMessageMode == 2) { |
| char tmpc[1024]; |
char tmpc[1024]; |