summaryrefslogtreecommitdiffstats
path: root/tdehtml/css
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-02-20 11:22:30 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-02-20 11:22:30 +0900
commit30606e55f1a570463d837cb110b0bd4adba6643b (patch)
tree7e7ca7c48fc9b880fb67c659e9f6024dc5774fc4 /tdehtml/css
parentc088fbf55bde4faa68a6d51ba44085bd97c1e4e2 (diff)
downloadtdelibs-30606e55f1a570463d837cb110b0bd4adba6643b.tar.gz
tdelibs-30606e55f1a570463d837cb110b0bd4adba6643b.zip
Remove remaining 'register' instructions.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdehtml/css')
-rw-r--r--tdehtml/css/cssproperties.c6
-rw-r--r--tdehtml/css/cssvalues.c6
-rw-r--r--tdehtml/css/makeprop2
-rwxr-xr-xtdehtml/css/makevalues2
4 files changed, 8 insertions, 8 deletions
diff --git a/tdehtml/css/cssproperties.c b/tdehtml/css/cssproperties.c
index 1f4ba882b..3e6341ab7 100644
--- a/tdehtml/css/cssproperties.c
+++ b/tdehtml/css/cssproperties.c
@@ -39,7 +39,7 @@ struct props {
int id;
};
-static const struct props * findProp (register const char *str, unsigned int len);
+static const struct props * findProp (const char *str, unsigned int len);
/* maximum key range = 469, duplicates = 0 */
#ifdef __GNUC__
@@ -50,7 +50,7 @@ inline
#endif
#endif
static unsigned int
-hash_prop (register const char *str, unsigned int len)
+hash_prop (const char *str, unsigned int len)
{
static const unsigned short asso_values[] =
{
@@ -189,7 +189,7 @@ hash_prop (register const char *str, unsigned int len)
__inline
#endif
const struct props *
-findProp (register const char *str, unsigned int len)
+findProp (const char *str, unsigned int len)
{
enum
{
diff --git a/tdehtml/css/cssvalues.c b/tdehtml/css/cssvalues.c
index 9114aa513..af175349e 100644
--- a/tdehtml/css/cssvalues.c
+++ b/tdehtml/css/cssvalues.c
@@ -39,7 +39,7 @@ struct css_value {
int id;
};
-static const css_value* findValue (register const char *str, unsigned int len);
+static const css_value* findValue (const char *str, unsigned int len);
/* maximum key range = 2876, duplicates = 0 */
#ifdef __GNUC__
@@ -50,7 +50,7 @@ inline
#endif
#endif
static unsigned int
-hash_val (register const char *str, unsigned int len)
+hash_val (const char *str, unsigned int len)
{
static const unsigned short asso_values[] =
{
@@ -177,7 +177,7 @@ hash_val (register const char *str, unsigned int len)
__inline
#endif
const struct css_value *
-findValue (register const char *str, unsigned int len)
+findValue (const char *str, unsigned int len)
{
enum
{
diff --git a/tdehtml/css/makeprop b/tdehtml/css/makeprop
index a23f0b54f..b01ed7319 100644
--- a/tdehtml/css/makeprop
+++ b/tdehtml/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, 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 * findProp (const char *str, 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
diff --git a/tdehtml/css/makevalues b/tdehtml/css/makevalues
index eb496a563..3ca0a82ea 100755
--- a/tdehtml/css/makevalues
+++ b/tdehtml/css/makevalues
@@ -24,7 +24,7 @@
#
grep "^[^\#]" cssvalues.in > cssvalues.strip
-echo -e '%{\n/* This file is automatically generated from cssvalues.in by makevalues, do not edit */\n/* Copyright 1999 W. Bastian */\n#include "cssvalues.h"\n%}\nstruct css_value {\n const char *name;\n int id;\n};\n\nstatic const css_value* findValue (register const char *str, unsigned int len);\n\n%%' > cssvalues.gperf
+echo -e '%{\n/* This file is automatically generated from cssvalues.in by makevalues, do not edit */\n/* Copyright 1999 W. Bastian */\n#include "cssvalues.h"\n%}\nstruct css_value {\n const char *name;\n int id;\n};\n\nstatic const css_value* findValue (const char *str, unsigned int len);\n\n%%' > cssvalues.gperf
cat cssvalues.strip | awk '{ do { prop = $0; gsub("-", "_"); print prop ", CSS_VAL_" toupper($0) } while (getline) }' >> cssvalues.gperf
echo '%%' >> cssvalues.gperf
echo -e '/* This file is automatically generated from cssvalues.in by