bus: export utf8 validator calls as pure functions
This commit is contained in:
parent
76b543756e
commit
98f91566cc
|
@ -40,6 +40,10 @@
|
|||
# define _sd_packed_ __attribute__((packed))
|
||||
#endif
|
||||
|
||||
#ifndef _sd_pure_
|
||||
# define _sd_pure_ __attribute__((pure))
|
||||
#endif
|
||||
|
||||
#ifndef _SD_STRINGIFY
|
||||
# define _SD_XSTRINGIFY(x) #x
|
||||
# define _SD_STRINGIFY(x) _SD_XSTRINGIFY(x)
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
|
||||
_SD_BEGIN_DECLARATIONS;
|
||||
|
||||
const char *sd_utf8_is_valid(const char *s);
|
||||
const char *sd_ascii_is_valid(const char *s);
|
||||
_sd_pure_ const char *sd_utf8_is_valid(const char *s);
|
||||
_sd_pure_ const char *sd_ascii_is_valid(const char *s);
|
||||
|
||||
_SD_END_DECLARATIONS;
|
||||
|
||||
|
|
Loading…
Reference in a new issue