From df900e30b85b1b8f27e1a4d997555d07333591e7 Mon Sep 17 00:00:00 2001 From: mrdudz Date: Tue, 21 Jul 2020 23:50:23 +0200 Subject: [PATCH] removed references to macros from common.h --- test/ref/cc65110210.c | 17 ----------------- test/ref/wf1.c | 22 ---------------------- 2 files changed, 39 deletions(-) diff --git a/test/ref/cc65110210.c b/test/ref/cc65110210.c index ca5b39203..319b2c529 100644 --- a/test/ref/cc65110210.c +++ b/test/ref/cc65110210.c @@ -20,27 +20,10 @@ cl65: Subprocess 'ld65' aborted by signal 11 */ -/* #define STANDALONE */ - #include #include -#ifdef STANDALONE - -#define NO_IMPLICIT_FUNCPTR_CONV - -#define OPENTEST() -#define CLOSETEST() - -#else - -#endif - -#ifdef NO_IMPLICIT_FUNCPTR_CONV -void (*p1func)(void); -#else void (*p1func)(); -#endif void func(void) { diff --git a/test/ref/wf1.c b/test/ref/wf1.c index e1ed7a417..574e7205f 100644 --- a/test/ref/wf1.c +++ b/test/ref/wf1.c @@ -25,35 +25,21 @@ int next; /* index of next free entry in words */ /*struct node *lookup();*/ -#if defined(NO_NEW_PROTOTYPES_FOR_OLD_FUNC_DECL) && !defined(NO_OLD_FUNC_DECL) - -#else - int err(char *s); int getword(char *buf); void tprint(struct node *tree); struct node *lookup(char *word, struct node **p); -#endif - int isletter(char c); /* err - print error message s and die */ -#ifndef NO_OLD_FUNC_DECL err(s) char *s; { -#else -int err(char *s) { -#endif printf("? %s\n", s); exit(EXIT_FAILURE); } /* getword - get next input word into buf, return 0 on EOF */ -#ifndef NO_OLD_FUNC_DECL int getword(buf) char *buf; -#else -int getword(char *buf) -#endif { char *s; int c; @@ -77,12 +63,8 @@ int isletter(char c) } /* lookup - lookup word in tree; install if necessary */ -#ifndef NO_OLD_FUNC_DECL struct node *lookup(word, p) char *word; struct node **p; -#else -struct node *lookup(char *word, struct node **p) -#endif { int cond; /* char *malloc(); */ @@ -108,11 +90,7 @@ struct node *lookup(char *word, struct node **p) } /* tprint - print tree */ -#ifndef NO_OLD_FUNC_DECL void tprint(tree) struct node *tree; { -#else -void tprint(struct node *tree) { -#endif if (tree) { tprint(tree->left); printf("%d:%s\n", tree->count, tree->word);