Software /
code /
prosody
Comparison
util-src/table.c @ 6615:8e4572a642cb
util-src/*.c: astyle --indent=tab --brackets=attach --indent-switches --break-blocks --pad-oper --unpad-paren --add-brackets --align-pointer=type --lineend=linux
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 03 Apr 2015 19:52:48 +0200 |
parent | 6610:7c4cf87f4dff |
child | 7519:d278a770eddc |
comparison
equal
deleted
inserted
replaced
6613:2aae36312eb9 | 6615:8e4572a642cb |
---|---|
4 static int Lcreate_table(lua_State* L) { | 4 static int Lcreate_table(lua_State* L) { |
5 lua_createtable(L, luaL_checkinteger(L, 1), luaL_checkinteger(L, 2)); | 5 lua_createtable(L, luaL_checkinteger(L, 1), luaL_checkinteger(L, 2)); |
6 return 1; | 6 return 1; |
7 } | 7 } |
8 | 8 |
9 int luaopen_util_table(lua_State *L) { | 9 int luaopen_util_table(lua_State* L) { |
10 lua_newtable(L); | 10 lua_newtable(L); |
11 lua_pushcfunction(L, Lcreate_table); | 11 lua_pushcfunction(L, Lcreate_table); |
12 lua_setfield(L, -2, "create"); | 12 lua_setfield(L, -2, "create"); |
13 return 1; | 13 return 1; |
14 } | 14 } |