diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index c862b3dd6..06cabc0e0 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -239,7 +239,31 @@ static char *keep_case_of_cider_param(char *buffer) } return s; } + +static char* make_lower_case_copy(char* inbuf) +{ + char* s = NULL; + char* rets = NULL; + size_t lenb = 0; + + if (!inbuf) { + return NULL; + } + lenb = strlen(inbuf); + if (lenb < 1) { + return NULL; + } + rets = dup_string(inbuf, lenb); + if (!rets) { + return NULL; + } + for (s = rets; *s; s++) { + *s = tolower_c(*s); + } + return rets; +} #endif + #ifdef CIDER static int is_comment_or_blank(char *buffer) { @@ -276,29 +300,6 @@ static int turn_off_case_retention(char *buffer) } } -static char *make_lower_case_copy(char *inbuf) -{ - char *s = NULL; - char *rets = NULL; - size_t lenb = 0; - - if (!inbuf) { - return NULL; - } - lenb = strlen(inbuf); - if (lenb < 1) { - return NULL; - } - rets = dup_string(inbuf, lenb); - if (!rets) { - return NULL; - } - for (s = rets; *s; s++) { - *s = tolower_c(*s); - } - return rets; -} - static int ignore_line(char *buf) { /* Can the line in buf be ignored for ic.file checking?