Some code cleanup and added .config folder to gitignore
This commit is contained in:
parent
14d813cea1
commit
4499f1f111
|
@ -8,3 +8,4 @@ subprojects/lua
|
||||||
subprojects/libagg
|
subprojects/libagg
|
||||||
sybprojects/lua
|
sybprojects/lua
|
||||||
lite
|
lite
|
||||||
|
.config/
|
||||||
|
|
|
@ -434,7 +434,6 @@ static int f_list_dir(lua_State *L) {
|
||||||
static int f_absolute_path(lua_State *L) {
|
static int f_absolute_path(lua_State *L) {
|
||||||
const char *path = luaL_checkstring(L, 1);
|
const char *path = luaL_checkstring(L, 1);
|
||||||
char *res = realpath(path, NULL);
|
char *res = realpath(path, NULL);
|
||||||
//printf("DBG: f_absolute_path() %s\n", res);
|
|
||||||
if (!res) { return 0; }
|
if (!res) { return 0; }
|
||||||
lua_pushstring(L, res);
|
lua_pushstring(L, res);
|
||||||
free(res);
|
free(res);
|
||||||
|
|
Loading…
Reference in New Issue