From 6eb78de492e0b2432e5fe2351e90731d1ba117e3 Mon Sep 17 00:00:00 2001 From: aunsane Date: Fri, 6 Apr 2018 21:00:37 +0300 Subject: MirLua: ffi module removed because it seems to be not working Possible working version here https://github.com/dibyendumajumdar/ravi-ffi --- plugins/MirLua/Modules/ffi/src/test_includes.sh | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 plugins/MirLua/Modules/ffi/src/test_includes.sh (limited to 'plugins/MirLua/Modules/ffi/src/test_includes.sh') diff --git a/plugins/MirLua/Modules/ffi/src/test_includes.sh b/plugins/MirLua/Modules/ffi/src/test_includes.sh deleted file mode 100644 index c0b9cfa1f9..0000000000 --- a/plugins/MirLua/Modules/ffi/src/test_includes.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh -make test || exit -rm -rf test_includes -mkdir -p test_includes -for f in /usr/include/*.h -do - gcc -E -c "${f}" > tmp 2>/dev/null - if [ $? == 0 ] - then - echo "${f}"; - lua -e ' - local str = io.read("*a") - -- remove preprocessor commands eg line directives - str = str:gsub("#[^\n]*", "") - -- remove inline function definitions and declarations - str = str:gsub("extern%s+__inline__", "static") - str = str:gsub("extern%s+__inline", "static") - str = str:gsub("static[^;(]+__attribute__%s*%b()", "static ") - str = str:gsub("static[^;(]+__attribute__%s*%b()", "static ") - str = str:gsub("static[^;(]+%b()%s*%b{}", "") - str = str:gsub("static[^;(]+%b()%s*;", "") - io.write(str)' > "test_includes/`basename $f`" < tmp - lua -e 'ffi = require("ffi"); ffi.cdef(io.read("*a"))' < "test_includes/`basename $f`" - fi -done -- cgit v1.2.3