about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-12-25 16:21:40 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-12-25 16:21:40 -0800
commit12cb5650772abb9a30f6e0559bcde5c2e2cf800b (patch)
treece567733fefd6cfd088dcbf217231fff68844d62
parente4c0b0a3e7d3efb89c9b8bd4df32c80eb8a5a759 (diff)
downloadteliva-12cb5650772abb9a30f6e0559bcde5c2e2cf800b.tar.gz
delete a couple more hacky function prototypes
-rw-r--r--src/lcurses/window.c4
-rw-r--r--src/teliva.c1
-rw-r--r--src/teliva.h2
3 files changed, 3 insertions, 4 deletions
diff --git a/src/lcurses/window.c b/src/lcurses/window.c
index c7521b9..ded837f 100644
--- a/src/lcurses/window.c
+++ b/src/lcurses/window.c
@@ -309,7 +309,6 @@ Refresh the window terminal display from the virtual screen.
 @see curses.doupdate
 @see noutrefresh
 */
-extern void render_trusted_teliva_data (lua_State *L);
 static int
 Wrefresh(lua_State *L)
 {
@@ -1302,7 +1301,6 @@ Read a character from the window input.
 @see curses.echo
 @see keypad
 */
-extern void developer_mode (lua_State *L, const char *status_message);
 static int
 Wgetch(lua_State *L)
 {
@@ -1322,7 +1320,7 @@ Wgetch(lua_State *L)
 		exit(0);
 	}
 	if (c == CTRL_E)
-		developer_mode(L, /*status message*/ "");
+		developer_mode(L);
 	/* handle other standard menu hotkeys here */
 
 	return pushintresult(c);
diff --git a/src/teliva.c b/src/teliva.c
index c7ea660..00c3ca8 100644
--- a/src/teliva.c
+++ b/src/teliva.c
@@ -125,7 +125,6 @@ void render_previous_error(void) {
 }
 
 extern char* strdup(const char* s);
-extern void developer_mode(lua_State* L);
 int report_in_developer_mode(lua_State* L, int status) {
   if (status && !lua_isnil(L, -1)) {
     Previous_error = strdup(lua_tostring(L, -1));  /* memory leak */
diff --git a/src/teliva.h b/src/teliva.h
index d018223..7c3684f 100644
--- a/src/teliva.h
+++ b/src/teliva.h
@@ -142,6 +142,8 @@ enum color_pair {
 extern char** Argv;
 extern int handle_image(lua_State* L, char** argv, int n);
 
+extern void developer_mode(lua_State* L);
+
 extern int load_editor_buffer_to_current_definition_in_image(lua_State* L);
 extern void save_to_current_definition_and_editor_buffer(lua_State* L, const char* definition);
 extern void save_editor_state(int rowoff, int coloff, int cy, int cx);