mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-30 16:41:05 +08:00
Make a few more data items static and const
A few more data items that should be static and const. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
parent
a4973cf997
commit
2530a10b56
2
nasm.c
2
nasm.c
@ -617,7 +617,7 @@ enum text_options {
|
|||||||
OPT_PREFIX,
|
OPT_PREFIX,
|
||||||
OPT_POSTFIX,
|
OPT_POSTFIX,
|
||||||
};
|
};
|
||||||
struct textargs textopts[] = {
|
static const struct textargs textopts[] = {
|
||||||
{"prefix", OPT_PREFIX},
|
{"prefix", OPT_PREFIX},
|
||||||
{"postfix", OPT_POSTFIX},
|
{"postfix", OPT_POSTFIX},
|
||||||
{NULL, 0}
|
{NULL, 0}
|
||||||
|
@ -203,7 +203,7 @@ static int dbg_set_info(enum geninfo type, char **val)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *types[] = {
|
static const char * const types[] = {
|
||||||
"unknown", "label", "byte", "word", "dword", "float", "qword", "tbyte"
|
"unknown", "label", "byte", "word", "dword", "float", "qword", "tbyte"
|
||||||
};
|
};
|
||||||
static void dbgdbg_init(void)
|
static void dbgdbg_init(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user