From 4299e2db05bbdf941e50d73905fc60ec49e53119 Mon Sep 17 00:00:00 2001 From: uz Date: Fri, 9 Apr 2010 19:47:33 +0000 Subject: [PATCH] Added the cdecl keyword git-svn-id: svn://svn.cc65.org/cc65/trunk@4639 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/scanner.c | 4 +++- src/cc65/scanner.h | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/cc65/scanner.c b/src/cc65/scanner.c index 3dee4239f..2f9b019af 100644 --- a/src/cc65/scanner.c +++ b/src/cc65/scanner.c @@ -6,7 +6,7 @@ /* */ /* */ /* */ -/* (C) 1998-2009, Ullrich von Bassewitz */ +/* (C) 1998-2010, Ullrich von Bassewitz */ /* Roemerstrasse 52 */ /* D-70794 Filderstadt */ /* EMail: uz@cc65.org */ @@ -93,6 +93,7 @@ static const struct Keyword { { "__Y__", TOK_Y, TT_C89 | TT_C99 | TT_CC65 }, { "__asm__", TOK_ASM, TT_C89 | TT_C99 | TT_CC65 }, { "__attribute__", TOK_ATTRIBUTE, TT_C89 | TT_C99 | TT_CC65 }, + { "__cdecl__", TOK_CDECL, TT_C89 | TT_C99 | TT_CC65 }, { "__far__", TOK_FAR, TT_C89 | TT_C99 | TT_CC65 }, { "__fastcall__", TOK_FASTCALL, TT_C89 | TT_C99 | TT_CC65 }, { "__inline__", TOK_INLINE, TT_C89 | TT_C99 | TT_CC65 }, @@ -101,6 +102,7 @@ static const struct Keyword { { "auto", TOK_AUTO, TT_C89 | TT_C99 | TT_CC65 }, { "break", TOK_BREAK, TT_C89 | TT_C99 | TT_CC65 }, { "case", TOK_CASE, TT_C89 | TT_C99 | TT_CC65 }, + { "cdecl", TOK_CDECL, TT_CC65 }, { "char", TOK_CHAR, TT_C89 | TT_C99 | TT_CC65 }, { "const", TOK_CONST, TT_C89 | TT_C99 | TT_CC65 }, { "continue", TOK_CONTINUE, TT_C89 | TT_C99 | TT_CC65 }, diff --git a/src/cc65/scanner.h b/src/cc65/scanner.h index f186e8343..1a97692a6 100644 --- a/src/cc65/scanner.h +++ b/src/cc65/scanner.h @@ -6,7 +6,7 @@ /* */ /* */ /* */ -/* (C) 1998-2009, Ullrich von Bassewitz */ +/* (C) 1998-2010, Ullrich von Bassewitz */ /* Roemerstrasse 52 */ /* D-70794 Filderstadt */ /* EMail: uz@cc65.org */ @@ -77,6 +77,7 @@ typedef enum token_t { /* Function specifiers */ TOK_INLINE, TOK_FASTCALL, + TOK_CDECL, /* Tokens denoting types */ TOK_FIRST_TYPE, @@ -194,7 +195,7 @@ typedef enum token_t { /* Forward for struct Literal */ struct Literal; -/* Token stuff */ +/* Token stuff */ typedef struct Token Token; struct Token { token_t Tok; /* The token itself */ -- 2.39.5