summaryrefslogtreecommitdiffstats
path: root/khtml/css/makeprop
diff options
context:
space:
mode:
Diffstat (limited to 'khtml/css/makeprop')
-rw-r--r--khtml/css/makeprop4
1 files changed, 2 insertions, 2 deletions
diff --git a/khtml/css/makeprop b/khtml/css/makeprop
index a1a30ac97..df0f42764 100644
--- a/khtml/css/makeprop
+++ b/khtml/css/makeprop
@@ -23,7 +23,7 @@
#
grep "^[^\#]" cssproperties.in > cssproperties.strip
-echo -e '%{\n/* This file is automatically generated from cssproperties.in by makeprop, do not edit */\n/* Copyright 1999 W. Bastian */\n#include "cssproperties.h"\n%}\nstruct props {\n const char *name;\n int id;\n};\n\nstatic const struct props * findProp (register const char *str, register unsigned int len);\n\n%%' > cssproperties.gperf
+echo -e '%{\n/* This file is automatically generated from cssproperties.in by makeprop, do not edit */\n/* Copyright 1999 W. Bastian */\n#include "cssproperties.h"\n%}\nstruct props {\n const char *name;\n int id;\n};\n\nstatic const struct props * tqfindProp (register const char *str, register unsigned int len);\n\n%%' > cssproperties.gperf
cat cssproperties.strip | awk '{ do { prop = $0; gsub("-", "_"); print prop ", CSS_PROP_" toupper($0) } while (getline) }' >> cssproperties.gperf
echo '%%' >> cssproperties.gperf
echo -e '/* This file is automatically generated from cssproperties.in by makeprop, do not edit */\n/* Copyright 1998 W. Bastian */\n\n#ifndef CSSPROPERTIES_H\n#define CSSPROPERTIES_H\n\nDOM::DOMString getPropertyName(unsigned short id) KDE_NO_EXPORT;\n' > cssproperties.h
@@ -36,7 +36,7 @@ print ""; \
print "#define CSS_PROP_MAX CSS_PROP_Z_INDEX"; \
print "#define CSS_PROP_TOTAL " i \
}' >> cssproperties.h
-gperf -a -L 'ANSI-C' -E -C -c -o -t -k '*' -NfindProp -Hhash_prop -Wwordlist_prop -D -s 2 cssproperties.gperf > cssproperties.c || exit 1
+gperf -a -L 'ANSI-C' -E -C -c -o -t -k '*' -NtqfindProp -Hhash_prop -Wwordlist_prop -D -s 2 cssproperties.gperf > cssproperties.c || exit 1
echo -e '#endif\n' >> cssproperties.h
cat cssproperties.strip | awk '{ \