Lines Matching refs:dataptr
234 phpdbg_file_source data, *dataptr; in phpdbg_compile_file() local
262 *(dataptr = emalloc(sizeof(phpdbg_file_source) + sizeof(uint32_t) * data.len)) = data; in phpdbg_compile_file()
266 dataptr->line[++line] = (uint32_t)(bufptr - data.buf) + 1; in phpdbg_compile_file()
270 dataptr->lines = ++line; in phpdbg_compile_file()
271 dataptr = erealloc(dataptr, sizeof(phpdbg_file_source) + sizeof(uint32_t) * line); in phpdbg_compile_file()
272 dataptr->line[line] = endptr - data.buf; in phpdbg_compile_file()
275 zend_hash_add_ptr(&PHPDBG_G(file_sources), ret->filename, dataptr); in phpdbg_compile_file()
285 phpdbg_file_source *dataptr; in phpdbg_init_compile_file() local
308 dataptr = zend_hash_find_ptr(&PHPDBG_G(file_sources), op_array->filename); in phpdbg_init_compile_file()
309 ZEND_ASSERT(dataptr != NULL); in phpdbg_init_compile_file()
311 dataptr->op_array = *op_array; in phpdbg_init_compile_file()
312 if (dataptr->op_array.refcount) { in phpdbg_init_compile_file()
313 ++*dataptr->op_array.refcount; in phpdbg_init_compile_file()
322 phpdbg_file_source *dataptr; in phpdbg_compile_string() local
330 dataptr = emalloc(sizeof(phpdbg_file_source) + sizeof(uint32_t) * ZSTR_LEN(source_string)); in phpdbg_compile_string()
331 dataptr->buf = estrndup(ZSTR_VAL(source_string), ZSTR_LEN(source_string)); in phpdbg_compile_string()
332 dataptr->len = ZSTR_LEN(source_string); in phpdbg_compile_string()
333 dataptr->line[0] = 0; in phpdbg_compile_string()
334 …for (line = 0, bufptr = dataptr->buf - 1, endptr = dataptr->buf + dataptr->len; ++bufptr < endptr;… in phpdbg_compile_string()
336 dataptr->line[++line] = (uint32_t)(bufptr - dataptr->buf) + 1; in phpdbg_compile_string()
339 dataptr->lines = ++line; in phpdbg_compile_string()
340 dataptr->line[line] = endptr - dataptr->buf; in phpdbg_compile_string()
345 efree(dataptr->buf); in phpdbg_compile_string()
346 efree(dataptr); in phpdbg_compile_string()
352 dataptr = erealloc(dataptr, sizeof(phpdbg_file_source) + sizeof(uint32_t) * line); in phpdbg_compile_string()
353 zend_hash_add_ptr(&PHPDBG_G(file_sources), fake_name, dataptr); in phpdbg_compile_string()
357 dataptr->op_array = *op_array; in phpdbg_compile_string()
358 if (dataptr->op_array.refcount) { in phpdbg_compile_string()
359 ++*dataptr->op_array.refcount; in phpdbg_compile_string()