Lines Matching refs:p
46 static char *eat_ws(CONF *conf, char *p);
48 static char *eat_alpha_numeric(CONF *conf, char *p);
49 static void clear_comments(CONF *conf, char *p);
51 static char *scan_quote(CONF *conf, char *p);
52 static char *scan_dquote(CONF *conf, char *p);
53 #define scan_esc(conf,p) (((IS_EOF((conf),(p)[1]))?((p)+1):((p)+2))) argument
214 char *s, *p, *end; in def_load_bio() local
260 p = &(buff->data[bufnum]); in def_load_bio()
261 *p = '\0'; in def_load_bio()
263 if (in != NULL && BIO_gets(in, p, CONFBUFSIZE - 1) < 0) in def_load_bio()
265 p[CONFBUFSIZE - 1] = '\0'; in def_load_bio()
266 ii = i = strlen(p); in def_load_bio()
272 if (i >= 3 && memcmp(p, utf8_bom, 3) == 0) { in def_load_bio()
273 memmove(p, p + 3, i - 3); in def_load_bio()
274 p[i - 3] = 0; in def_load_bio()
311 if ((p[i - 1] != '\r') && (p[i - 1] != '\n')) in def_load_bio()
322 p[i] = '\0'; in def_load_bio()
338 p = &(buff->data[bufnum - 1]); in def_load_bio()
339 if (IS_ESC(conf, p[0]) && ((bufnum <= 1) || !IS_ESC(conf, p[-1]))) { in def_load_bio()
361 p = eat_ws(conf, end); in def_load_bio()
362 if (*p != ']') { in def_load_bio()
363 if (*p != '\0' && ss != p) { in def_load_bio()
364 ss = p; in def_load_bio()
392 p = eat_ws(conf, end); in def_load_bio()
394 && (p != pname || *p == '=')) { in def_load_bio()
397 if (*p == '=') { in def_load_bio()
398 p++; in def_load_bio()
399 p = eat_ws(conf, p); in def_load_bio()
401 trim_ws(conf, p); in def_load_bio()
404 pval = strchr(p, ':'); in def_load_bio()
405 if (pval == NULL || pval == p || pval[1] == '\0') { in def_load_bio()
411 trim_ws(conf, p); in def_load_bio()
421 if (strcmp(p, "dollarid") == 0) { in def_load_bio()
424 } else if (strcmp(p, "abspath") == 0) { in def_load_bio()
427 } else if (strcmp(p, "includedir") == 0) { in def_load_bio()
438 && (p != pname || *p == '=')) { in def_load_bio()
461 if (*p == '=') { in def_load_bio()
462 p++; in def_load_bio()
463 p = eat_ws(conf, p); in def_load_bio()
465 trim_ws(conf, p); in def_load_bio()
466 if (!str_copy(conf, psection, &include, p)) in def_load_bio()
524 } else if (*p != '=') { in def_load_bio()
526 "HERE-->%s", p); in def_load_bio()
530 p++; in def_load_bio()
531 start = eat_ws(conf, p); in def_load_bio()
605 static void clear_comments(CONF *conf, char *p) in clear_comments() argument
608 if (IS_FCOMMENT(conf, *p)) { in clear_comments()
609 *p = '\0'; in clear_comments()
612 if (!IS_WS(conf, *p)) { in clear_comments()
615 p++; in clear_comments()
619 if (IS_COMMENT(conf, *p)) { in clear_comments()
620 *p = '\0'; in clear_comments()
623 if (IS_DQUOTE(conf, *p)) { in clear_comments()
624 p = scan_dquote(conf, p); in clear_comments()
627 if (IS_QUOTE(conf, *p)) { in clear_comments()
628 p = scan_quote(conf, p); in clear_comments()
631 if (IS_ESC(conf, *p)) { in clear_comments()
632 p = scan_esc(conf, p); in clear_comments()
635 if (IS_EOF(conf, *p)) in clear_comments()
638 p++; in clear_comments()
645 char *s, *e, *rp, *p, *rrp, *np, *cp, v; in str_copy() local
754 p = _CONF_get_string(conf, cp, np); in str_copy()
758 if (p == NULL) { in str_copy()
762 newsize = strlen(p) + buf->length - (e - from); in str_copy()
771 while (*p) in str_copy()
772 buf->data[to++] = *(p++); in str_copy()
917 static char *eat_ws(CONF *conf, char *p) in eat_ws() argument
919 while (IS_WS(conf, *p) && (!IS_EOF(conf, *p))) in eat_ws()
920 p++; in eat_ws()
921 return p; in eat_ws()
926 char *p = start; in trim_ws() local
928 while (!IS_EOF(conf, *p)) in trim_ws()
929 p++; in trim_ws()
930 p--; in trim_ws()
931 while ((p >= start) && IS_WS(conf, *p)) in trim_ws()
932 p--; in trim_ws()
933 p++; in trim_ws()
934 *p = '\0'; in trim_ws()
937 static char *eat_alpha_numeric(CONF *conf, char *p) in eat_alpha_numeric() argument
940 if (IS_ESC(conf, *p)) { in eat_alpha_numeric()
941 p = scan_esc(conf, p); in eat_alpha_numeric()
944 if (!(IS_ALNUM_PUNCT(conf, *p) in eat_alpha_numeric()
945 || (conf->flag_dollarid && IS_DOLLAR(conf, *p)))) in eat_alpha_numeric()
946 return p; in eat_alpha_numeric()
947 p++; in eat_alpha_numeric()
951 static char *scan_quote(CONF *conf, char *p) in scan_quote() argument
953 int q = *p; in scan_quote()
955 p++; in scan_quote()
956 while (!(IS_EOF(conf, *p)) && (*p != q)) { in scan_quote()
957 if (IS_ESC(conf, *p)) { in scan_quote()
958 p++; in scan_quote()
959 if (IS_EOF(conf, *p)) in scan_quote()
960 return p; in scan_quote()
962 p++; in scan_quote()
964 if (*p == q) in scan_quote()
965 p++; in scan_quote()
966 return p; in scan_quote()
969 static char *scan_dquote(CONF *conf, char *p) in scan_dquote() argument
971 int q = *p; in scan_dquote()
973 p++; in scan_dquote()
974 while (!(IS_EOF(conf, *p))) { in scan_dquote()
975 if (*p == q) { in scan_dquote()
976 if (*(p + 1) == q) { in scan_dquote()
977 p++; in scan_dquote()
982 p++; in scan_dquote()
984 if (*p == q) in scan_dquote()
985 p++; in scan_dquote()
986 return p; in scan_dquote()