-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
137 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* ANSI-C code produced by gperf version 3.1 */ | ||
/* ANSI-C code produced by gperf version 3.0.4 */ | ||
/* Command-line: gperf --global-table -t lib/priority_options.gperf */ | ||
/* Computed positions: -k'1,$' */ | ||
|
||
|
@@ -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 <[email protected]>." | ||
#error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-[email protected]>." | ||
#endif | ||
|
||
#line 1 "lib/priority_options.gperf" | ||
|
@@ -51,7 +51,7 @@ inline | |
#endif | ||
#endif | ||
static unsigned int | ||
hash (register const char *str, register size_t len) | ||
hash (register const char *str, register unsigned int len) | ||
{ | ||
static const unsigned char asso_values[] = | ||
{ | ||
|
@@ -155,14 +155,20 @@ static const struct priority_options_st wordlist[] = | |
{"PROFILE_SUITEB192", enable_profile_suiteb192} | ||
}; | ||
|
||
#ifdef __GNUC__ | ||
__inline | ||
#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__ | ||
__attribute__ ((__gnu_inline__)) | ||
#endif | ||
#endif | ||
const struct priority_options_st * | ||
in_word_set (register const char *str, register size_t len) | ||
in_word_set (register const char *str, register unsigned int len) | ||
{ | ||
if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) | ||
{ | ||
register unsigned int key = hash (str, len); | ||
register int key = hash (str, len); | ||
|
||
if (key <= MAX_HASH_VALUE) | ||
if (key <= MAX_HASH_VALUE && key >= 0) | ||
{ | ||
register const char *s = wordlist[key].name; | ||
|
||
|
Oops, something went wrong.