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 6e04611be42b67d9f8913f3786bc632fdcce8a3d
parent 2ed7304347656421be2bc0140df18c618454bf72
Author: Michael Forney <mforney@mforney.org>
Date:   Mon, 29 Apr 2019 00:15:04 -0700

Add __asm__ keyword

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

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