From 0a1266e59b6ad3c6dda55e77889c62a9d19bc998 Mon Sep 17 00:00:00 2001 From: cuz Date: Wed, 7 May 2003 21:06:42 +0000 Subject: [PATCH] Added the restrict keyword just to have it reserved git-svn-id: svn://svn.cc65.org/cc65/trunk@2153 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/scanner.c | 11 ++++++----- src/cc65/scanner.h | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/cc65/scanner.c b/src/cc65/scanner.c index 967a7fb13..05ba134ee 100644 --- a/src/cc65/scanner.c +++ b/src/cc65/scanner.c @@ -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 diff --git a/src/cc65/scanner.h b/src/cc65/scanner.h index 8bf668691..8e4072ae7 100644 --- a/src/cc65/scanner.h +++ b/src/cc65/scanner.h @@ -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,