• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching refs:p

288 skip_spaces(const char*  p, const char*  end)  in skip_spaces()  argument
290 while (p < end && is_space(*p)) in skip_spaces()
291 p++; in skip_spaces()
293 return p; in skip_spaces()
300 skip_non_spaces(const char* p, const char* end) in skip_non_spaces() argument
302 while (p < end && !is_space(*p)) in skip_non_spaces()
303 p++; in skip_non_spaces()
305 return p; in skip_non_spaces()
312 find_first(const char* p, const char* end, char ch) in find_first() argument
314 while (p < end && *p != ch) in find_first()
315 p++; in find_first()
317 return p; in find_first()
327 compare_name(const char* p, const char* end, const char* name) in compare_name() argument
330 if (name == NULL || name[0] == '\0' || p == end) in compare_name()
338 if (p >= end || is_space(*p)) in compare_name()
341 if (*p != *name) in compare_name()
344 p++; in compare_name()
349 if (p < end && !is_space(*p)) in compare_name()
352 return p; in compare_name()
366 const char* p = *pp; in parse_spaces() local
368 if (p >= end || !is_space(*p)) { in parse_spaces()
372 p = skip_spaces(p, end); in parse_spaces()
373 *pp = p; in parse_spaces()
390 const char* p = *pp; in parse_positive_decimal() local
394 if (p >= end || *p < '0' || *p > '9') { in parse_positive_decimal()
399 while (p < end) { in parse_positive_decimal()
400 int ch = *p; in parse_positive_decimal()
411 p++; in parse_positive_decimal()
413 *pp = p; in parse_positive_decimal()
433 const char* p; in get_package_info() local
446 p = buffer; in get_package_info()
463 while (p < buffer_end) { in get_package_info()
465 const char* end = find_first(p, buffer_end, '\n'); in get_package_info()
471 p = compare_name(p, end, pkgName); in get_package_info()
472 if (p == NULL) in get_package_info()
476 if (parse_spaces(&p, end) < 0) in get_package_info()
480 uid = parse_positive_decimal(&p, end); in get_package_info()
487 if (parse_spaces(&p, end) < 0) in get_package_info()
491 debugFlag = parse_positive_decimal(&p, end); in get_package_info()
504 if (parse_spaces(&p, end) < 0) in get_package_info()
510 q = skip_non_spaces(p, end); in get_package_info()
511 if (q == p) in get_package_info()
519 p = string_copy(info->dataDir, sizeof info->dataDir, p, q - p); in get_package_info()
526 p = q; in get_package_info()
530 if (parse_spaces(&p, end) < 0) in get_package_info()
534 q = skip_non_spaces(p, end); in get_package_info()
535 if (q == p) in get_package_info()
538 string_copy(info->seinfo, sizeof info->seinfo, p, q - p); in get_package_info()
545 p = next; in get_package_info()