insert reentrant for mcs51
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 31 Oct 2001 21:58:01 +0000 (21:58 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 31 Oct 2001 21:58:01 +0000 (21:58 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1480 4a8a32a2-be11-0410-ad9d-d568d2c75423

support/regression/tests/funptrs.c

index 6288d94d4def2514782913b93dd54c2ac42f8829..3e584cf5269ebcc60e59bcc23543cdfc0fa9327d 100644 (file)
@@ -6,7 +6,7 @@
    on the z80.
 */
 typedef void (*NOARGFUNPTR)(void);
-typedef void (*ONEARGFUNPTR)(int);
+typedef void (*ONEARGFUNPTR)(int) REENTRANT;
 
 int count;
 
@@ -17,7 +17,7 @@ incCount(void)
 }
 
 void
-incBy(int a)
+incBy(int a) REENTRANT
 {
   count += a;
 }