fix hexadecimal flags :-(

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1242 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc 2005-02-08 18:38:02 +00:00
parent ab686d4ebe
commit ab2f7a7536

View File

@ -10,7 +10,7 @@
* File: Yap.h.m4 * * File: Yap.h.m4 *
* mods: * * mods: *
* comments: main header file for YAP * * comments: main header file for YAP *
* version: $Id: Yap.h.m4,v 1.78 2005-02-08 18:05:07 vsc Exp $ * * version: $Id: Yap.h.m4,v 1.79 2005-02-08 18:38:02 vsc Exp $ *
*************************************************************************/ *************************************************************************/
#include "config.h" #include "config.h"
@ -901,21 +901,21 @@ typedef struct opcode_tab_entry {
/********* Prolog may be in several modes *******************************/ /********* Prolog may be in several modes *******************************/
typedef enum { typedef enum {
BootMode = 1, /* if booting or restoring */ BootMode = 0x1, /* if booting or restoring */
UserMode = 2, /* Normal mode */ UserMode = 0x2, /* Normal mode */
CritMode = 4, /* If we are meddling with the heap */ CritMode = 0x4, /* If we are meddling with the heap */
AbortMode = 8, /* expecting to abort */ AbortMode = 0x8, /* expecting to abort */
InterruptMode = 16, /* under an interrupt */ InterruptMode = 0x10, /* under an interrupt */
InErrorMode = 32, /* under an interrupt */ InErrorMode = 0x20, /* under an interrupt */
ConsoleGetcMode = 64, /* blocked reading from console */ ConsoleGetcMode = 0x40, /* blocked reading from console */
ExtendStackMode = 128, /* trying to extend stack */ ExtendStackMode = 0x80, /* trying to extend stack */
GrowHeapMode = 256, /* extending Heap */ GrowHeapMode = 0x100, /* extending Heap */
GrowStackMode = 512, /* extending Stack */ GrowStackMode = 0x200, /* extending Stack */
GCMode = 1024, /* doing Garbage Collecting */ GCMode = 0x400, /* doing Garbage Collecting */
ErrorHandlingMode = 2048, /* doing error handling */ ErrorHandlingMode = 0x800, /* doing error handling */
CCallMode = 4096, /* In c Call */ CCallMode = 0x1000, /* In c Call */
UnifyMode = 8192, /* In Unify Code */ UnifyMode = 0x2000, /* In Unify Code */
UserCCallMode = 16284 /* In User C-call Code */ UserCCallMode = 0x4000 /* In User C-call Code */
} prolog_exec_mode; } prolog_exec_mode;
extern prolog_exec_mode Yap_PrologMode; extern prolog_exec_mode Yap_PrologMode;