aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-04-02 13:49:18 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-04-02 18:55:47 -0400
commited9974ba3f6353f7e2532bafa55a32ba01f41b4c (patch)
tree2b78b273545643c15a22201bd9771b7be1b62b90 /include
parent7ee5e046b510af8473a2793173c0cbb3499da869 (diff)
downloadstasis-ed9974ba3f6353f7e2532bafa55a32ba01f41b4c.tar.gz
Add REPLACE_TRUNCATE_AFTER_MATCH mode to replace_text
Diffstat (limited to 'include')
-rw-r--r--include/relocation.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/relocation.h b/include/relocation.h
index b734433..924f00f 100644
--- a/include/relocation.h
+++ b/include/relocation.h
@@ -16,7 +16,9 @@
#endif
#include <unistd.h>
-int replace_text(char *original, const char *target, const char *replacement);
-int file_replace_text(const char* filename, const char* target, const char* replacement);
+#define REPLACE_TRUNCATE_AFTER_MATCH 1
+
+int replace_text(char *original, const char *target, const char *replacement, unsigned flags);
+int file_replace_text(const char* filename, const char* target, const char* replacement, unsigned flags);
#endif //OMC_RELOCATION_H