diff options
Diffstat (limited to 'src/microhttpd/mhd_str.c')
-rw-r--r-- | src/microhttpd/mhd_str.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/microhttpd/mhd_str.c b/src/microhttpd/mhd_str.c index bb10d26f..e965be63 100644 --- a/src/microhttpd/mhd_str.c +++ b/src/microhttpd/mhd_str.c | |||
@@ -32,13 +32,13 @@ | |||
32 | #include "mhd_limits.h" | 32 | #include "mhd_limits.h" |
33 | 33 | ||
34 | #ifdef MHD_FAVOR_SMALL_CODE | 34 | #ifdef MHD_FAVOR_SMALL_CODE |
35 | #ifdef _MHD_inline | 35 | #ifdef _MHD_static_inline |
36 | #undef _MHD_inline | 36 | #undef _MHD_static_inline |
37 | #endif /* _MHD_inline */ | 37 | #endif /* _MHD_static_inline */ |
38 | /* Do not force inlining and do not use macro functions, use normal static | 38 | /* Do not force inlining and do not use macro functions, use normal static |
39 | functions instead. | 39 | functions instead. |
40 | This may give more flexibility for size optimizations. */ | 40 | This may give more flexibility for size optimizations. */ |
41 | #define _MHD_inline static | 41 | #define _MHD_static_inline static |
42 | #ifndef INLINE_FUNC | 42 | #ifndef INLINE_FUNC |
43 | #define INLINE_FUNC 1 | 43 | #define INLINE_FUNC 1 |
44 | #endif /* !INLINE_FUNC */ | 44 | #endif /* !INLINE_FUNC */ |
@@ -56,7 +56,7 @@ | |||
56 | * @param c character to check | 56 | * @param c character to check |
57 | * @return non-zero if character is lower case letter, zero otherwise | 57 | * @return non-zero if character is lower case letter, zero otherwise |
58 | */ | 58 | */ |
59 | _MHD_inline bool | 59 | _MHD_static_inline bool |
60 | isasciilower (char c) | 60 | isasciilower (char c) |
61 | { | 61 | { |
62 | return (c >= 'a') && (c <= 'z'); | 62 | return (c >= 'a') && (c <= 'z'); |
@@ -69,7 +69,7 @@ isasciilower (char c) | |||
69 | * @param c character to check | 69 | * @param c character to check |
70 | * @return non-zero if character is upper case letter, zero otherwise | 70 | * @return non-zero if character is upper case letter, zero otherwise |
71 | */ | 71 | */ |
72 | _MHD_inline bool | 72 | _MHD_static_inline bool |
73 | isasciiupper (char c) | 73 | isasciiupper (char c) |
74 | { | 74 | { |
75 | return (c >= 'A') && (c <= 'Z'); | 75 | return (c >= 'A') && (c <= 'Z'); |
@@ -82,7 +82,7 @@ isasciiupper (char c) | |||
82 | * @param c character to check | 82 | * @param c character to check |
83 | * @return non-zero if character is letter in US-ASCII, zero otherwise | 83 | * @return non-zero if character is letter in US-ASCII, zero otherwise |
84 | */ | 84 | */ |
85 | _MHD_inline bool | 85 | _MHD_static_inline bool |
86 | isasciialpha (char c) | 86 | isasciialpha (char c) |
87 | { | 87 | { |
88 | return isasciilower (c) || isasciiupper (c); | 88 | return isasciilower (c) || isasciiupper (c); |
@@ -95,7 +95,7 @@ isasciialpha (char c) | |||
95 | * @param c character to check | 95 | * @param c character to check |
96 | * @return non-zero if character is decimal digit, zero otherwise | 96 | * @return non-zero if character is decimal digit, zero otherwise |
97 | */ | 97 | */ |
98 | _MHD_inline bool | 98 | _MHD_static_inline bool |
99 | isasciidigit (char c) | 99 | isasciidigit (char c) |
100 | { | 100 | { |
101 | return (c >= '0') && (c <= '9'); | 101 | return (c >= '0') && (c <= '9'); |
@@ -108,7 +108,7 @@ isasciidigit (char c) | |||
108 | * @param c character to check | 108 | * @param c character to check |
109 | * @return non-zero if character is decimal digit, zero otherwise | 109 | * @return non-zero if character is decimal digit, zero otherwise |
110 | */ | 110 | */ |
111 | _MHD_inline bool | 111 | _MHD_static_inline bool |
112 | isasciixdigit (char c) | 112 | isasciixdigit (char c) |
113 | { | 113 | { |
114 | return isasciidigit (c) || | 114 | return isasciidigit (c) || |
@@ -123,7 +123,7 @@ isasciixdigit (char c) | |||
123 | * @param c character to check | 123 | * @param c character to check |
124 | * @return non-zero if character is decimal digit or letter, zero otherwise | 124 | * @return non-zero if character is decimal digit or letter, zero otherwise |
125 | */ | 125 | */ |
126 | _MHD_inline bool | 126 | _MHD_static_inline bool |
127 | isasciialnum (char c) | 127 | isasciialnum (char c) |
128 | { | 128 | { |
129 | return isasciialpha (c) || isasciidigit (c); | 129 | return isasciialpha (c) || isasciidigit (c); |
@@ -139,7 +139,7 @@ isasciialnum (char c) | |||
139 | * @param c character to convert | 139 | * @param c character to convert |
140 | * @return converted to lower case character | 140 | * @return converted to lower case character |
141 | */ | 141 | */ |
142 | _MHD_inline char | 142 | _MHD_static_inline char |
143 | toasciilower (char c) | 143 | toasciilower (char c) |
144 | { | 144 | { |
145 | return isasciiupper (c) ? (c - 'A' + 'a') : c; | 145 | return isasciiupper (c) ? (c - 'A' + 'a') : c; |
@@ -155,7 +155,7 @@ toasciilower (char c) | |||
155 | * @param c character to convert | 155 | * @param c character to convert |
156 | * @return converted to upper case character | 156 | * @return converted to upper case character |
157 | */ | 157 | */ |
158 | _MHD_inline char | 158 | _MHD_static_inline char |
159 | toasciiupper (char c) | 159 | toasciiupper (char c) |
160 | { | 160 | { |
161 | return isasciilower (c) ? (c - 'a' + 'A') : c; | 161 | return isasciilower (c) ? (c - 'a' + 'A') : c; |
@@ -168,7 +168,7 @@ toasciiupper (char c) | |||
168 | * @param c character to convert | 168 | * @param c character to convert |
169 | * @return value of decimal digit or -1 if @ c is not decimal digit | 169 | * @return value of decimal digit or -1 if @ c is not decimal digit |
170 | */ | 170 | */ |
171 | _MHD_inline int | 171 | _MHD_static_inline int |
172 | todigitvalue (char c) | 172 | todigitvalue (char c) |
173 | { | 173 | { |
174 | if (isasciidigit (c)) | 174 | if (isasciidigit (c)) |
@@ -184,7 +184,7 @@ todigitvalue (char c) | |||
184 | * @param c character to convert | 184 | * @param c character to convert |
185 | * @return value of hexadecimal digit or -1 if @ c is not hexadecimal digit | 185 | * @return value of hexadecimal digit or -1 if @ c is not hexadecimal digit |
186 | */ | 186 | */ |
187 | _MHD_inline int | 187 | _MHD_static_inline int |
188 | toxdigitvalue (char c) | 188 | toxdigitvalue (char c) |
189 | { | 189 | { |
190 | if (isasciidigit (c)) | 190 | if (isasciidigit (c)) |