src/cell.c
/* Construct a pointer to a new Error cell */
Construct a pointer to a new Error cell
Construct a pointer to a new Error cell
cell* err_cell(apr_pool_t* pool, char* fmt, ...) 
{
	cell* c = apr_palloc(pool, sizeof(cell));
	c->type = ERR_CELL;
	c->next_sibling = NULL;
	va_list va;
	va_start(va, fmt);
	c->err = apr_palloc(pool, 512);
	vsnprintf(c->err, 511, fmt, va);
	va_end(va);
	return c;
}
cell * err_cell ( apr_pool_t * pool , char * fmt , ... ) { cell * c = apr_palloc ( pool , sizeof ( cell ) ) ; c -> type = ERR_CELL ; c -> next_sibling = NULL ; va_list va ; va_start ( va , fmt ) ; c -> err = apr_palloc ( pool , 512 ) ; vsnprintf ( c -> err , 511 , fmt , va ) ; va_end ( va ) ; return c ; }
Construct a pointer to a new Error cell
Construct a pointer to a new Error cell