1 parent af19cbd commit a075741Copy full SHA for a075741
1 file changed
unix/main.c
@@ -81,7 +81,7 @@ static void execute_from_lexer(mp_lexer_t *lex, mp_parse_input_kind_t input_kind
81
}
82
83
84
-static char *str_join(const char *s1, int sep_char, const char *s2) {
+static char *strjoin(const char *s1, int sep_char, const char *s2) {
85
int l1 = strlen(s1);
86
int l2 = strlen(s2);
87
char *s = m_new(char, l1 + l2 + 2);
@@ -133,7 +133,7 @@ static void do_repl(void) {
133
if (line2 == NULL || strlen(line2) == 0) {
134
break;
135
136
- char *line3 = str_join(line, '\n', line2);
+ char *line3 = strjoin(line, '\n', line2);
137
free(line);
138
free(line2);
139
line = line3;
0 commit comments