forked from len0rd/rockbox
Fix red lua remove and consolidate some rb plugin functions
I'll revisit adding enums once I research it a bit more Change-Id: If10c445cf770e5b90defc543f08d8de0817b2f3d
This commit is contained in:
parent
de06a06351
commit
bad739c0d8
1 changed files with 1 additions and 8 deletions
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
# The purpose of this script is to automatically generate Lua wrappers for
|
# The purpose of this script is to automatically generate Lua wrappers for
|
||||||
# (easily) portable C functions used in the Rockbox plugin API.
|
# (easily) portable C functions used in the Rockbox plugin API.
|
||||||
# It doesn't contain support for structs or pointers (apart from char*).
|
# It doesn't contain support for enums, structs or pointers (apart from char*).
|
||||||
#
|
#
|
||||||
# The output will be written to <build_dir>/apps/plugins/lua/rocklib_aux.c
|
# The output will be written to <build_dir>/apps/plugins/lua/rocklib_aux.c
|
||||||
|
|
||||||
|
@ -193,7 +193,6 @@ EOF
|
||||||
;
|
;
|
||||||
|
|
||||||
my %in_types = ('void' => \&in_void,
|
my %in_types = ('void' => \&in_void,
|
||||||
'enum' => \&in_int,
|
|
||||||
'int' => \&in_int,
|
'int' => \&in_int,
|
||||||
'unsigned' => \&in_int,
|
'unsigned' => \&in_int,
|
||||||
'unsignedint' => \&in_int,
|
'unsignedint' => \&in_int,
|
||||||
|
@ -246,12 +245,6 @@ sub in_void
|
||||||
return "\t(void)L;\n";
|
return "\t(void)L;\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
sub in_null
|
|
||||||
{
|
|
||||||
my ($name, $type, $pos) = @_;
|
|
||||||
return sprintf("\t%s %s = NULL;\n", $type, $name, $type, $pos)
|
|
||||||
}
|
|
||||||
|
|
||||||
sub in_int
|
sub in_int
|
||||||
{
|
{
|
||||||
my ($name, $type, $pos) = @_;
|
my ($name, $type, $pos) = @_;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue