d8feabb353b3c2650facea4afd08c86bb56e5549 kent Fri Apr 6 16:51:54 2012 -0700 Moving autoSql and autoDtd and autoXml back to just under hg. A little autoSql -django fix. diff --git src/utils/autoSql/commonSh.c src/utils/autoSql/commonSh.c deleted file mode 100644 index 9243461..0000000 --- src/utils/autoSql/commonSh.c +++ /dev/null @@ -1,39 +0,0 @@ -/* Short short form of common.c. */ -#include -#include -#include - - -#include "psLayHit.h" - -#define sqlUnsigned atoi -/* String to unsigned. */ - -#define sqlSigned atoi -/* String to signed. */ - -#define cloneString strdup -/* Duplicate string onto heap. */ - -#define AllocVar(pt) (pt = malloc(sizeof(*pt))) -/* Shortcut to allocating a single variable on the heap and - * assigning pointer to it. */ - - -static void freeMem(void *vpt) -/* Default deallocator. */ -{ -if (vpt != NULL) - free(vpt); -} - -static void freez(void *vpt) -/* Pass address of pointer. Will free pointer and set it - * to NULL. */ -{ -void **ppt = (void **)vpt; -freeMem(*ppt); -*ppt = NULL; -} - -