~mcf/cproc

3f7662d0e547156ae9318e8c75c5bee148a31e6c — Michael Forney 1 year, 6 months ago 1ddeeb2
Add __attribute__ keyword

This will be needed for weak references and hidden visibility.
2 files changed, 2 insertions(+), 0 deletions(-)

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

	/* punctuator */

M pp.c => pp.c +1 -0
@@ 29,6 29,7 @@ keyword(struct token *tok)
		{"__alignof__",    T_ALIGNOF},
		{"__asm",          T__ASM__},
		{"__asm__",        T__ASM__},
		{"__attribute__",  T__ATTRIBUTE__},
		{"__inline",       TINLINE},
		{"__inline__",     TINLINE},
		{"__signed",       TSIGNED},