mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
lua-rs232: Update to latest git version
Last release was from 2012. Latest git has many additions. Cleaned up Makefile and eliminated build hacks. Added InstallDev section. Added PKG_BUILD_PARALLEL for faster compilation. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
Index: lua-rs232-1.0.3/bindings/lua/luars232.c
|
||||
===================================================================
|
||||
--- lua-rs232-1.0.3.orig/bindings/lua/luars232.c 2014-06-05 09:48:23.000000000 +0200
|
||||
+++ lua-rs232-1.0.3/bindings/lua/luars232.c 2017-12-03 13:03:51.008917783 +0100
|
||||
--- a/bindings/lua/luars232.c
|
||||
+++ b/bindings/lua/luars232.c
|
||||
@@ -31,7 +31,6 @@
|
||||
|
||||
#include "librs232/rs232.h"
|
||||
@@ -10,7 +8,7 @@ Index: lua-rs232-1.0.3/bindings/lua/luars232.c
|
||||
#define MODULE_NAMESPACE "luars232"
|
||||
#define MODULE_VERSION "1.0.3"
|
||||
#define MODULE_BUILD "$Id: luars232.c 15 2011-02-23 09:02:20Z sp $"
|
||||
@@ -483,9 +482,6 @@
|
||||
@@ -552,9 +551,6 @@
|
||||
lua_pushstring(L, MODULE_BUILD);
|
||||
lua_setfield(L, -2, "_BUILD");
|
||||
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
--- a/bindings/lua/luars232.c
|
||||
+++ b/bindings/lua/luars232.c
|
||||
@@ -529,7 +529,7 @@ static void create_metatables(lua_State *L, const char *name, const luaL_reg *me
|
||||
#endif
|
||||
}
|
||||
|
||||
-RS232_LIB int luaopen_luars232(lua_State *L)
|
||||
+RS232_LIB static int luaopen_luars232(lua_State *L)
|
||||
{
|
||||
int i;
|
||||
create_metatables(L, MODULE_NAMESPACE, port_methods);
|
||||
@@ -560,6 +560,7 @@ RS232_LIB int luaopen_luars232(lua_State *L)
|
||||
return 1;
|
||||
}
|
||||
|
||||
-RS232_LIB int luaopen_rs232_core(lua_State *L){
|
||||
+__attribute__((unused))
|
||||
+RS232_LIB static int luaopen_rs232_core(lua_State *L){
|
||||
return luaopen_luars232(L);
|
||||
}
|
||||
--- a/include/librs232/rs232.h
|
||||
+++ b/include/librs232/rs232.h
|
||||
@@ -134,7 +134,7 @@ enum rs232_flow_e {
|
||||
|
||||
enum rs232_status_e {
|
||||
RS232_PORT_CLOSED,
|
||||
- RS232_PORT_OPEN,
|
||||
+ RS232_PORT_OPEN
|
||||
};
|
||||
|
||||
enum rs232_dtr_e {
|
||||
Reference in New Issue
Block a user