060ada2535fca719656219c1214a3e1c16490693
tdreszer
  Wed Nov 9 16:06:41 2011 -0800
Moved as code in hgTables down to lib and access it from hgc and hgTrackUi.  This is to remove 'extraFields' support as per Jim's request in redmine 5883 and 5582
diff --git src/hg/lib/makeItemsItem.c src/hg/lib/makeItemsItem.c
index ea9817e..3c1f7b3 100644
--- src/hg/lib/makeItemsItem.c
+++ src/hg/lib/makeItemsItem.c
@@ -229,34 +229,40 @@
 fputc(sep,f);
 fprintf(f, "%u", el->thickEnd);
 fputc(sep,f);
 fprintf(f, "%u", el->itemRgb);
 fputc(sep,f);
 if (sep == ',') fputc('"',f);
 fprintf(f, "%s", el->description);
 if (sep == ',') fputc('"',f);
 fputc(sep,f);
 fprintf(f, "%u", el->id);
 fputc(lastSep,f);
 }
 
 /* -------------------------------- End autoSql Generated Code -------------------------------- */
 
-char *makeItemsItemAutoSqlString = 
+static char *makeItemsItemAutoSqlString =
 "table makeItemsItem\n"
 "\"An item in a makeItems type track.\"\n"
 "    (\n"
 "    uint bin;	       \"Bin for range index\"\n"
 "    string chrom;      \"Reference sequence chromosome or scaffold\"\n"
 "    uint   chromStart; \"Start position in chromosome\"\n"
 "    uint   chromEnd;   \"End position in chromosome\"\n"
 "    string name;       \"Name of item - up to 16 chars\"\n"
 "    uint  score;	\"0-1000.  Higher numbers are darker.\"\n"
 "    char[1] strand;     \"+ or - for strand\"\n"
 "    uint   thickStart; \"Start of thick part\"\n"
 "    uint   thickEnd;   \"End position of thick part\"\n"
 "    uint itemRgb;	\"RGB 8 bits each as in bed\"\n"
 "    lstring description; \"Longer item description\"\n"
 "    uint id;		\"Unique ID for item\"\n"
 "    )\n"
    ;
 
+struct asObject *makeItemsItemAsObj()
+// Return asObject describing fields of makeItemsItem
+{
+return asParseText(makeItemsItemAutoSqlString);
+}
+