mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-01-16 20:32:57 +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
|
#endif
|
||||||
|
|
||||||
#ifndef __KeepNamespacePure__
|
#ifndef __KeepNamespacePure__
|
||||||
char *c2pstr(char *);
|
char *c2pstr(const char *);
|
||||||
#endif
|
#endif
|
||||||
void *memchr(const void *, int, size_t);
|
void *memchr(const void *, int, size_t);
|
||||||
int memcmp(const void *, const void *, 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 *memmove(void *, const void *, size_t);
|
||||||
void *memset(void *, int, size_t);
|
void *memset(void *, int, size_t);
|
||||||
#ifndef __KeepNamespacePure__
|
#ifndef __KeepNamespacePure__
|
||||||
char *p2cstr(char *);
|
char *p2cstr(const char *);
|
||||||
#endif
|
#endif
|
||||||
char *strcat(char *, const char *);
|
char *strcat(char *, const char *);
|
||||||
char *strchr(const char *, int);
|
char *strchr(const char *, int);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user