From 6797e238f839e2c19c7554e6243153384e5907ee Mon Sep 17 00:00:00 2001 From: johanknol Date: Fri, 16 Mar 2001 16:01:35 +0000 Subject: [PATCH] extern void (*p)(void); void (*p)(void); The declated pointer was changed to CPOINTER, but the symbol wasn't. git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@688 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCsymt.c | 2 +- src/SDCCsymt.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SDCCsymt.c b/src/SDCCsymt.c index ae694d86..a69710cd 100644 --- a/src/SDCCsymt.c +++ b/src/SDCCsymt.c @@ -790,7 +790,7 @@ addSymChain (symbol * symHead) for (; sym != NULL; sym = sym->next) { - + changePointer(sym); /* if already exists in the symbol table then check if the previous was an extern definition if yes then then check if the type match, if the types match then diff --git a/src/SDCCsymt.h b/src/SDCCsymt.h index 764aa4ef..c18f3359 100644 --- a/src/SDCCsymt.h +++ b/src/SDCCsymt.h @@ -444,6 +444,8 @@ void deleteSym (bucket **, void *, char *); void *findSym (bucket **, void *, const char *); void *findSymWithLevel (bucket **, struct symbol *); void *findSymWithBlock (bucket **, struct symbol *, int); +void changePointer (symbol * sym); + #include "SDCCmem.h" #endif -- 2.47.2