Lines Matching refs:dataptr

236 	phpdbg_file_source data, *dataptr;  in phpdbg_compile_file()  local
265 *(dataptr = emalloc(sizeof(phpdbg_file_source) + sizeof(uint32_t) * data.len)) = data; in phpdbg_compile_file()
269 dataptr->line[++line] = (uint32_t)(bufptr - data.buf) + 1; in phpdbg_compile_file()
273 dataptr->lines = ++line; in phpdbg_compile_file()
274 dataptr = erealloc(dataptr, sizeof(phpdbg_file_source) + sizeof(uint32_t) * line); in phpdbg_compile_file()
275 dataptr->line[line] = endptr - data.buf; in phpdbg_compile_file()
278 zend_hash_add_ptr(&PHPDBG_G(file_sources), ret->filename, dataptr); in phpdbg_compile_file()
288 phpdbg_file_source *dataptr; in phpdbg_init_compile_file() local
311 dataptr = zend_hash_find_ptr(&PHPDBG_G(file_sources), op_array->filename); in phpdbg_init_compile_file()
312 ZEND_ASSERT(dataptr != NULL); in phpdbg_init_compile_file()
314 dataptr->op_array = *op_array; in phpdbg_init_compile_file()
315 if (dataptr->op_array.refcount) { in phpdbg_init_compile_file()
316 ++*dataptr->op_array.refcount; in phpdbg_init_compile_file()
325 phpdbg_file_source *dataptr; in phpdbg_compile_string() local
333 dataptr = emalloc(sizeof(phpdbg_file_source) + sizeof(uint32_t) * Z_STRLEN_P(source_string)); in phpdbg_compile_string()
334 dataptr->buf = estrndup(Z_STRVAL_P(source_string), Z_STRLEN_P(source_string)); in phpdbg_compile_string()
335 dataptr->len = Z_STRLEN_P(source_string); in phpdbg_compile_string()
336 dataptr->line[0] = 0; in phpdbg_compile_string()
337 …for (line = 0, bufptr = dataptr->buf - 1, endptr = dataptr->buf + dataptr->len; ++bufptr < endptr;… in phpdbg_compile_string()
339 dataptr->line[++line] = (uint32_t)(bufptr - dataptr->buf) + 1; in phpdbg_compile_string()
342 dataptr->lines = ++line; in phpdbg_compile_string()
343 dataptr->line[line] = endptr - dataptr->buf; in phpdbg_compile_string()
348 efree(dataptr->buf); in phpdbg_compile_string()
349 efree(dataptr); in phpdbg_compile_string()
355 dataptr = erealloc(dataptr, sizeof(phpdbg_file_source) + sizeof(uint32_t) * line); in phpdbg_compile_string()
356 zend_hash_add_ptr(&PHPDBG_G(file_sources), fake_name, dataptr); in phpdbg_compile_string()
360 dataptr->op_array = *op_array; in phpdbg_compile_string()
361 if (dataptr->op_array.refcount) { in phpdbg_compile_string()
362 ++*dataptr->op_array.refcount; in phpdbg_compile_string()