• Home
  • Raw
  • Download

Lines Matching refs:p

37 static int __init xbc_parse_error(const char *msg, const char *p)  in xbc_parse_error()  argument
40 xbc_err_pos = (int)(p - xbc_data); in xbc_parse_error()
128 const char *p = xbc_node_get_data(node); in xbc_node_match_prefix() local
129 int len = strlen(p); in xbc_node_match_prefix()
131 if (strncmp(*prefix, p, len)) in xbc_node_match_prefix()
134 p = *prefix + len; in xbc_node_match_prefix()
135 if (*p == '.') in xbc_node_match_prefix()
136 p++; in xbc_node_match_prefix()
137 else if (*p != '\0') in xbc_node_match_prefix()
139 *prefix = p; in xbc_node_match_prefix()
446 static char *skip_comment(char *p) in skip_comment() argument
450 ret = strchr(p, '\n'); in skip_comment()
452 ret = p + strlen(p); in skip_comment()
459 static char *skip_spaces_until_newline(char *p) in skip_spaces_until_newline() argument
461 while (isspace(*p) && *p != '\n') in skip_spaces_until_newline()
462 p++; in skip_spaces_until_newline()
463 return p; in skip_spaces_until_newline()
466 static int __init __xbc_open_brace(char *p) in __xbc_open_brace() argument
471 return xbc_parse_error("Exceed max depth of braces", p); in __xbc_open_brace()
476 static int __init __xbc_close_brace(char *p) in __xbc_close_brace() argument
481 return xbc_parse_error("Unexpected closing brace", p); in __xbc_close_brace()
497 char *p, *v = *__v; in __xbc_parse_value() local
509 p = v - 1; in __xbc_parse_value()
510 while ((c = *++p)) { in __xbc_parse_value()
512 return xbc_parse_error("Non printable value", p); in __xbc_parse_value()
517 *p++ = '\0'; in __xbc_parse_value()
518 p = skip_spaces_until_newline(p); in __xbc_parse_value()
519 c = *p; in __xbc_parse_value()
521 return xbc_parse_error("No value delimiter", p); in __xbc_parse_value()
522 if (*p) in __xbc_parse_value()
523 p++; in __xbc_parse_value()
527 *p++ = '\0'; in __xbc_parse_value()
533 return xbc_parse_error("No closing quotes", p); in __xbc_parse_value()
535 p = skip_comment(p); in __xbc_parse_value()
538 *__n = p; in __xbc_parse_value()
612 char *p; in __xbc_parse_keys() local
616 while ((p = strchr(k, '.'))) { in __xbc_parse_keys()
617 *p++ = '\0'; in __xbc_parse_keys()
621 k = p; in __xbc_parse_keys()
816 char *p, *q; in xbc_init() local
848 p = buf; in xbc_init()
850 q = strpbrk(p, "{}=+;:\n#"); in xbc_init()
852 p = skip_spaces(p); in xbc_init()
853 if (*p != '\0') in xbc_init()
854 ret = xbc_parse_error("No delimiter", p); in xbc_init()
872 ret = xbc_parse_kv(&p, q, c); in xbc_init()
875 ret = xbc_open_brace(&p, q); in xbc_init()
882 ret = xbc_parse_key(&p, q); in xbc_init()
885 ret = xbc_close_brace(&p, q); in xbc_init()