mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-31 18:20:22 +08:00
added const keyword to strdup
This commit is contained in:
parent
168c9c0c43
commit
ab9a17b684
@ -31,13 +31,13 @@ void nasm_set_malloc_error (efunc);
|
||||
void *nasm_malloc (size_t);
|
||||
void *nasm_realloc (void *, size_t);
|
||||
void nasm_free (void *);
|
||||
char *nasm_strdup (char *);
|
||||
char *nasm_strdup (const char *);
|
||||
char *nasm_strndup (char *, size_t);
|
||||
#else
|
||||
void *nasm_malloc_log (char *, int, size_t);
|
||||
void *nasm_realloc_log (char *, int, void *, size_t);
|
||||
void nasm_free_log (char *, int, void *);
|
||||
char *nasm_strdup_log (char *, int, char *);
|
||||
char *nasm_strdup_log (char *, int, const char *);
|
||||
char *nasm_strndup_log (char *, int, char *, size_t);
|
||||
#define nasm_malloc(x) nasm_malloc_log(__FILE__,__LINE__,x)
|
||||
#define nasm_realloc(x,y) nasm_realloc_log(__FILE__,__LINE__,x,y)
|
||||
|
Loading…
x
Reference in New Issue
Block a user