setup the default visibility properly

This commit is contained in:
Bill Currie 2002-05-17 17:58:57 +00:00
parent ef9f9cda2f
commit 97170e97b5

View file

@ -901,7 +901,6 @@ classdecl
class_name class_name
: NAME : NAME
{ {
current_visibility = vis_private;
$$ = get_class ($1, 0); $$ = get_class ($1, 0);
if (!$$) { if (!$$) {
error (0, "undefined symbol `%s'", $1); error (0, "undefined symbol `%s'", $1);
@ -1025,6 +1024,7 @@ protocolrefs
ivar_decl_list ivar_decl_list
: /* */ : /* */
{ {
current_visibility = vis_protected;
current_ivars = new_struct (0); current_ivars = new_struct (0);
if (current_class->super_class) if (current_class->super_class)
new_struct_field (current_ivars, new_struct_field (current_ivars,