mirror of
https://github.com/git/git
synced 2024-09-13 13:24:41 +00:00
980013e90d
Replace the custom function is_in() for looking up a character in the specification string with memchr(3) and sizeof. This is shorter, simpler and allows NUL anywhere in the string, which may come in handy if we ever want to support more character classes that contain it. Getting the string size using sizeof only works in a macro and with a string constant. Use ARRAY_SIZE and compile-time checks to make sure we are not passed a string pointer. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com> |
||
---|---|---|
.. | ||
.gitignore | ||
t-basic.c | ||
t-ctype.c | ||
t-mem-pool.c | ||
t-prio-queue.c | ||
t-strbuf.c | ||
test-lib.c | ||
test-lib.h |