Lines Matching refs:ptr
310 const uint8_t *end, *ptr;
324 ptr = x->buf;
326 while (end - ptr > 9 && memcmp(ptr, "/* XPM */", 9))
327 ptr++;
329 if (end - ptr <= 9) {
334 ptr += mod_strcspn(ptr, "\"");
335 if (sscanf(ptr, "\"%u %u %u %u\",",
363 ptr += mod_strcspn(ptr, ",") + 1;
364 if (end - ptr < 1)
378 ptr += mod_strcspn(ptr, "\"") + 1;
379 if (end - ptr < cpp)
381 index = ptr;
382 ptr += cpp;
384 ptr = strstr(ptr, "c ");
385 if (ptr) {
386 ptr += 2;
391 len = strcspn(ptr, "\" ");
396 x->pixels[ret] = color_string_to_rgba(ptr, len);
397 ptr += mod_strcspn(ptr, ",") + 1;
398 if (end - ptr < 1)
404 if (end - ptr < 1)
406 ptr += mod_strcspn(ptr, "\"") + 1;
407 if (end - ptr < 1)
411 if (end - ptr < cpp)
414 if ((ret = ascii2index(ptr, cpp)) < 0)
418 ptr += cpp;
420 ptr += mod_strcspn(ptr, ",") + 1;