1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-27 12:29:33 +00:00

removed references to macros from common.h

This commit is contained in:
mrdudz 2020-07-21 23:50:23 +02:00
parent 7e1f4760e7
commit df900e30b8
2 changed files with 0 additions and 39 deletions

View File

@ -20,27 +20,10 @@ cl65: Subprocess 'ld65' aborted by signal 11
*/ */
/* #define STANDALONE */
#include <stdio.h> #include <stdio.h>
#include <limits.h> #include <limits.h>
#ifdef STANDALONE
#define NO_IMPLICIT_FUNCPTR_CONV
#define OPENTEST()
#define CLOSETEST()
#else
#endif
#ifdef NO_IMPLICIT_FUNCPTR_CONV
void (*p1func)(void);
#else
void (*p1func)(); void (*p1func)();
#endif
void func(void) void func(void)
{ {

View File

@ -25,35 +25,21 @@ int next; /* index of next free entry in words */
/*struct node *lookup();*/ /*struct node *lookup();*/
#if defined(NO_NEW_PROTOTYPES_FOR_OLD_FUNC_DECL) && !defined(NO_OLD_FUNC_DECL)
#else
int err(char *s); int err(char *s);
int getword(char *buf); int getword(char *buf);
void tprint(struct node *tree); void tprint(struct node *tree);
struct node *lookup(char *word, struct node **p); struct node *lookup(char *word, struct node **p);
#endif
int isletter(char c); int isletter(char c);
/* err - print error message s and die */ /* err - print error message s and die */
#ifndef NO_OLD_FUNC_DECL
err(s) char *s; { err(s) char *s; {
#else
int err(char *s) {
#endif
printf("? %s\n", s); printf("? %s\n", s);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
/* getword - get next input word into buf, return 0 on EOF */ /* getword - get next input word into buf, return 0 on EOF */
#ifndef NO_OLD_FUNC_DECL
int getword(buf) char *buf; int getword(buf) char *buf;
#else
int getword(char *buf)
#endif
{ {
char *s; char *s;
int c; int c;
@ -77,12 +63,8 @@ int isletter(char c)
} }
/* lookup - lookup word in tree; install if necessary */ /* lookup - lookup word in tree; install if necessary */
#ifndef NO_OLD_FUNC_DECL
struct node *lookup(word, p) struct node *lookup(word, p)
char *word; struct node **p; char *word; struct node **p;
#else
struct node *lookup(char *word, struct node **p)
#endif
{ {
int cond; int cond;
/* char *malloc(); */ /* char *malloc(); */
@ -108,11 +90,7 @@ struct node *lookup(char *word, struct node **p)
} }
/* tprint - print tree */ /* tprint - print tree */
#ifndef NO_OLD_FUNC_DECL
void tprint(tree) struct node *tree; { void tprint(tree) struct node *tree; {
#else
void tprint(struct node *tree) {
#endif
if (tree) { if (tree) {
tprint(tree->left); tprint(tree->left);
printf("%d:%s\n", tree->count, tree->word); printf("%d:%s\n", tree->count, tree->word);