Branch: Tag:

2018-02-01

2018-02-01 10:18:35 by Martin Nilsson <nilsson@fastmail.com>

Remove pcharp_memcmp(). Add const.

213:   extern int page_size;      /* Note to self: Prototypes must be updated manually /Hubbe */ - PMOD_EXPORT ptrdiff_t pcharp_memcmp(PCHARP a, PCHARP b, int sz) ATTRIBUTE((pure)); - PMOD_EXPORT long pcharp_strlen(PCHARP a) ATTRIBUTE((pure)); + PMOD_EXPORT long pcharp_strlen(const PCHARP a) ATTRIBUTE((pure));      #define MEMCHR0 memchr   p_wchar1 *MEMCHR1(p_wchar1 *p, p_wchar2 c, ptrdiff_t e) ATTRIBUTE((pure));   p_wchar2 *MEMCHR2(p_wchar2 *p, p_wchar2 c, ptrdiff_t e) ATTRIBUTE((pure));    - PMOD_EXPORT void reorder(char *memory, INT32 nitems, INT32 size, const INT32 *order); + PMOD_EXPORT void reorder(const char *memory, INT32 nitems, INT32 size, const INT32 *order);      size_t hashmem_siphash24( const void *s, size_t len );   #if (defined(__i386__) || defined(__amd64__)) && defined(__GNUC__)