version 1.3, 2002/02/28 08:57:37 |
version 1.4, 2002/02/28 22:12:15 |
|
|
#ifdef DEBUG |
#ifdef DEBUG |
# define C _C() |
# define C _C() |
# define C1 _C1() |
# define C1 _C1() |
#else not DEBUG |
#else /* not DEBUG */ |
# define C Cget |
# define C Cget |
# define C1 C1get |
# define C1 C1get |
#endif not DEBUG |
#endif /* not DEBUG */ |
|
|
#define SKIP while (C != '\n') |
#define SKIP while (C != '\n') |
#define SKIP_TO_COM SKIP; SKIP; pc=c; while (C != '.' || pc != '\n' || C > 'Z')pc=c |
#define SKIP_TO_COM SKIP; SKIP; pc=c; while (C != '.' || pc != '\n' || C > 'Z')pc=c |
|
|
|
|
#ifdef DEBUG |
#ifdef DEBUG |
char *mactab[] = { "-ms", "-mm", "-me", "-ma" }; |
char *mactab[] = { "-ms", "-mm", "-me", "-ma" }; |
#endif DEBUG |
#endif /* DEBUG */ |
|
|
#define ONE 1 |
#define ONE 1 |
#define TWO 2 |
#define TWO 2 |
|
|
#ifdef DEBUG |
#ifdef DEBUG |
printf("msflag = %d, mac = %s, keepblock = %d, disp = %d\n", |
printf("msflag = %d, mac = %s, keepblock = %d, disp = %d\n", |
msflag, mactab[mac], keepblock, disp); |
msflag, mactab[mac], keepblock, disp); |
#endif DEBUG |
#endif /* DEBUG */ |
if (argc == 0) { |
if (argc == 0) { |
infile = stdin; |
infile = stdin; |
} else { |
} else { |
|
|
C; |
C; |
#ifdef FULLDEBUG |
#ifdef FULLDEBUG |
printf("Starting work with `%c'\n", c); |
printf("Starting work with `%c'\n", c); |
#endif FULLDEBUG |
#endif /* FULLDEBUG */ |
if (c == '.' || c == '\'') |
if (c == '.' || c == '\'') |
comline(); |
comline(); |
else |
else |
|
|
|
|
return(Cget); |
return(Cget); |
} |
} |
#endif DEBUG |
#endif /* DEBUG */ |
|
|
/* |
/* |
* Put out a macro line, using ms and mm conventions. |
* Put out a macro line, using ms and mm conventions. |
|
|
} |
} |
printf("]"); |
printf("]"); |
} |
} |
#endif FULLDEBUG |
#endif /* FULLDEBUG */ |
/* |
/* |
* Determine if the argument merits being printed |
* Determine if the argument merits being printed |
* |
* |
|
|
hit = 1; |
hit = 1; |
#ifdef FULLDEBUG |
#ifdef FULLDEBUG |
printf("preliminary hit macro %c%c ", c1, c2); |
printf("preliminary hit macro %c%c ", c1, c2); |
#endif FULLDEBUG |
#endif /* FULLDEBUG */ |
switch (mp->condition) { |
switch (mp->condition) { |
case NONE: |
case NONE: |
hit = YES; |
hit = YES; |
|
|
if (hit) { |
if (hit) { |
#ifdef FULLDEBUG |
#ifdef FULLDEBUG |
printf("MATCH\n"); |
printf("MATCH\n"); |
#endif FULLDEBUG |
#endif /* FULLDEBUG */ |
switch ((*(mp->func))(c12)) { |
switch ((*(mp->func))(c12)) { |
default: |
default: |
return; |
return; |
|
|
} |
} |
#ifdef FULLDEBUG |
#ifdef FULLDEBUG |
printf("FAIL\n"); |
printf("FAIL\n"); |
#endif FULLDEBUG |
#endif /* FULLDEBUG */ |
break; |
break; |
} |
} |
} |
} |