From 97170e97b57d3c4c16fb17a1be2502f15f6c108b Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 17 May 2002 17:58:57 +0000 Subject: [PATCH] setup the default visibility properly --- tools/qfcc/source/qc-parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qfcc/source/qc-parse.y b/tools/qfcc/source/qc-parse.y index bb5f4918b..577e6ee1e 100644 --- a/tools/qfcc/source/qc-parse.y +++ b/tools/qfcc/source/qc-parse.y @@ -901,7 +901,6 @@ classdecl class_name : NAME { - current_visibility = vis_private; $$ = get_class ($1, 0); if (!$$) { error (0, "undefined symbol `%s'", $1); @@ -1025,6 +1024,7 @@ protocolrefs ivar_decl_list : /* */ { + current_visibility = vis_protected; current_ivars = new_struct (0); if (current_class->super_class) new_struct_field (current_ivars,