uns l = strlen(tmp);
bb_grow(©_buf, start_copy + l + 1);
strcpy(copy_buf.ptr + start_copy, tmp);
uns l = strlen(tmp);
bb_grow(©_buf, start_copy + l + 1);
strcpy(copy_buf.ptr + start_copy, tmp);
while (*line && !Cblank(*line)
&& *line != '{' && *line != '}' && *line != ';'
&& (*line != '=' || !is_command_name))
while (*line && !Cblank(*line)
&& *line != '{' && *line != '}' && *line != ';'
&& (*line != '=' || !is_command_name))
- log(L_WARN, "The line %s:%d following a backslash is empty", name_parse_fb ? : (byte*) "", line_num);
+ msg(L_WARN, "The line %s:%d following a backslash is empty", name_parse_fb ? : "", line_num);
} else {
split_grow(&word_buf, words+1);
uns start = copied;
word_buf.ptr[words++] = copied;
} else {
split_grow(&word_buf, words+1);
uns start = copied;
word_buf.ptr[words++] = copied;
if (!(start_word = get_token(1, &msg)))
return msg;
if (*start_word == '{') // only one opening brace
if (!(start_word = get_token(1, &msg)))
return msg;
if (*start_word == '{') // only one opening brace
for (uns i=1; i<words; i++)
pars[i-1] = copy_buf.ptr + word_buf.ptr[i];
if (!strcasecmp(name, "include"))
{
if (words != 2)
for (uns i=1; i<words; i++)
pars[i-1] = copy_buf.ptr + word_buf.ptr[i];
if (!strcasecmp(name, "include"))
{
if (words != 2)
default: op = OP_SET; break;
}
if (strcasecmp(c, cf_op_names[op])) {
default: op = OP_SET; break;
}
if (strcasecmp(c, cf_op_names[op])) {
- msg = cf_interpret_line(name, op, words-1, pars);
- if (msg)
+ err = cf_interpret_line(name, op, words-1, pars);
+ if (err)
- log(L_ERROR, "File %s, line %d: %s", name_fb, line_num, msg);
+ msg(L_ERROR, "File %s, line %d: %s", name_fb, line_num, err);
- log(L_ERROR, "Manual setting of configuration, line %d: %s", line_num, msg);
+ msg(L_ERROR, "Manual setting of configuration, line %d: %s", line_num, err);
static uns postpone_commit; // only for cf_getopt()
static uns everything_committed; // after the 1st load, this flag is set on
static uns postpone_commit; // only for cf_getopt()
static uns everything_committed; // after the 1st load, this flag is set on
{
cf_init_stack();
struct fastbuf fb;
fbbuf_init_read(&fb, (byte *)string, strlen(string), 0);
{
cf_init_stack();
struct fastbuf fb;
fbbuf_init_read(&fb, (byte *)string, strlen(string), 0);