ack/lang/cem/cemcom.ansi/pragma.c

45 lines
772 B
C
Raw Normal View History

1989-02-07 11:04:05 +00:00
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */
/* PREPROCESSOR: PRAGMA INTERPRETER */
#include "debug.h"
1989-02-07 11:04:05 +00:00
#include "idf.h"
#define P_UNKNOWN 0
#define NR_PRAGMAS 0
1989-02-07 11:04:05 +00:00
struct pkey {
char *pk_name;
int pk_key;
} pragmas[NR_PRAGMAS + 1] = {
1989-02-07 11:04:05 +00:00
{0, P_UNKNOWN}
};
extern struct idf *GetIdentifier();
do_pragma()
{
register struct pkey *pkp = &pragmas[0];
register struct idf *id = GetIdentifier(1);
1989-02-07 11:04:05 +00:00
if (id != (struct idf *)0) {
#if NR_PRAGMAS
while(pkp->pk_name) {
1989-02-07 11:04:05 +00:00
if (strcmp(pkp->pk_name, id->id_text) == 0)
break;
pkp++;
}
1989-02-07 11:04:05 +00:00
switch (pkp->pk_key) {
case P_UNKNOWN:
default:
break;
}
#endif
1989-10-18 13:12:31 +00:00
SkipToNewLine();
1989-02-07 11:04:05 +00:00
}
}