diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/teliva.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/teliva.c b/src/teliva.c index 1b33940..7e9624f 100644 --- a/src/teliva.c +++ b/src/teliva.c @@ -636,7 +636,6 @@ static int starts_with(const char* s, const char* pre) { return strncmp(pre, s, strlen(pre)) == 0; } -extern int load_editor_buffer_to_current_definition_in_image_and_reload(lua_State* L); extern int resumeEdit(lua_State* L); extern int editFrom(lua_State* L, char* filename, int rowoff, int coloff, int cy, int cx); int restore_editor_view(lua_State* L) { @@ -810,7 +809,7 @@ static void update_definition(lua_State* L, const char* name, char* new_contents extern void save_tlv(lua_State* L, char* filename); extern int docall(lua_State* L, int narg, int clear); -extern int load_editor_buffer_to_current_definition_in_image_and_reload(lua_State* L) { +int load_editor_buffer_to_current_definition_in_image_and_reload(lua_State* L) { char new_contents[8192] = {0}; read_editor_buffer(new_contents, 8190); update_definition(L, Current_definition, new_contents); |