mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Remove deprecated @argc and @argv
This commit is contained in:
parent
a834bff8a3
commit
fbdbcfada4
2 changed files with 1 additions and 22 deletions
|
@ -320,8 +320,6 @@ static keyword_t keywords[] = {
|
|||
{"@self", SELF, 0, 0, PROG_VERSION},
|
||||
{"@this", THIS, 0, 0, PROG_VERSION},
|
||||
{"@args", ARGS, 0, 0, PROG_VERSION},
|
||||
{"@argc", ARGC, 0, 0, PROG_VERSION},
|
||||
{"@argv", ARGV, 0, 0, PROG_VERSION},
|
||||
{"@va_list", TYPE, &type_va_list, 0, PROG_VERSION},
|
||||
{"@param", TYPE, &type_param, 0, PROG_VERSION},
|
||||
{"@extern", EXTERN, 0, 1, PROG_ID_VERSION},
|
||||
|
|
|
@ -94,9 +94,6 @@ void free_local_inits (hashtab_t *def_list);
|
|||
static def_t *create_def (type_t *type, const char *name, scope_t *scope,
|
||||
storage_class_t storage);
|
||||
|
||||
expr_t *argc_expr (void);
|
||||
expr_t *argv_expr (void);
|
||||
|
||||
%}
|
||||
|
||||
%union {
|
||||
|
@ -160,7 +157,7 @@ expr_t *argv_expr (void);
|
|||
%token LOCAL RETURN WHILE DO IF ELSE FOR BREAK CONTINUE ELLIPSIS NIL
|
||||
%token IFBE IFB IFAE IFA
|
||||
%token SWITCH CASE DEFAULT STRUCT UNION ENUM TYPEDEF SUPER SELF THIS
|
||||
%token ARGS ARGC ARGV EXTERN STATIC SYSTEM SIZEOF OVERLOAD
|
||||
%token ARGS EXTERN STATIC SYSTEM SIZEOF OVERLOAD
|
||||
%token <type> TYPE
|
||||
%token <typename> TYPE_NAME
|
||||
%token CLASS DEFS ENCODE END IMPLEMENTATION INTERFACE PRIVATE PROTECTED
|
||||
|
@ -1122,8 +1119,6 @@ primary
|
|||
: NAME { $$ = new_name_expr ($1); }
|
||||
| BREAK %prec BREAK_PRIMARY { $$ = new_name_expr (save_string ("break")); }
|
||||
| ARGS { $$ = new_name_expr (".args"); }
|
||||
| ARGC { $$ = argc_expr (); }
|
||||
| ARGV { $$ = argv_expr (); }
|
||||
| SELF { $$ = new_self_expr (); }
|
||||
| THIS { $$ = new_this_expr (); }
|
||||
| const { $$ = $1; }
|
||||
|
@ -1827,17 +1822,3 @@ free_local_inits (hashtab_t *def_list)
|
|||
{
|
||||
Hash_DelTable (def_list);
|
||||
}
|
||||
|
||||
expr_t *
|
||||
argc_expr (void)
|
||||
{
|
||||
warning (0, "@argc deprecated: use @args.count");
|
||||
return binary_expr ('.', new_name_expr (".args"), new_name_expr ("count"));
|
||||
}
|
||||
|
||||
expr_t *
|
||||
argv_expr (void)
|
||||
{
|
||||
warning (0, "@argv deprecated: use @args.list");
|
||||
return binary_expr ('.', new_name_expr (".args"), new_name_expr ("list"));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue