diff options
Diffstat (limited to 'prism/util/pm_strpbrk.h')
-rw-r--r-- | prism/util/pm_strpbrk.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/prism/util/pm_strpbrk.h b/prism/util/pm_strpbrk.h index d0bdd5bec0..c9ea6c945e 100644 --- a/prism/util/pm_strpbrk.h +++ b/prism/util/pm_strpbrk.h @@ -1,17 +1,17 @@ -#ifndef YP_STRPBRK_H -#define YP_STRPBRK_H +#ifndef PRISM_STRPBRK_H +#define PRISM_STRPBRK_H -#include "yarp/defines.h" -#include "yarp/parser.h" +#include "prism/defines.h" +#include "prism/parser.h" #include <stddef.h> #include <string.h> // Here we have rolled our own version of strpbrk. The standard library strpbrk // has undefined behavior when the source string is not null-terminated. We want -// to support strings that are not null-terminated because yp_parse does not +// to support strings that are not null-terminated because pm_parse does not // have the contract that the string is null-terminated. (This is desirable -// because it means the extension can call yp_parse with the result of a call to +// because it means the extension can call pm_parse with the result of a call to // mmap). // // The standard library strpbrk also does not support passing a maximum length @@ -24,6 +24,6 @@ // characters that are trailing bytes of multi-byte characters. For example, in // Shift-JIS, the backslash character can be a trailing byte. In that case we // need to take a slower path and iterate one multi-byte character at a time. -const uint8_t * yp_strpbrk(yp_parser_t *parser, const uint8_t *source, const uint8_t *charset, ptrdiff_t length); +const uint8_t * pm_strpbrk(pm_parser_t *parser, const uint8_t *source, const uint8_t *charset, ptrdiff_t length); #endif |