mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-02-05 16:51:27 +08:00
preproc: Drop never used pp_runtime
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
194563915d
commit
6094166044
20
preproc.c
20
preproc.c
@ -5140,26 +5140,6 @@ void pp_pre_undefine(char *definition)
|
|||||||
predef = l;
|
predef = l;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Added by Keith Kanios:
|
|
||||||
*
|
|
||||||
* This function is used to assist with "runtime" preprocessor
|
|
||||||
* directives. (e.g. pp_runtime("%define __BITS__ 64");)
|
|
||||||
*
|
|
||||||
* ERRORS ARE IGNORED HERE, SO MAKE COMPLETELY SURE THAT YOU
|
|
||||||
* PASS A VALID STRING TO THIS FUNCTION!!!!!
|
|
||||||
*/
|
|
||||||
|
|
||||||
void pp_runtime(char *definition)
|
|
||||||
{
|
|
||||||
Token *def;
|
|
||||||
|
|
||||||
def = tokenize(definition);
|
|
||||||
if (do_directive(def) == NO_DIRECTIVE_FOUND)
|
|
||||||
free_tlist(def);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void pp_extra_stdmac(macros_t *macros)
|
void pp_extra_stdmac(macros_t *macros)
|
||||||
{
|
{
|
||||||
extrastdmac = macros;
|
extrastdmac = macros;
|
||||||
|
@ -51,7 +51,6 @@ void pp_include_path(char *);
|
|||||||
void pp_pre_include(char *);
|
void pp_pre_include(char *);
|
||||||
void pp_pre_define(char *);
|
void pp_pre_define(char *);
|
||||||
void pp_pre_undefine(char *);
|
void pp_pre_undefine(char *);
|
||||||
void pp_runtime(char *);
|
|
||||||
void pp_extra_stdmac(macros_t *);
|
void pp_extra_stdmac(macros_t *);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user