Lines Matching refs:ptr

65 #define SLJIT_FREE(ptr, allocator_data) pcre2_jit_free(ptr, allocator_data)  argument
73 static void pcre2_jit_free(void *ptr, void *allocator_data) in pcre2_jit_free() argument
76 allocator->free(ptr, allocator->memory_data); in pcre2_jit_free()
647 #define GETCHARINC_INVALID(c, ptr, end, invalid_action) \ argument
649 if (ptr[0] <= 0x7f) \
650 c = *ptr++; \
651 else if (ptr + 1 < end && ptr[1] >= 0x80 && ptr[1] < 0xc0) \
653 c = ptr[1] - 0x80; \
655 if (ptr[0] >= 0xc2 && ptr[0] <= 0xdf) \
657 c |= (ptr[0] - 0xc0) << 6; \
658 ptr += 2; \
660 else if (ptr + 2 < end && ptr[2] >= 0x80 && ptr[2] < 0xc0) \
662 c = c << 6 | (ptr[2] - 0x80); \
664 if (ptr[0] >= 0xe0 && ptr[0] <= 0xef) \
666 c |= (ptr[0] - 0xe0) << 12; \
667 ptr += 3; \
674 else if (ptr + 3 < end && ptr[3] >= 0x80 && ptr[3] < 0xc0) \
676 c = c << 6 | (ptr[3] - 0x80); \
678 if (ptr[0] >= 0xf0 && ptr[0] <= 0xf4) \
680 c |= (ptr[0] - 0xf0) << 18; \
681 ptr += 4; \
709 #define GETCHARBACK_INVALID(c, ptr, start, invalid_action) \ argument
711 c = ptr[-1]; \
713 ptr--; \
714 else if (ptr - 1 > start && ptr[-1] >= 0x80 && ptr[-1] < 0xc0) \
718 if (ptr[-2] >= 0xc2 && ptr[-2] <= 0xdf) \
720 c |= (ptr[-2] - 0xc0) << 6; \
721 ptr -= 2; \
723 else if (ptr - 2 > start && ptr[-2] >= 0x80 && ptr[-2] < 0xc0) \
725 c = c << 6 | (ptr[-2] - 0x80); \
727 if (ptr[-3] >= 0xe0 && ptr[-3] <= 0xef) \
729 c |= (ptr[-3] - 0xe0) << 12; \
730 ptr -= 3; \
737 else if (ptr - 3 > start && ptr[-3] >= 0x80 && ptr[-3] < 0xc0) \
739 c = c << 6 | (ptr[-3] - 0x80); \
741 if (ptr[-4] >= 0xf0 && ptr[-4] <= 0xf4) \
743 c |= (ptr[-4] - 0xf0) << 18; \
744 ptr -= 4; \
774 #define GETCHARINC_INVALID(c, ptr, end, invalid_action) \ argument
776 if (ptr[0] < 0xd800 || ptr[0] >= 0xe000) \
777 c = *ptr++; \
778 else if (ptr[0] < 0xdc00 && ptr + 1 < end && ptr[1] >= 0xdc00 && ptr[1] < 0xe000) \
780 c = (((ptr[0] - 0xd800) << 10) | (ptr[1] - 0xdc00)) + 0x10000; \
781 ptr += 2; \
789 #define GETCHARBACK_INVALID(c, ptr, start, invalid_action) \ argument
791 c = ptr[-1]; \
793 ptr--; \
794 else if (c >= 0xdc00 && ptr - 1 > start && ptr[-2] >= 0xd800 && ptr[-2] < 0xdc00) \
796 c = (((ptr[-2] - 0xd800) << 10) | (c - 0xdc00)) + 0x10000; \
797 ptr -= 2; \
808 #define GETCHARINC_INVALID(c, ptr, end, invalid_action) \ argument
810 if (ptr[0] < 0xd800 || (ptr[0] >= 0xe000 && ptr[0] < 0x110000)) \
811 c = *ptr++; \
818 #define GETCHARBACK_INVALID(c, ptr, start, invalid_action) \ argument
820 c = ptr[-1]; \
821 if (ptr[-1] < 0xd800 || (ptr[-1] >= 0xe000 && ptr[-1] < 0x110000)) \
822 ptr--; \
10048 static PCRE2_SPTR SLJIT_FUNC do_script_run(PCRE2_SPTR ptr, PCRE2_SPTR endptr) in do_script_run() argument
10050 if (PRIV(script_run)(ptr, endptr, FALSE)) in do_script_run()
10057 static PCRE2_SPTR SLJIT_FUNC do_script_run_utf(PCRE2_SPTR ptr, PCRE2_SPTR endptr) in do_script_run_utf() argument
10059 if (PRIV(script_run)(ptr, endptr, TRUE)) in do_script_run_utf()
14123 void *ptr = SLJIT_MALLOC_EXEC(32); in pcre2_jit_compile() local
14127 if (ptr != NULL) in pcre2_jit_compile()
14129 SLJIT_FREE_EXEC(((sljit_u8*)(ptr)) + SLJIT_EXEC_OFFSET(ptr)); in pcre2_jit_compile()