0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-10-10 00:25:06 -04:00

More constification, mostly of struct dfmt

Make struct dfmt and the struct dfmt arrays const across the board,
and make them static whereever possible.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
H. Peter Anvin
2016-02-18 02:16:36 -08:00
parent f0ea3d7c2b
commit 7e3b12d6da
12 changed files with 44 additions and 37 deletions

View File

@@ -2605,7 +2605,7 @@ static void dbgbi_output(int output_type, void *param)
(void)output_type;
(void)param;
}
static struct dfmt borland_debug_form = {
static const struct dfmt borland_debug_form = {
"Borland Debug Records",
"borland",
dbgbi_init,
@@ -2617,7 +2617,7 @@ static struct dfmt borland_debug_form = {
dbgbi_cleanup,
};
static struct dfmt *borland_debug_arr[3] = {
static const struct dfmt *borland_debug_arr[3] = {
&borland_debug_form,
&null_debug_form,
NULL