make "local" optional

This commit is contained in:
Bill Currie 2007-04-28 05:20:47 +00:00 committed by Jeff Teunissen
parent cfd71b87c4
commit e8e2d3a6e5
2 changed files with 3 additions and 2 deletions

View file

@ -205,7 +205,7 @@ storage_class_t current_storage = st_global;
%}
%expect 5
%expect 11
%%
@ -305,6 +305,7 @@ storage_class
local_storage_class
: LOCAL { current_storage = st_local; }
| { current_storage = st_local; }
| STATIC { current_storage = st_static; }
;

View file

@ -43,7 +43,7 @@ typedef struct bot_data_t bot_data_t;
-(void)fix
{
//local integer i = 2, tmp;
local unsigned u;
unsigned u;
//tmp = (integer)links[i];
for (u = 0; u < count; u++)
[list[u] fix];