~mcf/cproc

6e04611be42b67d9f8913f3786bc632fdcce8a3d — Michael Forney 1 year, 6 months ago 2ed7304
Add __asm__ keyword
3 files changed, 3 insertions(+), 0 deletions(-)

M cc.h
M pp.c
M token.c
M cc.h => cc.h +1 -0
@@ 56,6 56,7 @@ enum tokenkind {
	T_NORETURN,
	T_STATIC_ASSERT,
	T_THREAD_LOCAL,
	T__ASM__,
	T__TYPEOF__,

	/* punctuator */

M pp.c => pp.c +1 -0
@@ 26,6 26,7 @@ keyword(struct token *tok)
		{"_Noreturn",      T_NORETURN},
		{"_Static_assert", T_STATIC_ASSERT},
		{"_Thread_local",  T_THREAD_LOCAL},
		{"__asm__",        T__ASM__},
		{"__typeof__",     T__TYPEOF__},
		{"auto",           TAUTO},
		{"break",          TBREAK},

M token.c => token.c +1 -0
@@ 55,6 55,7 @@ const char *tokstr[] = {
	[T_NORETURN] = "_Noreturn",
	[T_STATIC_ASSERT] = "_Static_assert",
	[T_THREAD_LOCAL] = "_Thread_local",
	[T__ASM__] = "__asm__",
	[T__TYPEOF__] = "__typeof__",

	/* punctuator */