Lines Matching refs:code_pos
212 static char *zend_ffi_parse_directives(const char *filename, char *code_pos, char **scope_name, cha…
3156 char *code, *code_pos, *scope_name, *lib; in zend_ffi_load() local
3210 code_pos = zend_ffi_parse_directives(filename, code, &scope_name, &lib, preload); in zend_ffi_load()
3211 if (!code_pos) { in zend_ffi_load()
3216 code_size -= code_pos - code; in zend_ffi_load()
3218 if (zend_ffi_parse_decl(code_pos, code_size) != SUCCESS) { in zend_ffi_load()
4505 static char *zend_ffi_parse_directives(const char *filename, char *code_pos, char **scope_name, cha… in zend_ffi_parse_directives() argument
4511 while (*code_pos == '#') { in zend_ffi_parse_directives()
4512 if (strncmp(code_pos, "#define FFI_SCOPE", sizeof("#define FFI_SCOPE") - 1) == 0 in zend_ffi_parse_directives()
4513 && (code_pos[sizeof("#define FFI_SCOPE") - 1] == ' ' in zend_ffi_parse_directives()
4514 || code_pos[sizeof("#define FFI_SCOPE") - 1] == '\t')) { in zend_ffi_parse_directives()
4515 p = code_pos + sizeof("#define FFI_SCOPE"); in zend_ffi_parse_directives()
4558 code_pos = p; in zend_ffi_parse_directives()
4559 } else if (strncmp(code_pos, "#define FFI_LIB", sizeof("#define FFI_LIB") - 1) == 0 in zend_ffi_parse_directives()
4560 && (code_pos[sizeof("#define FFI_LIB") - 1] == ' ' in zend_ffi_parse_directives()
4561 || code_pos[sizeof("#define FFI_LIB") - 1] == '\t')) { in zend_ffi_parse_directives()
4562 p = code_pos + sizeof("#define FFI_LIB"); in zend_ffi_parse_directives()
4605 code_pos = p; in zend_ffi_parse_directives()
4610 return code_pos; in zend_ffi_parse_directives()