veil_utils.c File Reference


Detailed Description

Miscelaneous functions for veil.

     Author:       Marc Munro
     Copyright (c) 2005 - 2011 Marc Munro
     License:      BSD

Definition in file veil_utils.c.

#include "postgres.h"
#include "utils/memutils.h"
#include "veil_funcs.h"
#include "veil_datatypes.h"

Include dependency graph for veil_utils.c:

Go to the source code of this file.

Functions

void * vl_malloc (size_t size)
 Dynamically allocate memory using palloc in TopMemoryContext.
char * vl_ObjTypeName (ObjType obj)
 Return a static string describing an ObjType object.


Function Documentation

void* vl_malloc ( size_t  size  ) 

Dynamically allocate memory using palloc in TopMemoryContext.

Parameters:
size The size of the chunk of memory being requested.
Returns:
Pointer to the newly allocated chunk of memory

Definition at line 28 of file veil_utils.c.

Referenced by create_shared_hash(), get_shmem_context(), vl_NewBitmap(), vl_NewInt4(), and vl_NewRange().

char* vl_ObjTypeName ( ObjType  obj  ) 

Return a static string describing an ObjType object.

Parameters:
obj The ObjType for which we want a description.
Returns:
Pointer to a static string describing obj.

Definition at line 45 of file veil_utils.c.

Referenced by vl_type_mismatch().


Generated on Mon Sep 12 15:26:59 2011 for Veil by  doxygen 1.5.6