struct tableStatus *tableStatusCommaIn(char **pS, struct tableStatus *ret) /* Create a tableStatus out of a comma separated string. * This will fill in ret if non-null, otherwise will * return a new tableStatus */ { char *s = *pS; if (ret == NULL) AllocVar(ret); ret->name = sqlStringComma(&s); ret->type = sqlStringComma(&s); ret->rowFormat = sqlStringComma(&s); ret->rows = sqlUnsignedComma(&s); ret->aveRowLength = sqlUnsignedComma(&s); ret->dataLength = sqlLongLongComma(&s); ret->maxDataLength = sqlLongLongComma(&s); ret->indexLength = sqlLongLongComma(&s); ret->dataFree = sqlLongLongComma(&s); ret->autoIncrement = sqlStringComma(&s); ret->createTime = sqlStringComma(&s); ret->updateTime = sqlStringComma(&s); ret->checkTime = sqlStringComma(&s); ret->createOptions = sqlStringComma(&s); ret->comment = sqlStringComma(&s); *pS = s; return ret; }
struct job *jobCommaIn(char **pS, struct job *ret) /* Create a job out of a comma separated string. * This will fill in ret if non-null, otherwise will * return a new job */ { char *s = *pS; if (ret == NULL) AllocVar(ret); ret->command = sqlStringComma(&s); ret->cpusUsed = sqlFloatComma(&s); ret->ramUsed = sqlLongLongComma(&s); ret->checkCount = sqlSignedComma(&s); { int i; s = sqlEatChar(s, '{'); for (i=0; i<ret->checkCount; ++i) { s = sqlEatChar(s, '{'); if(s[0] != '}') slSafeAddHead(&ret->checkList, checkCommaIn(&s,NULL)); s = sqlEatChar(s, '}'); s = sqlEatChar(s, ','); } slReverse(&ret->checkList); s = sqlEatChar(s, '}'); s = sqlEatChar(s, ','); } ret->submissionCount = sqlSignedComma(&s); { int i; s = sqlEatChar(s, '{'); for (i=0; i<ret->submissionCount; ++i) { s = sqlEatChar(s, '{'); if(s[0] != '}') slSafeAddHead(&ret->submissionList, submissionCommaIn(&s,NULL)); s = sqlEatChar(s, '}'); s = sqlEatChar(s, ','); } slReverse(&ret->submissionList); s = sqlEatChar(s, '}'); s = sqlEatChar(s, ','); } ret->spec = sqlStringComma(&s); *pS = s; return ret; }
struct scoredRef *scoredRefCommaIn(char **pS, struct scoredRef *ret) /* Create a scoredRef out of a comma separated string. * This will fill in ret if non-null, otherwise will * return a new scoredRef */ { char *s = *pS; if (ret == NULL) AllocVar(ret); ret->chrom = sqlStringComma(&s); ret->chromStart = sqlUnsignedComma(&s); ret->chromEnd = sqlUnsignedComma(&s); ret->extFile = sqlUnsignedComma(&s); ret->offset = sqlLongLongComma(&s); ret->score = sqlFloatComma(&s); *pS = s; return ret; }