adjusted coding style of the test program of package lua
author |
Volker Grabsch <vog@notjusthosting.com> |
date |
Sun, 05 Dec 2010 15:41:01 +0100 |
parents |
72864135031e |
children |
52b652c3e927 |
files |
src/lua-test.c src/lua.mk |
diffstat |
2 files changed, 7 insertions(+), 4 deletions(-)
[+]
|
line diff
--- a/src/lua-test.c
+++ b/src/lua-test.c
@@ -5,11 +5,14 @@
#include <lua.h>
#include <lauxlib.h>
-int main (int argc, char **argv) {
+int main(int argc, char *argv[])
+{
+ lua_State *L;
+
(void)argc;
(void)argv;
-
- lua_State *L = lua_open();
+
+ L = lua_open();
lua_close(L);
return 0;
}
--- a/src/lua.mk
+++ b/src/lua.mk
@@ -34,7 +34,7 @@
install ranlib
'$(TARGET)-gcc' \
- -W -Wall -Werror -std=c99 -pedantic \
+ -W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-lua.exe' \
-llua
endef