From e8e2d3a6e5bfc7e87cb374f7f970a3dfdb9058d9 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 28 Apr 2007 05:20:47 +0000 Subject: [PATCH] make "local" optional --- tools/qfcc/source/qc-parse.y | 3 ++- tools/qfcc/test/membarray.r | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/qfcc/source/qc-parse.y b/tools/qfcc/source/qc-parse.y index 375a03e42..42e5772ff 100644 --- a/tools/qfcc/source/qc-parse.y +++ b/tools/qfcc/source/qc-parse.y @@ -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; } ; diff --git a/tools/qfcc/test/membarray.r b/tools/qfcc/test/membarray.r index 13834b036..a1f73691a 100644 --- a/tools/qfcc/test/membarray.r +++ b/tools/qfcc/test/membarray.r @@ -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];