Beispiel #1
0
void
apd_summary_output_file_reference(int id, const char *filename)
{
	apd_file_entry_t *file_entry;
	TSRMLS_FETCH();

	file_entry = emalloc(sizeof(apd_file_entry_t));
	file_entry->id = id;
	file_entry->filename = estrdup(filename);

	apd_array_set(&APD_GLOBALS(summary).files, id, file_entry);
}
Beispiel #2
0
void
apd_summary_output_declare_function(int index, const char *fname, int type)
{
	apd_function_entry_t *function_entry;
	TSRMLS_FETCH();

	function_entry = ecalloc(1, sizeof(apd_function_entry_t));
	function_entry->name = estrdup(fname);
	function_entry->id = index;
	function_entry->type = type;

	apd_array_set(&APD_GLOBALS(summary).functions, index, function_entry);
}
Beispiel #3
0
int 
apd_array_append(apd_array_t *a, void *ptr)
{
	apd_array_set(a, a->largest+1, ptr);
}