changeset 1476:aada6ecef7dd

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 wrap: on
line diff
--- a/src/lua-test.c	Mon Dec 06 01:31:02 2010 +1100
+++ b/src/lua-test.c	Sun Dec 05 15:41:01 2010 +0100
@@ -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	Mon Dec 06 01:31:02 2010 +1100
+++ b/src/lua.mk	Sun Dec 05 15:41:01 2010 +0100
@@ -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