Author: blueswirl Date: 2008-12-23 11:12:09 +0100 (Tue, 23 Dec 2008) New Revision: 310
Modified: openbios-devel/kernel/internal.c openbios-devel/kernel/primitives.c Log: Make words array static and change the definition to a stricter one
Modified: openbios-devel/kernel/internal.c =================================================================== --- openbios-devel/kernel/internal.c 2008-12-23 10:09:04 UTC (rev 309) +++ openbios-devel/kernel/internal.c 2008-12-23 10:12:09 UTC (rev 310) @@ -13,7 +13,9 @@ * - address pointed by CFA is executed by CPU */
-extern void * const words[]; +typedef void forth_word(void); + +static forth_word * const words[]; ucell PC; volatile int runforth = 0;
Modified: openbios-devel/kernel/primitives.c =================================================================== --- openbios-devel/kernel/primitives.c 2008-12-23 10:09:04 UTC (rev 309) +++ openbios-devel/kernel/primitives.c 2008-12-23 10:12:09 UTC (rev 310) @@ -39,8 +39,7 @@ * THE END). ANY OTHER CHANGE WILL BREAK COMPATIBILITY TO OLDER * BINARY DICTIONARIES. */ -void * const words[] = { - +static forth_word * const words[] = { /* * CFAs and special words */