removed unused extern function declaration of "error_report" - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
diff options
context:
space:
mode:
authorfrancesco-ST <francesco.abbate@st.com>2010年12月28日 15:34:15 +0100
committerfrancesco-ST <francesco.abbate@st.com>2010年12月28日 15:34:15 +0100
commit978986bb98f1ae622be3f430f4e729fbb598afb8 (patch)
tree34ddc4564341ffa79d025dfdc0673afc34a85db9
parent5aee3720742fe153fe5937e0fd7981c1c95cd6cc (diff)
downloadgsl-shell-978986bb98f1ae622be3f430f4e729fbb598afb8.tar.gz
removed unused extern function declaration of "error_report"
Diffstat
-rw-r--r--gsl-shell.c 2
-rw-r--r--gsl-shell.h 3
2 files changed, 1 insertions, 4 deletions
diff --git a/gsl-shell.c b/gsl-shell.c
index 371f17bc..84fb16d8 100644
--- a/gsl-shell.c
+++ b/gsl-shell.c
@@ -166,7 +166,7 @@ static void l_message (const char *pname, const char *msg) {
}
-int error_report (lua_State *L, int status) {
+static int error_report (lua_State *L, int status) {
if (status && !lua_isnil(L, -1)) {
const char *msg = lua_tostring(L, -1);
if (msg == NULL) msg = "(error object is not a string)";
diff --git a/gsl-shell.h b/gsl-shell.h
index 3b575e98..6ab23596 100644
--- a/gsl-shell.h
+++ b/gsl-shell.h
@@ -6,9 +6,6 @@
__BEGIN_DECLS
-#include "lua.h"
-
-extern int error_report (lua_State *L, int status);
extern void gsl_shell_unref_plot (int id);
extern pthread_mutex_t gsl_shell_mutex[1];
generated by cgit v1.2.3 (git 2.46.0) at 2025年10月02日 08:36:00 +0000

AltStyle によって変換されたページ (->オリジナル) /