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
|
||||
sybprojects/lua
|
||||
lite
|
||||
.config/
|
||||
|
|
|
@ -434,7 +434,6 @@ static int f_list_dir(lua_State *L) {
|
|||
static int f_absolute_path(lua_State *L) {
|
||||
const char *path = luaL_checkstring(L, 1);
|
||||
char *res = realpath(path, NULL);
|
||||
//printf("DBG: f_absolute_path() %s\n", res);
|
||||
if (!res) { return 0; }
|
||||
lua_pushstring(L, res);
|
||||
free(res);
|
||||
|
|
Loading…
Reference in New Issue