]> git.sur5r.net Git - cc65/commitdiff
Added the restrict keyword just to have it reserved
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 7 May 2003 21:06:42 +0000 (21:06 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 7 May 2003 21:06:42 +0000 (21:06 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2153 b7a2c559-68d2-44c3-8de9-860c34a00d81

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

index 967a7fb135b5b4c6ebc8340c9e13e51ad84521f6..05ba134ee2b4c9247ae70fb655a891029a209522 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2002 Ullrich von Bassewitz                                       */
-/*               Wacholderweg 14                                             */
-/*               D-70597 Stuttgart                                           */
-/* EMail:        uz@musoftware.de                                            */
+/* (C) 1998-2003 Ullrich von Bassewitz                                       */
+/*               Römerstrasse 52                                             */
+/*               D-70794 Filderstadt                                         */
+/* EMail:        uz@cc65.org                                                 */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
@@ -112,6 +112,7 @@ static const struct Keyword {
     { "int",                   TOK_INT,        TT_C    },
     { "long",                  TOK_LONG,       TT_C    },
     { "register",              TOK_REGISTER,   TT_C    },
+    { "restrict",              TOK_RESTRICT,   TT_C    },
     { "return",                TOK_RETURN,     TT_C    },
     { "short",                 TOK_SHORT,      TT_C    },
     { "signed",                TOK_SIGNED,     TT_C    },
@@ -375,7 +376,7 @@ static void StringConst (void)
 
 void NextToken (void)
 /* Get next token from input stream */
-{        
+{
     ident token;
 
     /* We have to skip white space here before shifting tokens, since the
index 8bf668691b00763696e64de1678376a0c67cdc69..8e4072ae715c78a09015caf1fc2172b8d64c1651 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2002 Ullrich von Bassewitz                                       */
-/*               Wacholderweg 14                                             */
-/*               D-70597 Stuttgart                                           */
-/* EMail:        uz@musoftware.de                                            */
+/* (C) 1998-2003 Ullrich von Bassewitz                                       */
+/*               Römerstrasse 52                                             */
+/*               D-70794 Filderstadt                                         */
+/* EMail:        uz@cc65.org                                                 */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
@@ -57,9 +57,10 @@ typedef enum token_t {
     TOK_AUTO,
     TOK_EXTERN,
     TOK_REGISTER,
+    TOK_RESTRICT,
     TOK_STATIC,
     TOK_TYPEDEF,
-    TOK_ENUM,
+    TOK_ENUM,    
     TOK_CONST,
     TOK_VOLATILE,