]> git.sur5r.net Git - cc65/commitdiff
Added the cdecl keyword
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 9 Apr 2010 19:47:33 +0000 (19:47 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 9 Apr 2010 19:47:33 +0000 (19:47 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4639 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/scanner.c
src/cc65/scanner.h

index 3dee4239f0acd3807fd95e0cd54bf9fce8c7c95f..2f9b019aff7685d57ed88ac8ec68975511b1e3e1 100644 (file)
@@ -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  },
index f186e83437f6972e459145dfe27acd581537dc4d..1a97692a654c146d19b4fd3959f6a9c6f706e6a5 100644 (file)
@@ -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 */