X-Git-Url: http://git.subgeniuskitty.com/pforth/.git/blobdiff_plain/2d8c3ec4828a9a6502a3b81334e1b50294d26fcc..1981b813499b63d5f2c416654197cedfd2887d27:/csrc/pf_core.c diff --git a/csrc/pf_core.c b/csrc/pf_core.c index 73ab1ff..872b3a4 100644 --- a/csrc/pf_core.c +++ b/csrc/pf_core.c @@ -71,11 +71,16 @@ static void pfResetForthTask( void ); static void pfInit( void ); static void pfTerm( void ); -/* TODO move to pf_config.h header. */ #define DEFAULT_RETURN_DEPTH (512) #define DEFAULT_USER_DEPTH (512) -#define DEFAULT_HEADER_SIZE (120000) -#define DEFAULT_CODE_SIZE (300000) + +#ifndef PF_DEFAULT_HEADER_SIZE +#define PF_DEFAULT_HEADER_SIZE (120000) +#endif + +#ifndef PF_DEFAULT_CODE_SIZE +#define PF_DEFAULT_CODE_SIZE (300000) +#endif /* Initialize globals in a function to simplify loading on * embedded systems which may not support initialization of data section. @@ -486,7 +491,7 @@ ThrowCode pfDoForth( const char *DicFileName, const char *SourceName, cell_t IfI if( IfInit ) { pfDebugMessage("Build dictionary from scratch.\n"); - dic = pfBuildDictionary( DEFAULT_HEADER_SIZE, DEFAULT_CODE_SIZE ); + dic = pfBuildDictionary( PF_DEFAULT_HEADER_SIZE, PF_DEFAULT_CODE_SIZE ); } else #else