89ffe44594827b78d52631db205983d17f5074e5 kent Tue Apr 17 12:14:48 2012 -0700 Adding asColumnFind function. diff --git src/inc/asParse.h src/inc/asParse.h index 56c6945..901632c 100644 --- src/inc/asParse.h +++ src/inc/asParse.h @@ -91,23 +91,26 @@ struct asObject *asParseText(char *text); /* Parse autoSql from text (as opposed to file). */ void asObjectFree(struct asObject **as); /* free a single asObject */ void asObjectFreeList(struct asObject **as); /* free a list of asObject */ void asColumnFree(struct asColumn **as); /* free a single asColumn */ void asColumnFreeList(struct asColumn **as); /* free a list of asColumn */ +struct asColumn *asColumnFind(struct asObject *as, char *name); +/* Return column of given name from object, or NULL if not found. */ + boolean asCompareObjs(char *name1, struct asObject *as1, char *name2, struct asObject *as2, int numColumnsToCheck, int *retNumColumnsSame, boolean abortOnDifference); /* Compare as-objects as1 and as2 making sure several important fields show they are the same name and type. * If difference found, print it to stderr. If abortOnDifference, errAbort. * Othewise, return TRUE if the objects columns match through the first numColumnsToCheck fields. * If retNumColumnsSame is not NULL, then it will be set to the number of contiguous matching columns. */ #endif /* ASPARSE_H */