5e00e2102bfe66842560ca466d4b2fe6b656790c kent Fri Jan 24 20:09:33 2014 -0800 Adding slUnsigned to our basic listy types like slInt... diff --git src/inc/common.h src/inc/common.h index dc461d7..16db3c1 100644 --- src/inc/common.h +++ src/inc/common.h @@ -458,30 +458,40 @@ }; struct slInt *slIntNew(int x); #define newSlInt slIntNew /* Return a new double. */ int slIntCmp(const void *va, const void *vb); /* Compare two slInts. */ int slIntCmpRev(const void *va, const void *vb); /* Compare two slInts in reverse direction. */ struct slInt * slIntFind(struct slInt *list, int target); /* Find target in slInt list or return NULL */ +struct slUnsigned +/* List of unsigned */ + { + struct slUnsigned *next; /* Next in list */ + unsigned val; /* Unsigned value */ + }; + +struct slUnsigned *slUnsignedNew(unsigned x); +/* Return a new slUnsigned. */ + /******* slDouble - a double on a list *******/ struct slDouble /* List of double-precision numbers. */ { struct slDouble *next; /* Next in list. */ double val; /* Double-precision value. */ }; struct slDouble *slDoubleNew(double x); #define newSlDouble slDoubleNew /* Return a new int. */ int slDoubleCmp(const void *va, const void *vb); /* Compare two slDoubles. */