From eb094ecf6a07f4aa8063c5ed96f9eb4875456807 Mon Sep 17 00:00:00 2001 From: mrdudz Date: Wed, 22 Jul 2020 00:21:23 +0200 Subject: [PATCH] remove ifdef magic --- test/val/ptrfunc.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/test/val/ptrfunc.c b/test/val/ptrfunc.c index 4aa23b77b..78e53e254 100644 --- a/test/val/ptrfunc.c +++ b/test/val/ptrfunc.c @@ -6,7 +6,7 @@ #include -#define NO_IMPLICIT_FUNCPTR_CONV +/* #define SUPPORT_BIT_TYPES */ unsigned char success=0; unsigned char failures=0; @@ -33,15 +33,9 @@ volatile unsigned char uchar1 = 0; volatile unsigned char uchar2 = 0; #endif -#ifdef NO_IMPLICIT_FUNCPTR_CONV void (*pfunc)(void); void (*p1func)(void); unsigned char (*pcfunc)(void); -#else -void (*pfunc)(); -void (*p1func)(); -unsigned char (*pcfunc)(); -#endif void done() { @@ -79,11 +73,7 @@ void docall1() } } -#ifdef NO_IMPLICIT_FUNCPTR_CONV -void docall2( void(*pf)(void) ) -#else void docall2( void(*pf)() ) -#endif { unsigned char i; for(i = 0; i < 2; i++) {