02f9444f186888d2da5d65d9db583ddf2d7b95ca jcasper Thu Oct 22 01:48:20 2020 -0700 Adding trackDb options to change defaults for hic tracks. Also made some of those settings case-insensitive. refs #26312 diff --git src/inc/common.h src/inc/common.h index b891d98..d10f47b 100644 --- src/inc/common.h +++ src/inc/common.h @@ -758,30 +758,37 @@ char *cloneLongString(char *s); /* Make clone of long string. */ char *catTwoStrings(char *a, char *b); /* Allocate new string that is a concatenation of two strings. */ int differentWord(char *s1, char *s2); /* strcmp ignoring case - returns zero if strings are * the same (ignoring case) otherwise returns difference * between first non-matching characters. */ #define sameWord(a,b) (!differentWord(a,b)) /* Return TRUE if two strings are same ignoring case */ +int differentWordNullOk(char *s1, char *s2); +/* Returns 0 if two strings (either of which may be NULL) + * are the same, ignoring case. Otherwise returns the + * difference between the first non-matching characters. */ + +#define sameWordOk(a,b) (!differentWordNullOk(a,b)) + #define differentString(a,b) (strcmp(a,b)) /* Returns FALSE if two strings same. */ int differentStringNullOk(char *a, char *b); /* Returns 0 if two strings (either of which may be NULL) * are the same. Otherwise it returns a positive or negative * number depending on the alphabetical order of the two * strings. * This is basically a strcmp that can handle NULLs in * the input. If used in a sort the NULLs will end * up before any of the cases with data. */ #define sameOk(a,b) (differentStringNullOk(a,b) == 0) /* returns TRUE if two strings same, NULLs OK */