-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Preventing terminal windows in Windows #20436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -175,7 +175,7 @@ LUA_API int lua_absindex (lua_State *L, int idx) { | |
|
|
||
| LUA_API int lua_gettop (lua_State *L) { | ||
| return cast_int(L->top.p - (L->ci->func.p + 1)); | ||
| } | ||
| }° | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You probably want to get rid of whatever that character is after the curly brace. |
||
|
|
||
|
|
||
| LUA_API void lua_settop (lua_State *L, int idx) { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,6 +45,7 @@ | |
| #include "lua/types.h" | ||
| #include "lua/util.h" | ||
| #include "lua/view.h" | ||
| #include "lua/windows.h" | ||
| #include "lua/widget/widget.h" | ||
|
|
||
| static int _lua_fully_initialized = false; | ||
|
|
@@ -136,14 +137,23 @@ static int run_early_script(lua_State* L) | |
| } | ||
|
|
||
|
|
||
| #ifndef WIN32 | ||
| static lua_CFunction init_funcs[] | ||
| = { dt_lua_init_glist, dt_lua_init_image, dt_lua_init_styles, dt_lua_init_print, | ||
| dt_lua_init_configuration, dt_lua_init_preferences, dt_lua_init_database, dt_lua_init_gui, | ||
| dt_lua_init_luastorages, dt_lua_init_tags, dt_lua_init_film, dt_lua_init_call, | ||
| dt_lua_init_view, dt_lua_init_events, dt_lua_init_init, dt_lua_init_widget, | ||
| dt_lua_init_lualib, dt_lua_init_gettext, dt_lua_init_guides, dt_lua_init_cairo, | ||
| dt_lua_init_password, dt_lua_init_util, NULL }; | ||
|
|
||
| dt_lua_init_password, NULL }; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you need to keep dt_lua_init_util |
||
| #else | ||
| static lua_CFunction init_funcs[] | ||
| = { dt_lua_init_glist, dt_lua_init_image, dt_lua_init_styles, dt_lua_init_print, | ||
| dt_lua_init_configuration, dt_lua_init_preferences, dt_lua_init_database, dt_lua_init_gui, | ||
| dt_lua_init_luastorages, dt_lua_init_tags, dt_lua_init_film, dt_lua_init_call, | ||
| dt_lua_init_view, dt_lua_init_events, dt_lua_init_init, dt_lua_init_widget, | ||
| dt_lua_init_lualib, dt_lua_init_gettext, dt_lua_init_guides, dt_lua_init_cairo, | ||
| dt_lua_init_password, dt_lua_init_windows, NULL }; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. see above |
||
| #endif | ||
|
|
||
| void dt_lua_init(lua_State *L, const char *lua_command) | ||
| { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you have to move this out of the GLOB and into the
if(USE_LUA)section.. I tried to compile on Liinux and it tried to include lua/windows.cAfter the GLOB command add