mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-10-10 00:25:06 -04:00
portability: "const macros_t" is redundant
Some C compilers don't like that... Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
@@ -27,7 +27,7 @@ static void nasm_z_free(void *opaque, void *ptr)
|
||||
nasm_free(ptr);
|
||||
}
|
||||
|
||||
char *uncompress_stdmac(const macros_t *sm)
|
||||
char *uncompress_stdmac(macros_t *sm)
|
||||
{
|
||||
z_stream zs;
|
||||
void *buf = nasm_malloc(sm->dsize);
|
||||
|
||||
@@ -17,7 +17,7 @@ struct builtin_macros {
|
||||
};
|
||||
typedef const struct builtin_macros macros_t;
|
||||
|
||||
char *uncompress_stdmac(const macros_t *sm);
|
||||
char *uncompress_stdmac(macros_t *sm);
|
||||
|
||||
/* --- From standard.mac via macros.pl -> macros.c --- */
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@ sub flush_mac($$)
|
||||
printf $out "static const unsigned char %s_blob[%d] = {\n", $name, $zlen;
|
||||
print_data($out, $zblob);
|
||||
|
||||
printf $out "\n%sconst macros_t %s = {\n %d, %d, %s_blob\n};\n",
|
||||
printf $out "\n%smacros_t %s = {\n %d, %d, %s_blob\n};\n",
|
||||
$mac->{'static'} ? 'static ' : '',
|
||||
$name, $dlen, $zlen, $name;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user