Merge branch 'dev' into process-refactor
This commit is contained in:
commit
57fca752a2
|
@ -370,5 +370,11 @@ int luaopen_process(lua_State *L)
|
||||||
L_SETNUM(L, -1, "REDIRECT_STDOUT", REPROC_REDIRECT_STDOUT);
|
L_SETNUM(L, -1, "REDIRECT_STDOUT", REPROC_REDIRECT_STDOUT);
|
||||||
lua_setfield(L, -2, "CONSTANTS"); // process.CONSTANTS
|
lua_setfield(L, -2, "CONSTANTS"); // process.CONSTANTS
|
||||||
|
|
||||||
|
lua_pushnumber(L, REPROC_INFINITE);
|
||||||
|
lua_setfield(L, -2, "WAIT_INFINITE");
|
||||||
|
|
||||||
|
lua_pushnumber(L, REPROC_DEADLINE);
|
||||||
|
lua_setfield(L, -2, "WAIT_DEADLINE");
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -172,8 +172,8 @@ init_lua:
|
||||||
"local core\n"
|
"local core\n"
|
||||||
"xpcall(function()\n"
|
"xpcall(function()\n"
|
||||||
" HOME = os.getenv('" LITE_OS_HOME "')\n"
|
" HOME = os.getenv('" LITE_OS_HOME "')\n"
|
||||||
" local exedir = EXEFILE:match(\"^(.*)" LITE_PATHSEP_PATTERN LITE_NONPATHSEP_PATTERN "$\")\n"
|
" local exedir = EXEFILE:match('^(.*)" LITE_PATHSEP_PATTERN LITE_NONPATHSEP_PATTERN "$')\n"
|
||||||
" local prefix = exedir:match(\"^(.*)" LITE_PATHSEP_PATTERN "bin$\")\n"
|
" local prefix = exedir:match('^(.*)" LITE_PATHSEP_PATTERN "bin$')\n"
|
||||||
" dofile((MACOS_RESOURCES or (prefix and prefix .. '/share/lite-xl' or exedir .. '/data')) .. '/core/start.lua')\n"
|
" dofile((MACOS_RESOURCES or (prefix and prefix .. '/share/lite-xl' or exedir .. '/data')) .. '/core/start.lua')\n"
|
||||||
" core = require('core')\n"
|
" core = require('core')\n"
|
||||||
" core.init()\n"
|
" core.init()\n"
|
||||||
|
|
Loading…
Reference in New Issue