From 69508e66a15af273c521df35fe06e189437e53f2 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Tue, 23 Dec 2008 10:12:09 +0000 Subject: [PATCH] Make words array static and change the definition to a stricter one git-svn-id: svn://coreboot.org/openbios/openbios-devel@310 f158a5a8-5612-0410-a976-696ce0be7e32 --- kernel/internal.c | 4 +++- kernel/primitives.c | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/kernel/internal.c b/kernel/internal.c index f18ecc8..63236d1 100644 --- a/kernel/internal.c +++ b/kernel/internal.c @@ -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; diff --git a/kernel/primitives.c b/kernel/primitives.c index 17b5398..67102b2 100644 --- a/kernel/primitives.c +++ b/kernel/primitives.c @@ -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 */