diff options
author | 2008-09-21 22:16:18 -0400 | |
---|---|---|
committer | 2008-09-21 22:16:18 -0400 | |
commit | f093965dfc07935323b8a9244a591d84788b497c (patch) | |
tree | 37e9be66f26d79f95f286566fc3ceb7b6b398620 /src/textadept.h | |
parent | fdb720e8d0b5adf4fd9269ee9e4381dc0aebdb39 (diff) | |
download | textadept-f093965dfc07935323b8a9244a591d84788b497c.tar.gz textadept-f093965dfc07935323b8a9244a591d84788b497c.zip |
Textadept gracefully exits when errors occur in core/init.lua.
Originally the error message was displayed in Textadept, but any attempts to
close the program would fail because core/init.lua wasn't properly loaded.
Errors from 'l_load_script' are displayed in a dialog box now.
Diffstat (limited to 'src/textadept.h')
-rw-r--r-- | src/textadept.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/textadept.h b/src/textadept.h index 504dae05..05258ba5 100644 --- a/src/textadept.h +++ b/src/textadept.h @@ -12,6 +12,11 @@ #include <SciLexer.h> #include <ScintillaWidget.h> +#ifdef WIN32 +#include "Windows.h" +#define strcasecmp _stricmp +#endif + extern "C" { #include <lua.h> #include <lualib.h> @@ -63,9 +68,9 @@ GtkWidget *find_create_ui(); void find_toggle_focus(); // lua_interface.c -void l_init(int argc, char **argv, bool reinit); +bool l_init(int argc, char **argv, bool reinit); void l_close(); -void l_load_script(const char *script_file); +bool l_load_script(const char *script_file); void l_add_scintilla_window(GtkWidget *editor); void l_remove_scintilla_window(GtkWidget *editor); void l_goto_scintilla_window(GtkWidget *editor, int n, bool absolute); |