Skip to content

Commit

Permalink
fix KR style function declarations for C2X compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhendricks committed Jul 5, 2023
1 parent 5f16d4c commit 189aee2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
4 changes: 1 addition & 3 deletions src/foreign_attrs.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ inline
#endif
#endif
static unsigned int
hash (str, len)
register const char *str;
register unsigned int len;
hash (const char* str, unsigned int len)
{
static const unsigned char asso_values[] =
{
Expand Down
9 changes: 2 additions & 7 deletions src/svg_attrs.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,7 @@ static unsigned char gperf_downcase[256] =
#ifndef GPERF_CASE_MEMCMP
#define GPERF_CASE_MEMCMP 1
static int
gperf_case_memcmp (s1, s2, n)
register const char *s1;
register const char *s2;
register unsigned int n;
gperf_case_memcmp (const char* s1, const char* s2, unsigned int n)
{
for (; n > 0;)
{
Expand All @@ -97,9 +94,7 @@ inline
#endif
#endif
static unsigned int
hash (str, len)
register const char *str;
register unsigned int len;
hash (const char* str, unsigned int len)
{
static const unsigned char asso_values[] =
{
Expand Down
9 changes: 2 additions & 7 deletions src/svg_tags.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,7 @@ static unsigned char gperf_downcase[256] =
#ifndef GPERF_CASE_MEMCMP
#define GPERF_CASE_MEMCMP 1
static int
gperf_case_memcmp (s1, s2, n)
register const char *s1;
register const char *s2;
register unsigned int n;
gperf_case_memcmp (const char* s1, const char* s2, unsigned int n)
{
for (; n > 0;)
{
Expand All @@ -97,9 +94,7 @@ inline
#endif
#endif
static unsigned int
hash (str, len)
register const char *str;
register unsigned int len;
hash (const char* str, unsigned int len)
{
static const unsigned char asso_values[] =
{
Expand Down

0 comments on commit 189aee2

Please sign in to comment.