diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-02-11 12:19:06 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-02-11 14:39:10 +0200 |
commit | a075741c90f392c13a47c5948cccc7371d12dd14 (patch) | |
tree | 2653fd1352b529b1ddd3b923345fb957e481f5a3 | |
parent | af19cbd20133de9c653253d75860a3050ea08b11 (diff) | |
download | micropython-a075741c90f392c13a47c5948cccc7371d12dd14.tar.gz micropython-a075741c90f392c13a47c5948cccc7371d12dd14.zip |
Rename str_join -> strjoin to make it not clash with objstr's one.
-rw-r--r-- | unix/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/main.c b/unix/main.c index 5fdfbc36aa..9bdcc53a7c 100644 --- a/unix/main.c +++ b/unix/main.c @@ -81,7 +81,7 @@ static void execute_from_lexer(mp_lexer_t *lex, mp_parse_input_kind_t input_kind } } -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) { int l1 = strlen(s1); int l2 = strlen(s2); char *s = m_new(char, l1 + l2 + 2); @@ -133,7 +133,7 @@ static void do_repl(void) { if (line2 == NULL || strlen(line2) == 0) { break; } - char *line3 = str_join(line, '\n', line2); + char *line3 = strjoin(line, '\n', line2); free(line); free(line2); line = line3; |