mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-24 16:35:40 +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_POSTFIX,
|
||||
};
|
||||
struct textargs textopts[] = {
|
||||
static const struct textargs textopts[] = {
|
||||
{"prefix", OPT_PREFIX},
|
||||
{"postfix", OPT_POSTFIX},
|
||||
{NULL, 0}
|
||||
|
@ -203,7 +203,7 @@ static int dbg_set_info(enum geninfo type, char **val)
|
||||
return 0;
|
||||
}
|
||||
|
||||
char *types[] = {
|
||||
static const char * const types[] = {
|
||||
"unknown", "label", "byte", "word", "dword", "float", "qword", "tbyte"
|
||||
};
|
||||
static void dbgdbg_init(void)
|
||||
|
Loading…
Reference in New Issue
Block a user