cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit 3f7662d0e547156ae9318e8c75c5bee148a31e6c
parent 1ddeeb29e88cb7fe4ae7718aae1490ee14827142
Author: Michael Forney <mforney@mforney.org>
Date:   Fri, 24 May 2019 21:27:13 -0700

Add __attribute__ keyword

This will be needed for weak references and hidden visibility.

Diffstat:
Mcc.h | 1+
Mpp.c | 1+
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/cc.h b/cc.h @@ -57,6 +57,7 @@ enum tokenkind { T_STATIC_ASSERT, T_THREAD_LOCAL, T__ASM__, + T__ATTRIBUTE__, T__TYPEOF__, /* punctuator */ diff --git a/pp.c b/pp.c @@ -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},