mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 18:52:07 +00:00
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
This commit is contained in:
@@ -564,7 +564,7 @@ static void strsubUTF8(char *dest, const char *src, uint32_t pos, uint32_t len)
|
||||
|
||||
%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 @@ simple_pseudoop : include
|
||||
| elif
|
||||
| else
|
||||
| endc
|
||||
| import
|
||||
| export
|
||||
| global
|
||||
| { nPCOffset = 0; } db
|
||||
@@ -951,23 +950,6 @@ purge_list_entry : scoped_id
|
||||
}
|
||||
;
|
||||
|
||||
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);
|
||||
}
|
||||
;
|
||||
|
||||
export : T_POP_EXPORT export_list
|
||||
;
|
||||
|
||||
|
||||
@@ -477,8 +477,6 @@ const struct sLexInitString lexer_strings[] = {
|
||||
{"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},
|
||||
|
||||
Reference in New Issue
Block a user