extern void (*p)(void);
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 16 Mar 2001 16:01:35 +0000 (16:01 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 16 Mar 2001 16:01:35 +0000 (16:01 +0000)
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
src/SDCCsymt.h

index ae694d86d4c97a32c41d9ee59b661f0293a7a34a..a69710cd2ab27f397fe6e719c2dac78d9e3116d8 100644 (file)
@@ -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
index 764aa4ef6e39c44be52205c06f6d2460c0073913..c18f335982ea7cadf36b5160379886ee1e3e9e4f 100644 (file)
@@ -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