diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2014-04-02 20:46:06 +0200 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2014-04-02 20:46:06 +0200 |
commit | bfd0179042b0b02fb88748d54e56e7e208bb117f (patch) | |
tree | 42d5fd51574054caaf673420fca1ec962d62d2f2 /apps/plugins/lua/strspn.c | |
parent | 36378988ad4059982742f05f5eb50580b456840a (diff) | |
download | rockbox-bfd0179042b0b02fb88748d54e56e7e208bb117f.tar.gz rockbox-bfd0179042b0b02fb88748d54e56e7e208bb117f.zip |
Revert "Update lua plugin to 5.2.3"
FILE typedef to *void needs more work to not break sim and
application builds. I checked only a few random native builds
unfortunately. Sorry for inconvenience.
Diffstat (limited to 'apps/plugins/lua/strspn.c')
-rw-r--r-- | apps/plugins/lua/strspn.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/apps/plugins/lua/strspn.c b/apps/plugins/lua/strspn.c deleted file mode 100644 index e95500a1dc..0000000000 --- a/apps/plugins/lua/strspn.c +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | #include "rocklibc.h" | ||
2 | |||
3 | #undef strspn | ||
4 | |||
5 | size_t strspn(const char *s, const char *accept) | ||
6 | { | ||
7 | size_t count; | ||
8 | for (count = 0; *s != 0; s++, count++) { | ||
9 | const char *ac; | ||
10 | for (ac = accept; *ac != 0; ac++) { | ||
11 | if (*ac == *s) | ||
12 | break; | ||
13 | } | ||
14 | if (*ac == 0) /* no acceptable char found */ | ||
15 | break; | ||
16 | } | ||
17 | return count; | ||
18 | } | ||
19 | |||