Lines Matching refs:ptr

2319 check_format_type(const char *ptr, int type, const char **estr)  in check_format_type()  argument
2323 if (*ptr == '\0') { in check_format_type()
2358 if (*ptr == '-') in check_format_type()
2359 ptr++; in check_format_type()
2360 if (*ptr == '.') in check_format_type()
2361 ptr++; in check_format_type()
2362 if (*ptr == '#') in check_format_type()
2363 ptr++; in check_format_type()
2365 for (len = cnt = 0; isdigit(CAST(unsigned char, *ptr)); ptr++, cnt++) \ in check_format_type()
2366 len = len * 10 + (*ptr - '0'); \ in check_format_type()
2372 if (*ptr == '.') in check_format_type()
2373 ptr++; in check_format_type()
2376 if (*ptr++ != 'l') in check_format_type()
2378 if (*ptr++ != 'l') in check_format_type()
2382 switch (*ptr++) { in check_format_type()
2386 switch (*ptr++) { in check_format_type()
2407 switch (*ptr++) { in check_format_type()
2411 switch (*ptr++) { in check_format_type()
2458 if (*ptr == '-') in check_format_type()
2459 ptr++; in check_format_type()
2460 if (*ptr == '.') in check_format_type()
2461 ptr++; in check_format_type()
2463 if (*ptr == '.') in check_format_type()
2464 ptr++; in check_format_type()
2466 switch (*ptr++) { in check_format_type()
2481 if (*ptr == '-') in check_format_type()
2482 ptr++; in check_format_type()
2483 while (isdigit(CAST(unsigned char, *ptr))) in check_format_type()
2484 ptr++; in check_format_type()
2485 if (*ptr == '.') { in check_format_type()
2486 ptr++; in check_format_type()
2487 while (isdigit(CAST(unsigned char , *ptr))) in check_format_type()
2488 ptr++; in check_format_type()
2491 switch (*ptr++) { in check_format_type()
2516 char *ptr; in check_format() local
2519 for (ptr = m->desc; *ptr; ptr++) in check_format()
2520 if (*ptr == '%') in check_format()
2522 if (*ptr == '\0') { in check_format()
2540 ptr++; in check_format()
2541 if (check_format_type(ptr, m->type, &estr) == -1) { in check_format()
2552 for (; *ptr; ptr++) { in check_format()
2553 if (*ptr == '%') { in check_format()
2982 uint32_t *ptr; in apprentice_map() local
3048 ptr = (uint32_t *)(void *)map->p; in apprentice_map()
3049 if (*ptr != MAGICNO) { in apprentice_map()
3050 if (swap4(*ptr) != MAGICNO) { in apprentice_map()
3058 version = swap4(ptr[1]); in apprentice_map()
3060 version = ptr[1]; in apprentice_map()
3090 map->nmagic[i] = swap4(ptr[i + 2]); in apprentice_map()
3092 map->nmagic[i] = ptr[i + 2]; in apprentice_map()
3126 uint32_t *ptr;
3131 ptr = CAST(uint32_t *, map->p);
3132 if (*ptr != MAGICNO) {
3133 if (swap4(*ptr) != MAGICNO) {
3141 version = swap4(ptr[1]);
3143 version = ptr[1];
3161 map->nmagic[i] = swap4(ptr[i + 2]);
3163 map->nmagic[i] = ptr[i + 2];