4898794edd81be5285ea6e544acbedeaeb31bf78 max Tue Nov 23 08:10:57 2021 -0800 Fixing pointers to README file for license in all source code files. refs #27614 diff --git src/hg/lib/encode/wgEncodeGencodeTranscriptionSupportLevel.c src/hg/lib/encode/wgEncodeGencodeTranscriptionSupportLevel.c index b4e3d08..e97e1c7 100644 --- src/hg/lib/encode/wgEncodeGencodeTranscriptionSupportLevel.c +++ src/hg/lib/encode/wgEncodeGencodeTranscriptionSupportLevel.c @@ -1,123 +1,123 @@ /* wgEncodeGencodeTranscriptionSupportLevel.c was originally generated by the autoSql program, which also * generated wgEncodeGencodeTranscriptionSupportLevel.h and wgEncodeGencodeTranscriptionSupportLevel.sql. This module links the database and * the RAM representation of objects. */ /* Copyright (C) 2012 The Regents of the University of California - * See README in this or parent directory for licensing information. */ + * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #include "common.h" #include "linefile.h" #include "dystring.h" #include "jksql.h" #include "encode/wgEncodeGencodeTranscriptionSupportLevel.h" void wgEncodeGencodeTranscriptionSupportLevelStaticLoad(char **row, struct wgEncodeGencodeTranscriptionSupportLevel *ret) /* Load a row from wgEncodeGencodeTranscriptionSupportLevel table into ret. The contents of ret will * be replaced at the next call to this function. */ { ret->transcriptId = row[0]; ret->level = sqlSigned(row[1]); } struct wgEncodeGencodeTranscriptionSupportLevel *wgEncodeGencodeTranscriptionSupportLevelLoad(char **row) /* Load a wgEncodeGencodeTranscriptionSupportLevel from row fetched with select * from wgEncodeGencodeTranscriptionSupportLevel * from database. Dispose of this with wgEncodeGencodeTranscriptionSupportLevelFree(). */ { struct wgEncodeGencodeTranscriptionSupportLevel *ret; AllocVar(ret); ret->transcriptId = cloneString(row[0]); ret->level = sqlSigned(row[1]); return ret; } struct wgEncodeGencodeTranscriptionSupportLevel *wgEncodeGencodeTranscriptionSupportLevelLoadAll(char *fileName) /* Load all wgEncodeGencodeTranscriptionSupportLevel from a whitespace-separated file. * Dispose of this with wgEncodeGencodeTranscriptionSupportLevelFreeList(). */ { struct wgEncodeGencodeTranscriptionSupportLevel *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[2]; while (lineFileRow(lf, row)) { el = wgEncodeGencodeTranscriptionSupportLevelLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; } struct wgEncodeGencodeTranscriptionSupportLevel *wgEncodeGencodeTranscriptionSupportLevelLoadAllByChar(char *fileName, char chopper) /* Load all wgEncodeGencodeTranscriptionSupportLevel from a chopper separated file. * Dispose of this with wgEncodeGencodeTranscriptionSupportLevelFreeList(). */ { struct wgEncodeGencodeTranscriptionSupportLevel *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[2]; while (lineFileNextCharRow(lf, chopper, row, ArraySize(row))) { el = wgEncodeGencodeTranscriptionSupportLevelLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; } struct wgEncodeGencodeTranscriptionSupportLevel *wgEncodeGencodeTranscriptionSupportLevelCommaIn(char **pS, struct wgEncodeGencodeTranscriptionSupportLevel *ret) /* Create a wgEncodeGencodeTranscriptionSupportLevel out of a comma separated string. * This will fill in ret if non-null, otherwise will * return a new wgEncodeGencodeTranscriptionSupportLevel */ { char *s = *pS; if (ret == NULL) AllocVar(ret); ret->transcriptId = sqlStringComma(&s); ret->level = sqlSignedComma(&s); *pS = s; return ret; } void wgEncodeGencodeTranscriptionSupportLevelFree(struct wgEncodeGencodeTranscriptionSupportLevel **pEl) /* Free a single dynamically allocated wgEncodeGencodeTranscriptionSupportLevel such as created * with wgEncodeGencodeTranscriptionSupportLevelLoad(). */ { struct wgEncodeGencodeTranscriptionSupportLevel *el; if ((el = *pEl) == NULL) return; freeMem(el->transcriptId); freez(pEl); } void wgEncodeGencodeTranscriptionSupportLevelFreeList(struct wgEncodeGencodeTranscriptionSupportLevel **pList) /* Free a list of dynamically allocated wgEncodeGencodeTranscriptionSupportLevel's */ { struct wgEncodeGencodeTranscriptionSupportLevel *el, *next; for (el = *pList; el != NULL; el = next) { next = el->next; wgEncodeGencodeTranscriptionSupportLevelFree(&el); } *pList = NULL; } void wgEncodeGencodeTranscriptionSupportLevelOutput(struct wgEncodeGencodeTranscriptionSupportLevel *el, FILE *f, char sep, char lastSep) /* Print out wgEncodeGencodeTranscriptionSupportLevel. Separate fields with sep. Follow last field with lastSep. */ { if (sep == ',') fputc('"',f); fprintf(f, "%s", el->transcriptId); if (sep == ',') fputc('"',f); fputc(sep,f); fprintf(f, "%d", el->level); fputc(lastSep,f); } /* -------------------------------- End autoSql Generated Code -------------------------------- */