d51422da1797f4b482f2a122123aed55cb60e0e5 kent Fri Apr 19 16:20:53 2013 -0700 Added -addBin option at Angie's request. diff --git src/inc/asParse.h src/inc/asParse.h index 664a6f9..d87ab3b 100644 --- src/inc/asParse.h +++ src/inc/asParse.h @@ -41,30 +41,34 @@ struct asTypeInfo { enum asTypes type; /* Numeric ID of low level type. */ char *name; /* Text ID of low level type. */ bool isUnsigned; /* True if an unsigned int of some type. */ bool stringy; /* True if a string or blob. */ char *sqlName; /* SQL type name. */ char *cName; /* C type name. */ char *listyName; /* What functions that load a list are called. */ char *nummyName; /* What functions that load a number are called. */ char *outFormat; /* Output format for printf. %d, %u, etc. */ char *djangoName; /* Django type name */ }; +struct asTypeInfo *asTypeFindLow(char *name); +/* Return asType for a low level type of given name. (Low level because may be decorated + * with array or pointer stuff at a higher level). Returns NULL if not found. */ + struct asIndex /* Information about an index */ { struct asIndex *next; /* In case it needs to be on a list. */ char *type; /* 'primary' 'index' or 'uniq' to pass to SQL */ int size; /* If nonzero only index prefix of this many chars. */ }; struct asColumn /* Info on one column/field */ { struct asColumn *next; /* Next column. */ char *name; /* Column name. */ char *comment; /* Comment string on column. */ struct asTypeInfo *lowType; /* Root type info. */