third_party/cairo/src/cairo-tor22-scan-converter.c
inline static void *
pool_alloc (struct pool *pool, size_t size)
{
    struct _pool_chunk *chunk = pool->current;

    if (size <= chunk->capacity - chunk->size) {
	void *obj = ((unsigned char*)chunk + sizeof(*chunk) + chunk->size);
	chunk->size += size;
	return obj;
    } else {
	return _pool_alloc_from_new_chunk(pool, size);
    }
}
/* Allocate size bytes from the pool.  The first allocated address
 * returned from a pool is aligned to sizeof(void*).  Subsequent
 * addresses will maintain alignment as long as multiples of void* are
 * allocated.  Returns the address of a new memory area or %NULL on
 * allocation failures.	 The pool retains ownership of the returned
 * memory. */
Allocate size bytes from the pool.  The first allocated address
returned from a pool is aligned to sizeof(void*).  Subsequent
addresses will maintain alignment as long as multiples of void* are
allocated.  Returns the address of a new memory area or %NULL on
allocation failures.  The pool retains ownership of the returned
memory.
Allocate size bytes from the pool . The first allocated address returned from a pool is aligned to sizeof ( void * ) . Subsequent addresses will maintain alignment as long as multiples of void * are allocated . Returns the address of a new memory area or %NULL on allocation failures . The pool retains ownership of the returned memory .
inline static void *
pool_alloc (struct pool *pool, size_t size)
{
    struct _pool_chunk *chunk = pool->current;
    if (size <= chunk->capacity - chunk->size) {
	void *obj = ((unsigned char*)chunk + sizeof(*chunk) + chunk->size);
	chunk->size += size;
	return obj;
    } else {
	return _pool_alloc_from_new_chunk(pool, size);
    }
}
inline static void * pool_alloc ( struct pool * pool , size_t size ) { struct _pool_chunk * chunk = pool -> current ; if ( size <= chunk -> capacity - chunk -> size ) { void * obj = ( ( unsigned char * ) chunk + sizeof ( * chunk ) + chunk -> size ) ; chunk -> size += size ; return obj ; } else { return _pool_alloc_from_new_chunk ( pool , size ) ; } }
Allocate size bytes from the pool.
Allocate size bytes from the pool .