mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-11-19 03:07:00 +00:00
Add const qualifier in c2pstr/p2cstr declarations.
This reflects their actual behavior and may prevent some errors when using strict type checking.
This commit is contained in:
parent
118e326ac9
commit
338bfdd908
@ -23,7 +23,7 @@ typedef unsigned long size_t;
|
||||
#endif
|
||||
|
||||
#ifndef __KeepNamespacePure__
|
||||
char *c2pstr(char *);
|
||||
char *c2pstr(const char *);
|
||||
#endif
|
||||
void *memchr(const void *, int, size_t);
|
||||
int memcmp(const void *, const void *, size_t);
|
||||
@ -31,7 +31,7 @@ void *memcpy(void *, const void *, size_t);
|
||||
void *memmove(void *, const void *, size_t);
|
||||
void *memset(void *, int, size_t);
|
||||
#ifndef __KeepNamespacePure__
|
||||
char *p2cstr(char *);
|
||||
char *p2cstr(const char *);
|
||||
#endif
|
||||
char *strcat(char *, const char *);
|
||||
char *strchr(const char *, int);
|
||||
|
Loading…
Reference in New Issue
Block a user