ref: 8d9a896166bee57c3ab851b9d18df0f053327531
parent: 81a057416fa3b29d2ee4e9b6798b2f69a4ca6825
author: ISSOtm <[email protected]>
date: Tue Mar 10 09:42:59 EDT 2020
Remove deprecated `IMPORT` symbol It had a warning that it had no effect for a long while now; removing it so the name can be re-used
--- a/src/asm/asmy.y
+++ b/src/asm/asmy.y
@@ -564,7 +564,7 @@
%token T_POP_INCLUDE T_POP_PRINTF T_POP_PRINTT T_POP_PRINTV T_POP_PRINTI
%token T_POP_IF T_POP_ELIF T_POP_ELSE T_POP_ENDC
-%token T_POP_IMPORT T_POP_EXPORT T_POP_GLOBAL
+%token T_POP_EXPORT T_POP_GLOBAL
%token T_POP_DB T_POP_DS T_POP_DW T_POP_DL
%token T_POP_SECTION
%token T_POP_RB
@@ -734,7 +734,6 @@
| elif
| else
| endc
- | import
| export
| global
| { nPCOffset = 0; } db
@@ -948,23 +947,6 @@
purge_list_entry : scoped_id
{
sym_Purge($1);
- }
-;
-
-import : T_POP_IMPORT import_list
-;
-
-import_list : import_list_entry
- | import_list_entry comma import_list
-;
-
-import_list_entry : scoped_id
- {
- /*
- * This is done automatically if the label isn't found
- * in the list of defined symbols.
- */
- warning(WARNING_OBSOLETE, "IMPORT is a deprecated keyword with no effect: %s", $1);
}
;
--- a/src/asm/globlex.c
+++ b/src/asm/globlex.c
@@ -477,8 +477,6 @@
{"printf", T_POP_PRINTF},
{"export", T_POP_EXPORT},
{"xdef", T_POP_EXPORT},
- {"import", T_POP_IMPORT},
- {"xref", T_POP_IMPORT},
{"global", T_POP_GLOBAL},
{"ds", T_POP_DS},
{"db", T_POP_DB},