Port files.inc to transitional syntax.
This commit is contained in:
@@ -4170,7 +4170,7 @@ static void dodelete()
|
||||
switch (ident) {
|
||||
case iFUNCTN:
|
||||
case iREFFUNC:
|
||||
error(115, "functions");
|
||||
error(167, "functions");
|
||||
return;
|
||||
|
||||
case iARRAY:
|
||||
@@ -4180,7 +4180,7 @@ static void dodelete()
|
||||
{
|
||||
symbol *sym = sval.val.sym;
|
||||
if (!sym || sym->dim.array.level > 0) {
|
||||
error(115, "arrays");
|
||||
error(167, "arrays");
|
||||
return;
|
||||
}
|
||||
break;
|
||||
@@ -4188,13 +4188,13 @@ static void dodelete()
|
||||
}
|
||||
|
||||
if (sval.val.tag == 0) {
|
||||
error(115, "primitive types or enums");
|
||||
error(167, "integers");
|
||||
return;
|
||||
}
|
||||
|
||||
methodmap_t *map = methodmap_find_by_tag(sval.val.tag);
|
||||
if (!map) {
|
||||
error(115, pc_tagname(sval.val.tag));
|
||||
error(115, "type", pc_tagname(sval.val.tag));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -210,6 +210,7 @@ static const char *errmsg[] = {
|
||||
/*164*/ "allocated array type '%s' doesn't match original type '%s'\n",
|
||||
/*165*/ "cannot create dynamic arrays in static scope - did you mean to create a fixed-length array with brackets after the variable name?\n",
|
||||
/*166*/ "cannot use 'this' outside of a methodmap method or property\n",
|
||||
/*167*/ "cannot use delete, %s do not have destructors\n",
|
||||
#else
|
||||
"\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",
|
||||
|
||||
Reference in New Issue
Block a user