X-Git-Url: http://git.subgeniuskitty.com/pforth/.git/blobdiff_plain/49a54f16c613407ada65dee32493f4878d199aa1..2d8c3ec4828a9a6502a3b81334e1b50294d26fcc:/csrc/pf_core.c diff --git a/csrc/pf_core.c b/csrc/pf_core.c index 1736aa9..73ab1ff 100644 --- a/csrc/pf_core.c +++ b/csrc/pf_core.c @@ -39,18 +39,18 @@ ** Global Data ***************************************************************/ -char gScratch[TIB_SIZE]; +char gScratch[TIB_SIZE]; pfTaskData_t *gCurrentTask = NULL; pfDictionary_t *gCurrentDictionary; -cell_t gNumPrimitives; +cell_t gNumPrimitives; -ExecToken gLocalCompiler_XT; /* custom compiler for local variables */ -ExecToken gNumberQ_XT; /* XT of NUMBER? */ -ExecToken gQuitP_XT; /* XT of (QUIT) */ -ExecToken gAcceptP_XT; /* XT of ACCEPT */ +ExecToken gLocalCompiler_XT; /* custom compiler for local variables */ +ExecToken gNumberQ_XT; /* XT of NUMBER? */ +ExecToken gQuitP_XT; /* XT of (QUIT) */ +ExecToken gAcceptP_XT; /* XT of ACCEPT */ /* Depth of data stack when colon called. */ -cell_t gDepthAtColon; +cell_t gDepthAtColon; /* Global Forth variables. */ cell_t gVarContext; /* Points to last name field. */ @@ -64,8 +64,8 @@ cell_t gVarQuiet; /* Suppress unnecessary messages, OK, etc. */ cell_t gVarReturnCode; /* Returned to caller of Forth, eg. UNIX shell. */ /* data for INCLUDE that allows multiple nested files. */ -IncludeFrame gIncludeStack[MAX_INCLUDE_DEPTH]; -cell_t gIncludeIndex; +IncludeFrame gIncludeStack[MAX_INCLUDE_DEPTH]; +cell_t gIncludeIndex; static void pfResetForthTask( void ); static void pfInit( void ); @@ -170,9 +170,9 @@ nomem: ** Dictionary Management ***************************************************************/ -cell_t pfExecIfDefined( const char *CString ) +ThrowCode pfExecIfDefined( const char *CString ) { - int result = 0; + ThrowCode result = 0; if( NAME_BASE != (cell_t)NULL) { ExecToken XT; @@ -427,11 +427,11 @@ void pfMessage( const char *CString ) /************************************************************************** ** Main entry point for pForth. */ -cell_t pfDoForth( const char *DicFileName, const char *SourceName, cell_t IfInit ) +ThrowCode pfDoForth( const char *DicFileName, const char *SourceName, cell_t IfInit ) { pfTaskData_t *cftd; pfDictionary_t *dic = NULL; - cell_t Result = 0; + ThrowCode Result = 0; ExecToken EntryPoint = 0; #ifdef PF_USER_INIT