From 455870d1147e1f3e2249b9462ccd7ddd945dcd10 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 20 Mar 2022 18:00:42 -0700 Subject: reorg --- src/teliva.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/teliva.h b/src/teliva.h index 7455cfc..8a12fe7 100644 --- a/src/teliva.h +++ b/src/teliva.h @@ -155,8 +155,6 @@ extern char* Previous_message; extern int load_image(lua_State* L, char** argv, int n); extern void developer_mode(lua_State* L); extern void permissions_mode(lua_State* L); -extern int file_operation_permitted(const char* filename, const char* mode); -extern int net_operations_permitted; extern void load_editor_buffer_to_current_definition_in_image(lua_State* L); extern int load_editor_buffer_to_current_definition_in_image_and_reload(lua_State* L); @@ -187,6 +185,11 @@ extern int report_in_developer_mode(lua_State* L, int status); extern void render_previous_error(void); +/* Permissions checking */ + +extern int file_operation_permitted(const char* filename, const char* mode); +extern int net_operations_permitted; + /* Misc */ extern int starts_with(const char* s, const char* prefix); extern int contains(const char* s, const char* sub); -- cgit 1.4.1-2-gfad0