]> git.sur5r.net Git - cc65/commitdiff
Added the inline keyword
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 17 Feb 2006 20:27:51 +0000 (20:27 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 17 Feb 2006 20:27:51 +0000 (20:27 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3707 b7a2c559-68d2-44c3-8de9-860c34a00d81

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

index b0bb8a9bc2f6bd264c177045244f579110547d0f..6516a396c10bb46e792f4c9030fa97ea97e92533 100644 (file)
@@ -94,6 +94,7 @@ static const struct Keyword {
     { "__attribute__",         TOK_ATTRIBUTE,  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  },
     { "__near__",              TOK_NEAR,       TT_C89 | TT_C99 | TT_CC65  },
     { "asm",                   TOK_ASM,                          TT_CC65  },
     { "auto",                  TOK_AUTO,       TT_C89 | TT_C99 | TT_CC65  },
@@ -114,6 +115,7 @@ static const struct Keyword {
     { "for",                   TOK_FOR,        TT_C89 | TT_C99 | TT_CC65  },
     { "goto",                  TOK_GOTO,       TT_C89 | TT_C99 | TT_CC65  },
     { "if",                    TOK_IF,         TT_C89 | TT_C99 | TT_CC65  },
+    { "inline",         TOK_INLINE,              TT_C99 | TT_CC65  },
     { "int",                   TOK_INT,        TT_C89 | TT_C99 | TT_CC65  },
     { "long",                  TOK_LONG,       TT_C89 | TT_C99 | TT_CC65  },
     { "near",                  TOK_NEAR,                         TT_CC65  },
index b35c5654a7dadcbaec0d93ce0ae0670a3b2a876c..8ebc240fd8fbae252768007f05904d4812481a44 100644 (file)
@@ -55,6 +55,7 @@ typedef enum token_t {
     TOK_INVALID,
     TOK_CEOF,
 
+    /* Storage specifiers */
     TOK_AUTO,
     TOK_EXTERN,
     TOK_REGISTER,
@@ -68,6 +69,9 @@ typedef enum token_t {
     TOK_RESTRICT,
     TOK_LAST_TYPEQUAL   = TOK_RESTRICT,
 
+    /* Function specifiers */
+    TOK_INLINE,
+
     /* Tokens denoting types */
     TOK_FIRST_TYPE,
     TOK_ENUM           = TOK_FIRST_TYPE,