Remove support for multiple tags on an argument.

This commit is contained in:
David Anderson 2014-08-24 18:59:51 -07:00
parent d230711e4d
commit 63e5ab18ff
3 changed files with 4 additions and 1 deletions

View File

@ -70,7 +70,7 @@ public OnRebuildAdminCache(AdminCachePart:part)
} }
} }
ParseError(const String:format[], {Handle,String,Float,_}:...) ParseError(const String:format[], any:...)
{ {
decl String:buffer[512]; decl String:buffer[512];

View File

@ -3192,6 +3192,8 @@ static int parse_old_decl(declinfo_t *decl, int flags)
} }
needtoken(':'); needtoken(':');
} }
if (type->numtags > 1)
error(158);
} }
if (type->numtags == 0) { if (type->numtags == 0) {

View File

@ -201,6 +201,7 @@ static const char *errmsg[] = {
/*155*/ "expected newline, but found '%s'\n", /*155*/ "expected newline, but found '%s'\n",
/*156*/ "the 'any' type is not allowed in new-style natives\n", /*156*/ "the 'any' type is not allowed in new-style natives\n",
/*157*/ "'%s' is a reserved keyword\n", /*157*/ "'%s' is a reserved keyword\n",
/*158*/ "multi-tags are no longer supported\n",
#else #else
"\315e\306\227\266k\217:\235\277bu\201fo\220\204\223\012", "\315e\306\227\266k\217:\235\277bu\201fo\220\204\223\012",
"\202l\224\250s\205g\346\356e\233\201(\243\315\214\267\202) \253 f\255low ea\305 \042c\353e\042\012", "\202l\224\250s\205g\346\356e\233\201(\243\315\214\267\202) \253 f\255low ea\305 \042c\353e\042\012",