mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -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:
parent
dfacf9a3d7
commit
0b3c971f5b
3 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue