This commit is contained in:
parent
2b1609f09b
commit
18a499c5c0
|
@ -114,7 +114,7 @@ void load_tlv(lua_State* L, char* filename) {
|
||||||
lua_setglobal(L, "teliva_program");
|
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, " >");
|
fprintf(out, " >");
|
||||||
for (const char* curr = value; *curr != '\0'; ++curr) {
|
for (const char* curr = value; *curr != '\0'; ++curr) {
|
||||||
if (*curr == '\n' && *(curr+1) != '\0')
|
if (*curr == '\n' && *(curr+1) != '\0')
|
||||||
|
|
|
@ -6,4 +6,6 @@
|
||||||
extern void teliva_load_definition (lua_State* L, FILE* in);
|
extern void teliva_load_definition (lua_State* L, FILE* in);
|
||||||
int is_special_history_key(const char* key);
|
int is_special_history_key(const char* key);
|
||||||
|
|
||||||
|
extern void emit_multiline_string(FILE* out, const char* value);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue