From b779a59313850e2b7fad45a6da8ed7acfb58d518 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Sat, 15 Nov 2014 19:43:04 +0100 Subject: Create html_unescape.h as ANSI C Pass -L ANSI-C to gperf to create more compatible code. --- src/html/html_unescape.h | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/html/html_unescape.h b/src/html/html_unescape.h index 9fd7969..e02c12f 100644 --- a/src/html/html_unescape.h +++ b/src/html/html_unescape.h @@ -1,5 +1,5 @@ -/* C code produced by gperf version 3.0.4 */ -/* Command-line: gperf -I -t -N find_entity -H hash_entity -K entity -C -l --null-strings -m5 src/html/html_unescape.gperf */ +/* ANSI-C code produced by gperf version 3.0.4 */ +/* Command-line: gperf -L ANSI-C -I -t -N find_entity -H hash_entity -K entity -C -l --null-strings -m5 src/html/html_unescape.gperf */ /* Computed positions: -k'1-7,10,12,$' */ #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ @@ -26,7 +26,7 @@ && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \ && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126)) /* The character set is not based on ISO-646. */ -error "gperf generated tables don't work with this execution character set. Please report a bug to ." +#error "gperf generated tables don't work with this execution character set. Please report a bug to ." #endif #line 1 "src/html/html_unescape.gperf" @@ -52,9 +52,7 @@ inline #endif #endif static unsigned int -hash_entity (str, len) - register const char *str; - register unsigned int len; +hash_entity (register const char *str, register unsigned int len) { static const unsigned short asso_values[] = { @@ -129,10 +127,8 @@ __inline __attribute__ ((__gnu_inline__)) #endif #endif -static const struct html_ent * -find_entity (str, len) - register const char *str; - register unsigned int len; +const struct html_ent * +find_entity (register const char *str, register unsigned int len) { static const unsigned char lengthtable[] = { -- cgit v1.2.3