delete a couple more hacky function prototypes

This commit is contained in:
Kartik K. Agaram 2021-12-25 16:21:40 -08:00
parent e4c0b0a3e7
commit 12cb565077
3 changed files with 3 additions and 4 deletions

View File

@ -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);

View File

@ -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 */

View File

@ -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);