mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-06 07:41:17 +00:00
allow ';' after @class ...
This commit is contained in:
parent
094cf08a67
commit
3e87e3ecdf
3 changed files with 4 additions and 4 deletions
|
@ -50,6 +50,7 @@ static const char rcsid[] =
|
||||||
|
|
||||||
#include "cpp.h"
|
#include "cpp.h"
|
||||||
#include "options.h"
|
#include "options.h"
|
||||||
|
#include "qfcc.h"
|
||||||
|
|
||||||
const char *this_program;
|
const char *this_program;
|
||||||
const char **source_files;
|
const char **source_files;
|
||||||
|
@ -359,5 +360,7 @@ DecodeArgs (int argc, char **argv)
|
||||||
usage (1);
|
usage (1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (options.verbosity >= 3)
|
||||||
|
yydebug = 1;
|
||||||
return optind;
|
return optind;
|
||||||
}
|
}
|
||||||
|
|
|
@ -912,7 +912,7 @@ identifier_list
|
||||||
;
|
;
|
||||||
|
|
||||||
classdecl
|
classdecl
|
||||||
: CLASS identifier_list
|
: CLASS identifier_list ';'
|
||||||
{
|
{
|
||||||
expr_t *e;
|
expr_t *e;
|
||||||
for (e = $2->e.block.head; e; e = e->next)
|
for (e = $2->e.block.head; e; e = e->next)
|
||||||
|
|
|
@ -617,9 +617,6 @@ progs_src_compile (void)
|
||||||
while ((src = COM_Parse (src))) {
|
while ((src = COM_Parse (src))) {
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
//extern int yydebug;
|
|
||||||
//yydebug = 1;
|
|
||||||
|
|
||||||
if (*sourcedir)
|
if (*sourcedir)
|
||||||
dsprintf (filename, "%s%c%s", sourcedir, PATH_SEPARATOR,
|
dsprintf (filename, "%s%c%s", sourcedir, PATH_SEPARATOR,
|
||||||
com_token);
|
com_token);
|
||||||
|
|
Loading…
Reference in a new issue