Lines Matching refs:ptr

76   fprintf(stderr, "get var %s\n", key->ptr);  in configparser_get_variable()
80 fprintf(stderr, "get var on block: %s\n", dc->key.ptr); in configparser_get_variable()
135 fprintf(stderr, "Duplicate array-key '%s'\n", du->key.ptr); in configparser_merge_data()
212 if (len && b->ptr[len-1] == '$') { in configparser_simplify_regex()
214 if (b->ptr[0] == '\\' && b->ptr[1] == '.') in configparser_simplify_regex()
216 else if (b->ptr[0] == '^') { in configparser_simplify_regex()
222 else if (b->ptr[0] == '^') { in configparser_simplify_regex()
230 if (strcspn(b->ptr+off, regex_chars) != len - off) in configparser_simplify_regex()
233 memmove(b->ptr, b->ptr+1, len-1); in configparser_simplify_regex()
290 dc->comp_key = dc->key.ptr + comp_offset; in configparser_parse_condition()
310 fprintf(stderr, "invalid IP addr: %s\n", rvalue->ptr); in configparser_parse_condition()
316 if (rvalue->ptr[0] != ':' /*(network.c special-cases ":" and "[]")*/ in configparser_parse_condition()
317 && !(rvalue->ptr[0] == '[' && rvalue->ptr[1] == ']') in configparser_parse_condition()
318 && !(rvalue->ptr[0] == '/' || rvalue->ptr[0] == '\\')) { /*(UDS)*/ in configparser_parse_condition()
320 fprintf(stderr, "invalid IP addr: %s\n", rvalue->ptr); in configparser_parse_condition()
331 fprintf(stderr, "invalid IP addr: %s\n", rvalue->ptr); in configparser_parse_condition()
404 if (strncmp(A->ptr, "env.", sizeof("env.") - 1) == 0) { in key()
407 ctx->current->key.ptr, A->ptr); in key()
415 ctx->current->key.ptr, B->key.ptr); in key()
427 if (strncmp(A->ptr, "env.", sizeof("env.") - 1) == 0) { in key()
430 ctx->current->key.ptr, A->ptr); in key()
449 if (strncmp(A->ptr, "env.", sizeof("env.") - 1) == 0) { in key()
452 ctx->current->key.ptr, A->ptr); in key()
476 if (strchr(B->ptr, '.') == NULL) { in key()
510 if (strncmp(B->ptr, "env.", sizeof("env.") - 1) == 0) { in value()
513 if (NULL != (env = getenv(B->ptr + 4))) { in value()
520 fprintf(stderr, "Undefined env variable: %s\n", B->ptr + 4); in value()
524 fprintf(stderr, "Undefined config variable: %s\n", B->ptr); in value()
544 ((data_integer *)(A))->value = strtol(B->ptr, &endptr, 10); in value()
546 if (endptr != B->ptr) while (isspace(*(unsigned char *)endptr)) endptr++; in value()
548 fprintf(stderr, "error parsing number: '%s'\n", B->ptr); in value()
578 B->key.ptr); in aelements()
676 C->comp_key = C->key.ptr + (B->comp_key - B->key.ptr); in condlines()
683 C->key.ptr[pos] = '='; /* opposite cond */ in condlines()
687 C->key.ptr[pos] = '!'; /* opposite cond */ in condlines()
691 C->key.ptr[pos] = '='; /* opposite cond */ in condlines()
695 C->key.ptr[pos] = '!'; /* opposite cond */ in condlines()
699 C->key.ptr[pos] = '!'; /* opposite cond */ in condlines()
703 C->key.ptr[pos] = '!'; /* opposite cond */ in condlines()
810 if (0 != config_parse_file(ctx->srv, ctx, A->ptr)) { in stringop()
820 if (0 != config_parse_cmd(ctx->srv, ctx, A->ptr)) { in stringop()