Browse Source

Remove remaining 'register' instructions.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/76/head
Michele Calgaro 1 month ago
parent
commit
30606e55f1
Signed by: MicheleC <michele.calgaro@yahoo.it> GPG Key ID: 2A75B7CA8ADED5CF
10 changed files with 19 additions and 19 deletions
  1. +2
    -2
      dcop/KDE-ICE/iceauth.c
  2. +2
    -2
      tdecore/kentities.c
  3. +1
    -1
      tdecore/kmdcodec.cpp
  4. +3
    -3
      tdehtml/css/cssproperties.c
  5. +3
    -3
      tdehtml/css/cssvalues.c
  6. +1
    -1
      tdehtml/css/makeprop
  7. +1
    -1
      tdehtml/css/makevalues
  8. +2
    -2
      tdehtml/html/doctypes.cpp
  9. +2
    -2
      tdehtml/misc/htmlattrs.c
  10. +2
    -2
      tdehtml/misc/htmltags.c

+ 2
- 2
dcop/KDE-ICE/iceauth.c View File

@@ -45,7 +45,7 @@ extern Time_t time ();
#define Time_t time_t
#endif

static int binaryEqual (register const char *a, const char *b, unsigned len);
static int binaryEqual (const char *a, const char *b, unsigned len);

static int was_called_state;

@@ -264,7 +264,7 @@ char **errorStringRet;
* local routines
*/

static int binaryEqual (register const char *a, const char *b, unsigned len)
static int binaryEqual (const char *a, const char *b, unsigned len)
{
while (len--)
if (*a++ != *b++)


+ 2
- 2
tdecore/kentities.c View File

@@ -73,7 +73,7 @@ inline
#endif
#endif
static unsigned int
hash_Entity (register const char *str, unsigned int len)
hash_Entity (const char *str, unsigned int len)
{
static const unsigned short asso_values[] =
{
@@ -140,7 +140,7 @@ hash_Entity (register const char *str, unsigned int len)
__inline
#endif
const struct entity *
kde_findEntity (register const char *str, unsigned int len)
kde_findEntity (const char *str, unsigned int len)
{
enum
{


+ 1
- 1
tdecore/kmdcodec.cpp View File

@@ -137,7 +137,7 @@ const unsigned int KCodecs::maxQPLineLength = 70;

/******************************** KCodecs ********************************/
// strchr(3) for broken systems.
static int rikFindChar(register const char * _s, const char c)
static int rikFindChar(const char * _s, const char c)
{
const char * s = _s;



+ 3
- 3
tdehtml/css/cssproperties.c View File

@@ -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
{


+ 3
- 3
tdehtml/css/cssvalues.c View File

@@ -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
{


+ 1
- 1
tdehtml/css/makeprop View File

@@ -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


+ 1
- 1
tdehtml/css/makevalues View File

@@ -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


+ 2
- 2
tdehtml/html/doctypes.cpp View File

@@ -51,7 +51,7 @@ inline
#endif
#endif
static unsigned int
hash (register const char *str, unsigned int len)
hash (const char *str, unsigned int len)
{
static const unsigned short asso_values[] =
{
@@ -334,7 +334,7 @@ hash (register const char *str, unsigned int len)
__inline
#endif
const struct PubIDInfo *
findDoctypeEntry (register const char *str, unsigned int len)
findDoctypeEntry (const char *str, unsigned int len)
{
enum
{


+ 2
- 2
tdehtml/misc/htmlattrs.c View File

@@ -57,7 +57,7 @@ inline
#endif
#endif
static unsigned int
hash_attr (register const char *str, unsigned int len)
hash_attr (const char *str, unsigned int len)
{
static const unsigned short asso_values[] =
{
@@ -831,7 +831,7 @@ inline
#endif
#endif
const struct attrs *
findAttr (register const char *str, unsigned int len)
findAttr (const char *str, unsigned int len)
{
if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
{


+ 2
- 2
tdehtml/misc/htmltags.c View File

@@ -48,7 +48,7 @@ inline
#endif
#endif
static unsigned int
hash_tag (register const char *str, unsigned int len)
hash_tag (const char *str, unsigned int len)
{
static const unsigned short asso_values[] =
{
@@ -338,7 +338,7 @@ static const struct spool_Tag_t spool_Tag_contents =
__inline
#endif
const struct tags *
findTag (register const char *str, unsigned int len)
findTag (const char *str, unsigned int len)
{
enum
{


Loading…
Cancel
Save