mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
Make struct preproc_ops const
Make the preproc function pointer arrays const. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
parent
7e3b12d6da
commit
e746971582
2
nasm.c
2
nasm.c
@ -126,7 +126,7 @@ static struct RAA *offsets;
|
||||
static struct SAA *forwrefs; /* keep track of forward references */
|
||||
static const struct forwrefinfo *forwref;
|
||||
|
||||
static struct preproc_ops *preproc;
|
||||
static const struct preproc_ops *preproc;
|
||||
|
||||
#define OP_NORMAL (1u << 0)
|
||||
#define OP_PREPROCESS (1u << 1)
|
||||
|
4
nasm.h
4
nasm.h
@ -345,8 +345,8 @@ struct preproc_ops {
|
||||
void (*include_path)(char *path);
|
||||
};
|
||||
|
||||
extern struct preproc_ops nasmpp;
|
||||
extern struct preproc_ops preproc_nop;
|
||||
extern const struct preproc_ops nasmpp;
|
||||
extern const struct preproc_ops preproc_nop;
|
||||
|
||||
/*
|
||||
* Some lexical properties of the NASM source language, included
|
||||
|
@ -170,7 +170,7 @@ static void nop_include_path(char *path)
|
||||
(void)path;
|
||||
}
|
||||
|
||||
struct preproc_ops preproc_nop = {
|
||||
const struct preproc_ops preproc_nop = {
|
||||
nop_reset,
|
||||
nop_getline,
|
||||
nop_cleanup,
|
||||
|
Loading…
Reference in New Issue
Block a user