49eebbfade7874bd516ceb6f138e16111837bc33
galt
  Mon May 7 12:57:31 2012 -0700
Make sqlList.c dynamic arrays thread-safe.  Fixes bug in bigBed reported by user #7850.
diff --git src/inc/sqlNum.h src/inc/sqlNum.h
index c00efbe..ff3f056 100644
--- src/inc/sqlNum.h
+++ src/inc/sqlNum.h
@@ -10,38 +10,74 @@
  *
  * This file is copyright 2002 Jim Kent, but license is hereby
  * granted for all use - public, private or commercial. */
 
 #ifndef SQLNUM_H
 #define SQLNUM_H
 
 /* get off_t */
 #include <sys/types.h>
 
 unsigned sqlUnsigned(char *s);
 /* Convert series of digits to unsigned integer about
  * twice as fast as atoi (by not having to skip white 
  * space or stop except at the null byte.) */
 
+unsigned sqlUnsignedInList(char **pS);
+/* Convert series of digits to unsigned integer about
+ * twice as fast as atoi (by not having to skip white 
+ * space or stop except at the null byte.) 
+ * All of string is number. Number may be delimited by a comma. 
+ * Returns the position of the delimiter or the terminating 0. */
+
 unsigned long sqlUnsignedLong(char *s);
 /* Convert series of digits to unsigned long about
  * twice as fast as atol (by not having to skip white 
  * space or stop except at the null byte.) */
 
+unsigned long sqlUnsignedLongInList(char **pS);
+/* Convert series of digits to unsigned long about
+ * twice as fast as atol (by not having to skip white 
+ * space or stop except at the null byte.) 
+ * All of string is number. Number may be delimited by a comma. 
+ * Returns the position of the delimiter or the terminating 0. */
+
 int sqlSigned(char *s);
 /* Convert string to signed integer.  Unlike atol assumes 
  * all of string is number. */
 
+int sqlSignedInList(char **pS);
+/* Convert string to signed integer.  Unlike atol assumes 
+ * all of string is number. Number may be delimited by a comma. 
+ * Returns the position of the delimiter or the terminating 0. */
+
 long long sqlLongLong(char *s);
 /* Convert string to a long long.  Unlike atol assumes all of string is
  * number. */
 
+long long sqlLongLongInList(char **pS);
+/* Convert string to a long long.  Unlike atol, assumes 
+ * all of string is number. Number may be delimited by a comma. 
+ * Returns the position of the delimiter or the terminating 0. */
+
 float sqlFloat(char *s);
 /* Convert string to a float.  Assumes all of string is number
  * and aborts on an error. */
 
+float sqlFloatInList(char **pS);
+/* Convert string to a float.  Assumes all of string is number
+ * and aborts on an error. 
+ * Number may be delimited by a comma. 
+ * Returns the position of the delimiter or the terminating 0. */
+
 double sqlDouble(char *s);
 /* Convert string to a double.  Assumes all of string is number
  * and aborts on an error. */
 
+double sqlDoubleInList(char **pS);
+/* Convert string to a double.  Assumes all of string is number
+ * and aborts on an error.
+ * Number may be delimited by a comma.
+ * Returns the position of the delimiter or the terminating 0. */
+
 #endif /* SQLNUM_H */