about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-01-25 21:23:20 -0800
committerKartik K. Agaram <vc@akkartik.com>2022-01-25 21:23:20 -0800
commit84d76b11fa7422d85615d7df0b218359569eae34 (patch)
tree97b685a6bbce786e8e0a33c38c6c39cd49c944e6
parent283d4dba59a08f8474d4e3556a7241f1767631a5 (diff)
downloadteliva-84d76b11fa7422d85615d7df0b218359569eae34.tar.gz
rename
-rw-r--r--src/kilo.c4
-rw-r--r--src/teliva.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/kilo.c b/src/kilo.c
index d1ab93e..33988f6 100644
--- a/src/kilo.c
+++ b/src/kilo.c
@@ -1278,7 +1278,7 @@ void editNonCode(char* filename) {
 
 #define MIN(x, y) ((x) < (y) ? (x) : (y))
 
-void editNonCode2(char* filename) {
+void editFilePermissions(char* filename) {
     Quit = 0;
     Back_to_big_picture = 0;
     initEditor();
@@ -1358,7 +1358,7 @@ void resumeNonCodeEdit() {
     }
 }
 
-void resumeNonCodeEdit2() {
+void resumeFilePermissionsEdit() {
     Quit = 0;
     Back_to_big_picture = 0;
     E.startcol = LINE_NUMBER_SPACE;
diff --git a/src/teliva.c b/src/teliva.c
index 45df601..8d34754 100644
--- a/src/teliva.c
+++ b/src/teliva.c
@@ -1450,8 +1450,8 @@ static int load_file_operations_predicate(const char* body) {
           || validate_file_operations_predicate();
 }
 
-extern void editNonCode2(char* filename);
-extern void resumeNonCodeEdit2();
+extern void editFilePermissions(char* filename);
+extern void resumeFilePermissionsEdit();
 static void edit_file_operations_predicate_body() {
   static char file_operations_predicate_body_buffer[512];
   /* save to disk */
@@ -1468,7 +1468,7 @@ static void edit_file_operations_predicate_body() {
   fclose(out);
   rename(outfilename, "teliva_file_operations_predicate_body");
   Previous_error = "";
-  editNonCode2("teliva_file_operations_predicate_body");
+  editFilePermissions("teliva_file_operations_predicate_body");
   // error handling
   assert(trustedL);
   int oldtop = lua_gettop(trustedL);
@@ -1483,7 +1483,7 @@ static void edit_file_operations_predicate_body() {
       break;
     Previous_error = lua_tostring(trustedL, -1);
     if (Previous_error == NULL) Previous_error = "(error object is not a string)";
-    resumeNonCodeEdit2();
+    resumeFilePermissionsEdit();
     lua_pop(trustedL, 1);
   }
   file_operations_predicate_body = file_operations_predicate_body_buffer;