Lines Matching refs:dataptr

236 	phpdbg_file_source data, *dataptr;  in phpdbg_compile_file()  local
264 *(dataptr = emalloc(sizeof(phpdbg_file_source) + sizeof(uint) * data.len)) = data; in phpdbg_compile_file()
268 dataptr->line[++line] = (uint)(bufptr - data.buf) + 1; in phpdbg_compile_file()
271 dataptr->lines = ++line; in phpdbg_compile_file()
272 dataptr->line[line] = endptr - data.buf; in phpdbg_compile_file()
278 efree(dataptr); in phpdbg_compile_file()
286 dataptr = erealloc(dataptr, sizeof(phpdbg_file_source) + sizeof(uint) * line); in phpdbg_compile_file()
287 zend_hash_add_ptr(&PHPDBG_G(file_sources), ret->filename, dataptr); in phpdbg_compile_file()
300 phpdbg_file_source *dataptr; in phpdbg_init_compile_file() local
323 dataptr = zend_hash_find_ptr(&PHPDBG_G(file_sources), op_array->filename); in phpdbg_init_compile_file()
324 ZEND_ASSERT(dataptr != NULL); in phpdbg_init_compile_file()
326 dataptr->op_array = *op_array; in phpdbg_init_compile_file()
327 if (dataptr->op_array.refcount) { in phpdbg_init_compile_file()
328 ++*dataptr->op_array.refcount; in phpdbg_init_compile_file()
337 phpdbg_file_source *dataptr; in phpdbg_compile_string() local
345 dataptr = emalloc(sizeof(phpdbg_file_source) + sizeof(uint) * Z_STRLEN_P(source_string)); in phpdbg_compile_string()
346 dataptr->buf = estrndup(Z_STRVAL_P(source_string), Z_STRLEN_P(source_string)); in phpdbg_compile_string()
347 dataptr->len = Z_STRLEN_P(source_string); in phpdbg_compile_string()
348 dataptr->line[0] = 0; in phpdbg_compile_string()
349 …for (line = 0, bufptr = dataptr->buf - 1, endptr = dataptr->buf + dataptr->len; ++bufptr < endptr;… in phpdbg_compile_string()
351 dataptr->line[++line] = (uint)(bufptr - dataptr->buf) + 1; in phpdbg_compile_string()
354 dataptr->lines = ++line; in phpdbg_compile_string()
355 dataptr->line[line] = endptr - dataptr->buf; in phpdbg_compile_string()
360 efree(dataptr->buf); in phpdbg_compile_string()
361 efree(dataptr); in phpdbg_compile_string()
367 dataptr = erealloc(dataptr, sizeof(phpdbg_file_source) + sizeof(uint) * line); in phpdbg_compile_string()
368 zend_hash_add_ptr(&PHPDBG_G(file_sources), fake_name, dataptr); in phpdbg_compile_string()
372 dataptr->op_array = *op_array; in phpdbg_compile_string()
373 if (dataptr->op_array.refcount) { in phpdbg_compile_string()
374 ++*dataptr->op_array.refcount; in phpdbg_compile_string()