ebf16fa660f3db7afb0e1fbaf3f02852c8e6587f markd Tue Sep 6 12:10:49 2016 -0700 internal documention fixes diff --git src/hg/lib/estOrientInfo.c src/hg/lib/estOrientInfo.c index b6edf03..1dd9534 100644 --- src/hg/lib/estOrientInfo.c +++ src/hg/lib/estOrientInfo.c @@ -105,31 +105,31 @@ struct estOrientInfo *estOrientInfoLoadWhere(struct sqlConnection *conn, char *table, char *where) /* Load all estOrientInfo from table that satisfy where clause. The * where clause may be NULL in which case whole table is loaded * Dispose of this with estOrientInfoFreeList(). */ { struct estOrientInfo *list = NULL, *el; struct dyString *query = dyStringNew(256); struct sqlResult *sr; char **row; sqlDyStringPrintf(query, "select * from %s", table); if (where != NULL) dyStringPrintf(query, " where %s", where); sr = sqlGetResult(conn, query->string); -int off = sqlFieldColumn(sr, "bin") + 1; // offset of data +int off = sqlFieldColumn(sr, "bin") + 1; // offset of data; function returns -1 if no bin while ((row = sqlNextRow(sr)) != NULL) { el = estOrientInfoLoad(row+off); slAddHead(&list, el); } slReverse(&list); sqlFreeResult(&sr); dyStringFree(&query); return list; } struct estOrientInfo *estOrientInfoCommaIn(char **pS, struct estOrientInfo *ret) /* Create a estOrientInfo out of a comma separated string. * This will fill in ret if non-null, otherwise will * return a new estOrientInfo */