void member P_ ((struct sym *, int));
void class_body P_ ((struct sym *, int));
void class_definition P_ ((struct sym *, int, int, int));
-void declaration P_ ((int, int));
+void declaration P_ ((int));
unsigned parm_list P_ ((int *));
char *operator_name P_ ((int *));
struct sym *parse_classname P_ ((void));
int nbytes;
{
void *p = malloc (nbytes);
- if (p)
- return p;
- yyerror ("out of memory");
- exit (1);
+ if (p == NULL)
+ {
+ yyerror ("out of memory");
+ exit (1);
+ }
+ return p;
}
int sz;
{
p = realloc (p, sz);
- if (p)
- return p;
- yyerror ("out of memory");
- exit (1);
+ if (p == NULL)
+ {
+ yyerror ("out of memory");
+ exit (1);
+ }
+ return p;
}
int flags;
int nested;
{
- register int token;
struct sym *current;
struct sym *base_class;
while (!done)
{
- switch (token = LA1)
+ switch (LA1)
{
case VIRTUAL: case PUBLIC: case PROTECTED: case PRIVATE:
MATCH ();
/* Parse a declaration. */
void
-declaration (is_extern, flags)
- int is_extern;
+declaration (flags)
int flags;
{
char *id = NULL;
return 0;
default:
- declaration (0, flags);
+ declaration (flags);
flags = start_flags;
break;
}