File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 10
10
#define LCDB_DB "cdb.db"
11
11
#define LCDB_MAKE "cdb.make"
12
12
13
- static struct cdb * push_cdb (lua_State * L ) {
13
+ static struct cdb * new_cdb (lua_State * L ) {
14
14
struct cdb * cdbp = (struct cdb * )lua_newuserdata (L , sizeof (struct cdb ));
15
15
luaL_getmetatable (L , LCDB_DB );
16
16
lua_setmetatable (L , -2 );
@@ -40,7 +40,7 @@ static int lcdb_open(lua_State *L) {
40
40
if (fd < 0 )
41
41
return push_errno (L , errno );
42
42
43
- cdbp = push_cdb (L );
43
+ cdbp = new_cdb (L );
44
44
ret = cdb_init (cdbp , fd );
45
45
if (ret < 0 ) {
46
46
lua_pushnil (L );
@@ -144,7 +144,7 @@ static int lcdbm_pairs(lua_State *L) {
144
144
return 1 ;
145
145
}
146
146
147
- static struct cdb_make * push_cdb_make (lua_State * L ) {
147
+ static struct cdb_make * new_cdb_make (lua_State * L ) {
148
148
struct cdb_make * cdbmp = (struct cdb_make * )lua_newuserdata (L , sizeof (struct cdb_make ));
149
149
luaL_getmetatable (L , LCDB_MAKE );
150
150
lua_setmetatable (L , -2 );
@@ -172,7 +172,7 @@ static int lcdb_make(lua_State *L) {
172
172
if (fd < 0 )
173
173
return push_errno (L , errno );
174
174
175
- cdbmp = push_cdb_make (L );
175
+ cdbmp = new_cdb_make (L );
176
176
ret = cdb_make_start (cdbmp , fd );
177
177
178
178
/* store destination and tmpname in userdata environment */
You can’t perform that action at this time.
0 commit comments