diff options
Diffstat (limited to 'apps/plugins/lua')
-rwxr-xr-x | apps/plugins/lua/rocklib_aux.pl | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/apps/plugins/lua/rocklib_aux.pl b/apps/plugins/lua/rocklib_aux.pl index a618c3d360..547a628f52 100755 --- a/apps/plugins/lua/rocklib_aux.pl +++ b/apps/plugins/lua/rocklib_aux.pl | |||
@@ -21,7 +21,7 @@ | |||
21 | 21 | ||
22 | # The purpose of this script is to automatically generate Lua wrappers for | 22 | # The purpose of this script is to automatically generate Lua wrappers for |
23 | # (easily) portable C functions used in the Rockbox plugin API. | 23 | # (easily) portable C functions used in the Rockbox plugin API. |
24 | # It doesn't contain support for structs or pointers (apart from char*). | 24 | # It doesn't contain support for enums, structs or pointers (apart from char*). |
25 | # | 25 | # |
26 | # The output will be written to <build_dir>/apps/plugins/lua/rocklib_aux.c | 26 | # The output will be written to <build_dir>/apps/plugins/lua/rocklib_aux.c |
27 | 27 | ||
@@ -193,7 +193,6 @@ EOF | |||
193 | ; | 193 | ; |
194 | 194 | ||
195 | my %in_types = ('void' => \&in_void, | 195 | my %in_types = ('void' => \&in_void, |
196 | 'enum' => \&in_int, | ||
197 | 'int' => \&in_int, | 196 | 'int' => \&in_int, |
198 | 'unsigned' => \&in_int, | 197 | 'unsigned' => \&in_int, |
199 | 'unsignedint' => \&in_int, | 198 | 'unsignedint' => \&in_int, |
@@ -246,12 +245,6 @@ sub in_void | |||
246 | return "\t(void)L;\n"; | 245 | return "\t(void)L;\n"; |
247 | } | 246 | } |
248 | 247 | ||
249 | sub in_null | ||
250 | { | ||
251 | my ($name, $type, $pos) = @_; | ||
252 | return sprintf("\t%s %s = NULL;\n", $type, $name, $type, $pos) | ||
253 | } | ||
254 | |||
255 | sub in_int | 248 | sub in_int |
256 | { | 249 | { |
257 | my ($name, $type, $pos) = @_; | 250 | my ($name, $type, $pos) = @_; |