src/inc/ra.h 1.8

1.8 2009/12/06 20:09:36 kent
Adding optional dyString parameter.
Index: src/inc/ra.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/inc/ra.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -b -B -U 4 -r1.7 -r1.8
--- src/inc/ra.h	23 Nov 2009 07:33:44 -0000	1.7
+++ src/inc/ra.h	6 Dec 2009 20:09:36 -0000	1.8
@@ -18,15 +18,17 @@
 struct slPair *raNextRecordAsSlPairList(struct lineFile *lf);
 /* Return ra record as a slPair list instead of a hash.  Handy if you want to preserve the order. 
  * Do a slPairFreeValsAndList on result when done. */
 
-boolean raSkipLeadingEmptyLines(struct lineFile *lf);
+boolean raSkipLeadingEmptyLines(struct lineFile *lf, struct dyString *dy);
 /* Skip leading empty lines and comments.  Returns FALSE at end of file. 
- * Together with raNextTagVal you can construct your own raNextRecord.... */
+ * Together with raNextTagVal you can construct your own raNextRecord.... 
+ * If dy parameter is non-null, then the text parsed gets placed into dy. */
 
-boolean raNextTagVal(struct lineFile *lf, char **retTag, char **retVal);
+boolean raNextTagVal(struct lineFile *lf, char **retTag, char **retVal, struct dyString  *dy);
 /* Read next line.  Return FALSE at end of file or blank line.  Otherwise
- * fill in *retTag and *retVal and return TRUE */
+ * fill in *retTag and *retVal and return TRUE.
+ * If dy parameter is non-null, then the text parsed gets appended to dy. */
 
 struct hash *raFromString(char *string);
 /* Return hash of key/value pairs from string.
  * As above freeHash this when done. */