include/prism/util/pm_memchr.h in prism-0.18.0 vs include/prism/util/pm_memchr.h in prism-0.19.0

- old
+ new

@@ -5,11 +5,11 @@ */ #ifndef PRISM_MEMCHR_H #define PRISM_MEMCHR_H #include "prism/defines.h" -#include "prism/enc/pm_encoding.h" +#include "prism/encoding.h" #include <stddef.h> /** * We need to roll our own memchr to handle cases where the encoding changes and @@ -22,8 +22,8 @@ * @param encoding_changed Whether the encoding changed. * @param encoding A pointer to the encoding. * @return A pointer to the first occurrence of the character in the source * string, or NULL if no such character exists. */ -void * pm_memchr(const void *source, int character, size_t number, bool encoding_changed, pm_encoding_t *encoding); +void * pm_memchr(const void *source, int character, size_t number, bool encoding_changed, const pm_encoding_t *encoding); #endif