History

lib/parser.c: put EXPORT_SYMBOLs in the conventional place

Andrew Morton committed 12 years ago

Commit a3d2cca1 parent aace0501 file · +6 −7Browse files

Unified · Split

lib/parser.c+6−7
@@ -113,6 +113,7 @@ int match_token(char *s, const match_table_t table, substring_t args[]) · 112 unmodified lines
113 113
114 return p->token;114 return p->token;
115}115}
116EXPORT_SYMBOL(match_token);
116 117
117/**118/**
118 * match_number: scan a number in the given base from a substring_t119 * match_number: scan a number in the given base from a substring_t
@@ -163,6 +164,7 @@ int match_int(substring_t *s, int *result) · 44 unmodified lines
163{164{
164 return match_number(s, result, 0);165 return match_number(s, result, 0);
165}166}
167EXPORT_SYMBOL(match_int);
166 168
167/**169/**
168 * match_octal: - scan an octal representation of an integer from a substring_t170 * match_octal: - scan an octal representation of an integer from a substring_t
@@ -177,6 +179,7 @@ int match_octal(substring_t *s, int *result) · 8 unmodified lines
177{179{
178 return match_number(s, result, 8);180 return match_number(s, result, 8);
179}181}
182EXPORT_SYMBOL(match_octal);
180 183
181/**184/**
182 * match_hex: - scan a hex representation of an integer from a substring_t185 * match_hex: - scan a hex representation of an integer from a substring_t
@@ -191,6 +194,7 @@ int match_hex(substring_t *s, int *result) · 8 unmodified lines
191{194{
192 return match_number(s, result, 16);195 return match_number(s, result, 16);
193}196}
197EXPORT_SYMBOL(match_hex);
194 198
195/**199/**
196 * match_wildcard: - parse if a string matches given wildcard pattern200 * match_wildcard: - parse if a string matches given wildcard pattern
@@ -241,6 +245,7 @@ bool match_wildcard(const char *pattern, const char *str) · 44 unmodified lines
241 ++p;245 ++p;
242 return !*p;246 return !*p;
243}247}
248EXPORT_SYMBOL(match_wildcard);
244 249
245/**250/**
246 * match_strlcpy: - Copy the characters from a substring_t to a sized buffer251 * match_strlcpy: - Copy the characters from a substring_t to a sized buffer
@@ -263,6 +268,7 @@ size_t match_strlcpy(char *dest, const substring_t *src, size_t size) · 16 unmodified lines
263 }268 }
264 return ret;269 return ret;
265}270}
271EXPORT_SYMBOL(match_strlcpy);
266 272
267/**273/**
268 * match_strdup: - allocate a new string with the contents of a substring_t274 * match_strdup: - allocate a new string with the contents of a substring_t
@@ -280,11 +286,4 @@ char *match_strdup(const substring_t *s) · 11 unmodified lines
280 match_strlcpy(p, s, sz);286 match_strlcpy(p, s, sz);
281 return p;287 return p;
282}288}
283
284EXPORT_SYMBOL(match_token);
285EXPORT_SYMBOL(match_int);
286EXPORT_SYMBOL(match_octal);
287EXPORT_SYMBOL(match_hex);
288EXPORT_SYMBOL(match_wildcard);
289EXPORT_SYMBOL(match_strlcpy);
290EXPORT_SYMBOL(match_strdup);289EXPORT_SYMBOL(match_strdup);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t