mirror of
https://github.com/rkd77/elinks.git
synced 2025-05-18 00:48:57 -04:00
[scripting] cosnt in report_scripting_error
This commit is contained in:
parent
32dd119820
commit
21f0b54eb3
@ -38,7 +38,7 @@ PyObject *python_hooks = NULL;
|
|||||||
void
|
void
|
||||||
alert_python_error(void)
|
alert_python_error(void)
|
||||||
{
|
{
|
||||||
char *msg = "(no traceback available)";
|
const char *msg = "(no traceback available)";
|
||||||
PyObject *err_type = NULL, *err_value = NULL, *err_traceback = NULL;
|
PyObject *err_type = NULL, *err_value = NULL, *err_traceback = NULL;
|
||||||
PyObject *tb_module = NULL;
|
PyObject *tb_module = NULL;
|
||||||
PyObject *msg_list = NULL;
|
PyObject *msg_list = NULL;
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
#if defined(CONFIG_SCRIPTING_RUBY) || defined(CONFIG_SCRIPTING_SPIDERMONKEY) || defined(CONFIG_SCRIPTING_PYTHON)
|
#if defined(CONFIG_SCRIPTING_RUBY) || defined(CONFIG_SCRIPTING_SPIDERMONKEY) || defined(CONFIG_SCRIPTING_PYTHON)
|
||||||
void
|
void
|
||||||
report_scripting_error(struct module *module, struct session *ses,
|
report_scripting_error(struct module *module, struct session *ses,
|
||||||
char *msg)
|
const char *msg)
|
||||||
{
|
{
|
||||||
struct terminal *term;
|
struct terminal *term;
|
||||||
struct string string;
|
struct string string;
|
||||||
|
@ -12,7 +12,7 @@ struct session;
|
|||||||
|
|
||||||
void
|
void
|
||||||
report_scripting_error(struct module *module, struct session *ses,
|
report_scripting_error(struct module *module, struct session *ses,
|
||||||
char *msg);
|
const char *msg);
|
||||||
|
|
||||||
extern struct module scripting_module;
|
extern struct module scripting_module;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user