From 3f44e21b12db32b6bf44dee7f44f4c88bf371c70 Mon Sep 17 00:00:00 2001 From: cuz Date: Mon, 31 Mar 2008 21:13:10 +0000 Subject: [PATCH] Fixed bugs in the macro versions of the GetStringId inline functions. git-svn-id: svn://svn.cc65.org/cc65/trunk@3826 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ca65/spool.h | 4 ++-- src/ld65/spool.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ca65/spool.h b/src/ca65/spool.h index 9066bc9a1..65391a14b 100644 --- a/src/ca65/spool.h +++ b/src/ca65/spool.h @@ -76,7 +76,7 @@ INLINE unsigned GetStringId (const char* S) return SP_AddStr (&StrPool, S); } #else -# define GetStringId(S) SP_Add (&StrPool, (S)) +# define GetStringId(S) SP_AddStr (&StrPool, (S)) #endif #if defined(HAVE_INLINE) @@ -101,7 +101,7 @@ INLINE const char* GetString (unsigned Index) void WriteStrPool (void); /* Write the string pool to the object file */ - + /* End of spool.h */ diff --git a/src/ld65/spool.h b/src/ld65/spool.h index 4cbdbcb80..ec3e7d8d2 100644 --- a/src/ld65/spool.h +++ b/src/ld65/spool.h @@ -80,7 +80,7 @@ INLINE unsigned GetStringId (const char* S) return SP_AddStr (&StrPool, S); } #else -# define GetStringId(S) SP_Add (&StrPool, (S)) +# define GetStringId(S) SP_AddStr (&StrPool, (S)) #endif #if defined(HAVE_INLINE) -- 2.39.5