recognize but ignore #pragma
This commit is contained in:
parent
f9269a9aca
commit
0379ada7ad
@ -107,6 +107,11 @@ domacro()
|
|||||||
case K_UNDEF: /* "undef" */
|
case K_UNDEF: /* "undef" */
|
||||||
do_undef();
|
do_undef();
|
||||||
break;
|
break;
|
||||||
|
case K_PRAGMA: /* "pragma" */
|
||||||
|
/* ignore for now
|
||||||
|
*/
|
||||||
|
SkipRestOfLine();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
/* invalid word seen after the '#' */
|
/* invalid word seen after the '#' */
|
||||||
lexerror("%s: unknown control", tk.tk_idf->id_text);
|
lexerror("%s: unknown control", tk.tk_idf->id_text);
|
||||||
|
|||||||
@ -29,6 +29,7 @@ PRIVATE struct mkey {
|
|||||||
{"include", K_INCLUDE},
|
{"include", K_INCLUDE},
|
||||||
{"line", K_LINE},
|
{"line", K_LINE},
|
||||||
{"undef", K_UNDEF},
|
{"undef", K_UNDEF},
|
||||||
|
{"pragma", K_PRAGMA},
|
||||||
{0, K_UNKNOWN}
|
{0, K_UNKNOWN}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -55,4 +55,5 @@ struct mlist {
|
|||||||
#define K_INCLUDE 8
|
#define K_INCLUDE 8
|
||||||
#define K_LINE 9
|
#define K_LINE 9
|
||||||
#define K_UNDEF 10
|
#define K_UNDEF 10
|
||||||
|
#define K_PRAGMA 11
|
||||||
#endif NOPP
|
#endif NOPP
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user