about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tlv.c2
-rw-r--r--src/tlv.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/tlv.c b/src/tlv.c
index 815f713..8ef1512 100644
--- a/src/tlv.c
+++ b/src/tlv.c
@@ -114,7 +114,7 @@ void load_tlv(lua_State* L, char* filename) {
   lua_setglobal(L, "teliva_program");
 }
 
-static void emit_multiline_string(FILE* out, const char* value) {
+void emit_multiline_string(FILE* out, const char* value) {
   fprintf(out, "    >");
   for (const char* curr = value; *curr != '\0'; ++curr) {
     if (*curr == '\n' && *(curr+1) != '\0')
diff --git a/src/tlv.h b/src/tlv.h
index 0a3e97b..3ff60fc 100644
--- a/src/tlv.h
+++ b/src/tlv.h
@@ -6,4 +6,6 @@
 extern void teliva_load_definition (lua_State* L, FILE* in);
 int is_special_history_key(const char* key);
 
+extern void emit_multiline_string(FILE* out, const char* value);
+
 #endif