cURL / Mailing Lists / curl-library / Single Mail

curl-library

strtoll patch

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Thu, 22 Jan 2004 14:37:15 +0100

MingW and djgpp have strtoll(), but it's probably not needed
since SIZEOF_OFF_T currently is 4. I assume that should be
SIZEOF_CURL_OFF_T eventually. And the prototype should be
'curl_off_t Curl_strtoll'

--- CVS-latest/lib/config-win32.h Thu Dec 18 09:56:20 2003
+++ lib/config-win32.h Thu Jan 15 14:41:05 2004
@@ -91,6 +91,11 @@
 /* Define if you have the strstr function. */
 #define HAVE_STRSTR 1

+/* Define if you have the strtoll function. */
+#ifdef MINGW32
+#define HAVE_STRTOLL 1
+#endif
+
 /* Define if you have the tcgetattr function. */
 /*#define HAVE_TCGETATTR 1*/

--- CVS-latest/lib/config.dj Fri Dec 19 09:03:35 2003
+++ lib/config.dj Thu Jan 22 13:33:18 2004
@@ -43,6 +43,7 @@
 #define HAVE_STRFTIME 1
 #define HAVE_STRICMP 1
 #define HAVE_STRSTR 1
+#define HAVE_STRTOLL 1
 #define HAVE_SYS_SOCKET_H 1
 #define HAVE_SYS_STAT_H 1
 #define HAVE_SYS_TYPES_H 1

------

And a patch for compressed help in curl. The 'z.next_in' and 'z.avail_in'
was set to 0 (!) causing inflate() to fail with Z_BUF_ERROR.

--- CVS-latest/src/mkhelp.pl Mon Jan 05 23:54:45 2004
+++ src/mkhelp.pl Thu Jan 22 14:27:13 2004
@@ -158,8 +158,6 @@
   z.zalloc = (alloc_func)Z_NULL;
   z.zfree = (free_func)Z_NULL;
   z.opaque = 0;
- z.next_in = NULL;
- z.avail_in = 0;

   if (inflateInit2(&z, -MAX_WBITS) != Z_OK)
     return;

--------

Gisle V.

# rm /bin/laden
/bin/laden: Not found

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Received on 2004-01-22