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:
@@ -1497,7 +1497,7 @@ static void dbgls_output(int output_type, void *param)
|
||||
(void)output_type;
|
||||
(void)param;
|
||||
}
|
||||
static struct dfmt ladsoft_debug_form = {
|
||||
static const struct dfmt ladsoft_debug_form = {
|
||||
"LADsoft Debug Records",
|
||||
"ladsoft",
|
||||
dbgls_init,
|
||||
@@ -1508,7 +1508,7 @@ static struct dfmt ladsoft_debug_form = {
|
||||
dbgls_output,
|
||||
dbgls_cleanup,
|
||||
};
|
||||
static struct dfmt *ladsoft_debug_arr[3] = {
|
||||
static const struct dfmt *ladsoft_debug_arr[3] = {
|
||||
&ladsoft_debug_form,
|
||||
&null_debug_form,
|
||||
NULL
|
||||
|
||||
Reference in New Issue
Block a user