allow compiling with CIDER deselected

This commit is contained in:
Holger Vogt 2024-04-08 23:05:26 +02:00
parent 4ed1ebf874
commit a48b1f8f46
1 changed files with 24 additions and 23 deletions

View File

@ -239,7 +239,31 @@ static char *keep_case_of_cider_param(char *buffer)
} }
return s; 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 #endif
#ifdef CIDER #ifdef CIDER
static int is_comment_or_blank(char *buffer) 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) static int ignore_line(char *buf)
{ {
/* Can the line in buf be ignored for ic.file checking? /* Can the line in buf be ignored for ic.file checking?