# HG changeset patch # User schloegl # Date 1428089092 0 # Node ID 4e0e24d27b8236d048be6f4af780043f3859859b # Parent 21f4d96c4959ff032f298552f4a1b25e18c928c4 [nan] replace strcmpi with strncasecmp diff -r 21f4d96c4959 -r 4e0e24d27b82 extra/NaN/src/xptopen.cpp --- a/extra/NaN/src/xptopen.cpp Fri Apr 03 19:24:06 2015 +0000 +++ b/extra/NaN/src/xptopen.cpp Fri Apr 03 19:24:52 2015 +0000 @@ -50,8 +50,8 @@ // http://cvs.savannah.gnu.org/pspp/doc/data-file-format.texi?root=pspp&content-type=text%2Fplain */ -#define TEST_CONVERSION 2 // 0: ieee754, 1: SAS converter (big endian bug), 2: experimental -#define DEBUG 0 +#define TEST_CONVERSION 0 // 0: ieee754, 1: SAS converter (big endian bug), 2: experimental +#define DEBUG 1 #include #include @@ -236,20 +236,6 @@ uint64_t d2xpt(double x); double tm_time2gdf_time(struct tm *t); -/* - compare first n characters of two strings, ignore case - */ -int strncmpi(const char* str1, const char* str2, size_t n) -{ - unsigned int k=0; - int r=0; - while (!r && str1[k] && str2[k] && (k