Lines Matching refs:dataptr
230 phpdbg_file_source data, *dataptr; in phpdbg_compile_file() local
258 *(dataptr = emalloc(sizeof(phpdbg_file_source) + sizeof(uint32_t) * data.len)) = data; in phpdbg_compile_file()
262 dataptr->line[++line] = (uint32_t)(bufptr - data.buf) + 1; in phpdbg_compile_file()
266 dataptr->lines = ++line; in phpdbg_compile_file()
267 dataptr = erealloc(dataptr, sizeof(phpdbg_file_source) + sizeof(uint32_t) * line); in phpdbg_compile_file()
268 dataptr->line[line] = endptr - data.buf; in phpdbg_compile_file()
271 zend_hash_add_ptr(&PHPDBG_G(file_sources), ret->filename, dataptr); in phpdbg_compile_file()
281 phpdbg_file_source *dataptr; in phpdbg_init_compile_file() local
301 dataptr = zend_hash_find_ptr(&PHPDBG_G(file_sources), op_array->filename); in phpdbg_init_compile_file()
302 ZEND_ASSERT(dataptr != NULL); in phpdbg_init_compile_file()
304 dataptr->op_array = *op_array; in phpdbg_init_compile_file()
305 if (dataptr->op_array.refcount) { in phpdbg_init_compile_file()
306 ++*dataptr->op_array.refcount; in phpdbg_init_compile_file()
315 phpdbg_file_source *dataptr; in phpdbg_compile_string() local
323 dataptr = emalloc(sizeof(phpdbg_file_source) + sizeof(uint32_t) * ZSTR_LEN(source_string)); in phpdbg_compile_string()
324 dataptr->buf = estrndup(ZSTR_VAL(source_string), ZSTR_LEN(source_string)); in phpdbg_compile_string()
325 dataptr->len = ZSTR_LEN(source_string); in phpdbg_compile_string()
326 dataptr->line[0] = 0; in phpdbg_compile_string()
327 …for (line = 0, bufptr = dataptr->buf - 1, endptr = dataptr->buf + dataptr->len; ++bufptr < endptr;… in phpdbg_compile_string()
329 dataptr->line[++line] = (uint32_t)(bufptr - dataptr->buf) + 1; in phpdbg_compile_string()
332 dataptr->lines = ++line; in phpdbg_compile_string()
333 dataptr->line[line] = endptr - dataptr->buf; in phpdbg_compile_string()
338 efree(dataptr->buf); in phpdbg_compile_string()
339 efree(dataptr); in phpdbg_compile_string()
345 dataptr = erealloc(dataptr, sizeof(phpdbg_file_source) + sizeof(uint32_t) * line); in phpdbg_compile_string()
346 zend_hash_add_ptr(&PHPDBG_G(file_sources), fake_name, dataptr); in phpdbg_compile_string()
350 dataptr->op_array = *op_array; in phpdbg_compile_string()
351 if (dataptr->op_array.refcount) { in phpdbg_compile_string()
352 ++*dataptr->op_array.refcount; in phpdbg_compile_string()