Yang Tse
70b1cd798f
explicit value assignment for comparison result
2008-08-23 02:35:16 +00:00
Yang Tse
578f42d588
typecast constant in comparison
2008-08-23 02:04:55 +00:00
Yang Tse
9bb5da968c
Improved curl_m*printf() integral data type size and signedness handling
2008-08-22 11:11:33 +00:00
Yang Tse
f07c3171e3
cleanup the BOOL usage
2008-08-22 06:53:01 +00:00
Yang Tse
4dbfc91e2b
MSVC's __int64 data type is only available when _INTEGRAL_MAX_BITS >= 64
2008-08-21 06:58:12 +00:00
Yang Tse
afe7bb4b33
Fix a LONG_MIN and LLONG_MIN related bug in internal m*printf()
2008-08-21 01:49:19 +00:00
Yang Tse
f209a4804b
Fix one bug detected thanks to test case 557.
2008-08-21 00:12:03 +00:00
Yang Tse
5794ffe4bd
Some data type size adjustments.
2008-08-21 00:10:27 +00:00
Yang Tse
ceb49d3742
Get rid of ENABLE_64BIT symbol definition and usage.
...
Improve HAVE_LONGLONG symbol description.
2008-08-21 00:06:15 +00:00
Yang Tse
24b1890710
s/SIZEOF_CURL_OFF_T/CURL_SIZEOF_CURL_OFF_T/g
2008-08-11 01:22:57 +00:00
Daniel Stenberg
69aac49f79
made %llu work for printing unsigned long longs, added the generic curl source
...
header
2008-06-30 12:58:15 +00:00
Daniel Stenberg
2f928797cf
fix the treatment of the parameter-based precision, as in "%.*s%s" as
...
previously the second %s would wrongly get the numerical argument that is used
for the variable precision for the first %s...
2007-11-20 10:03:33 +00:00
Daniel Stenberg
ad6e28073c
removed space after if and while before the parenthesis for better source code
...
consistency
2007-11-05 09:45:09 +00:00
Gunter Knauf
3f62bfb61d
fixed a warning which MingW gcc 4.2.1.
2007-08-09 21:05:05 +00:00
Yang Tse
be8a5d0aef
proper symbol definition check for all AmigaOS flavours
2007-02-28 14:45:48 +00:00
Gisle Vanem
c514a2a89a
Removed inclusion of <sys/types.h> and <sys/stat.h> in .c-files
...
since they're already included through "setup.h".
2007-02-26 04:24:26 +00:00
Yang Tse
54db98c220
compiler warning fix
2007-02-01 01:42:13 +00:00
Daniel Stenberg
44d84ac164
Avoid typecasting a signed char to an int when using is*() functions, as that
...
could very well cause a negate number get passed in and thus cause reading
outside of the array usually used for this purpose.
We avoid this by using the uppercase macro versions introduced just now that
does some extra crazy typecasts to avoid byte codes > 127 to cause negative
int values.
2006-10-17 21:32:56 +00:00
Gisle Vanem
4f012ad703
Undefine correct symbol.
2006-07-06 13:33:56 +00:00
Gisle Vanem
c6ae0ebcbf
Cludge fix for djgpp 2.03 or older; it doesn't have snprintf() etc.
...
So avoid using x_was_used().
2006-07-05 14:23:09 +00:00
Daniel Stenberg
16bbd13af7
Diego Casorran patches to make (lib)curl build fine on Amiga again
2005-07-13 18:06:40 +00:00
Daniel Stenberg
6b1220b61d
Cory Nelson's work on nuking compiler warnings when building on x64 with
...
VS2005.
2005-04-26 13:08:49 +00:00
Dan Fandrich
1ba47e7af9
Add 'const' to immutable arrays.
2004-12-15 01:38:25 +00:00
Dan Fandrich
358e08b95d
Removed fputc() prototype since it's already in stdio.h
2004-12-14 20:17:58 +00:00
Gisle Vanem
f471a293ea
Un-do changes for WinCE; cdecl decoration is not needed.
...
Confirmed by Paul Nolan.
2004-11-08 14:20:14 +00:00
Daniel Stenberg
4cd5220d27
use ifdef not if
2004-11-02 14:02:29 +00:00
Daniel Stenberg
24d47a6e07
Paul Nolan fix to make libcurl build nicely on Windows CE
2004-11-02 10:12:22 +00:00
Daniel Stenberg
feb2dd2835
Replaced all uses of sprintf() with the safer snprintf(). It is just a
...
precaution to prevent mistakes to lead to buffer overflows.
2004-06-24 11:54:11 +00:00
Daniel Stenberg
c39858aac0
Source cleanups. The major one being that we now _always_ use a Curl_addrinfo
...
linked list for name resolved data, even on hosts/systems with only IPv4
stacks as this simplifies a lot of code.
2004-06-24 07:43:48 +00:00
Daniel Stenberg
1d7ce36791
return faster when we "hit a wall" while printfing
2004-05-12 12:05:13 +00:00
Daniel Stenberg
bbafb2eb27
curl_global_init_mem() allows the memory functions to be replaced.
...
memory.h is included everywhere for this.
2004-05-11 11:30:23 +00:00
Daniel Stenberg
a2ecdf4249
the aprintf() versions now return NULL if _any_ alloc along the way failed,
...
previously they could return a piece of the string, making it impossible
for the caller to detect errors.
2004-05-10 10:50:43 +00:00
Daniel Stenberg
4d9517f0b4
prevent warnings when using the gcc option -Wunreachable-code
2004-05-05 06:57:26 +00:00
Daniel Stenberg
f8426a2c44
stricter variable type usage
2004-03-23 15:25:54 +00:00
Daniel Stenberg
d9ffd2f544
don't use 'register'
...
make strtol() returns get stored in long variables
don't mix size_t with int
2004-03-08 11:28:14 +00:00
Daniel Stenberg
485122035c
fixed the test code to work
2004-03-01 16:22:17 +00:00
Daniel Stenberg
5eeaff8235
Support 'z' for size_t-sized integer printing, as in %zd or %zx.
2004-03-01 12:44:07 +00:00
Daniel Stenberg
d687eed33e
use %ld when printf()ing long variables (and removed use of 'register')
2004-02-26 12:32:29 +00:00
Daniel Stenberg
f9b2b7940e
disable the use of long double, we don't use it
2004-02-25 15:34:05 +00:00
Daniel Stenberg
df94c7aedc
Based on a patch by Greg Hewgill I modified how long long is used, as we
...
can use a 64bit type with MSVC that is a long long equivalent.
2004-02-25 14:15:38 +00:00
Daniel Stenberg
4bde770169
added some extra typecasts to prevent compiler warnings when converting
...
int to various types
2004-02-21 15:05:46 +00:00
Daniel Stenberg
b2e1bf7e7d
No longer support Z as a flag to print size_t, it isn't used by libcurl
...
and I doubt anyone else uses it.
Better preprocessor magic for the O flag (for curl_off_t printing) to prevent
compiler warnings.
2004-02-20 15:16:31 +00:00
Daniel Stenberg
4d17d6876e
Dan Fandrich's cleanup patch to make pedantic compiler options cause less
...
warnings. Minor edits by me.
2004-01-29 13:56:45 +00:00
Daniel Stenberg
b791e158f0
use curl_off_t instead of off_t!
2004-01-22 12:45:50 +00:00
Daniel Stenberg
b60e0fa97e
David J Meyer's large file support.
2004-01-05 22:29:29 +00:00
Daniel Stenberg
4cccceb034
snprintf() made a single-byte buffer overflow, as it could write a zero
...
outside its given buffer. Discovered and reported by James Bursa.
2003-10-26 15:37:45 +00:00
Daniel Stenberg
fb3eee5f0b
Respect HAVE_LONGLONG to support 'long long'
2003-08-19 15:37:07 +00:00
Daniel Stenberg
bbe23945e4
fix the treatment of the variable width specifier '*', which caused a bug
...
in the urlglobbing just now, fixed in the debian bug tracker as Bug#203827
2003-08-06 22:32:47 +00:00
Daniel Stenberg
308bc9d919
use CURLDEBUG instead of MALLOCDEBUG for preprocessor conditions
2003-06-26 11:22:12 +00:00
Daniel Stenberg
a7c72b7abf
removed the local variables for emacs and vim, use the new sample.emacs
...
way for emacs, and vim users should provide a similar non-polluting style
2003-01-29 10:14:20 +00:00
Daniel Stenberg
aa8b7dd336
reverted bad header replacement
2003-01-16 21:10:10 +00:00
Daniel Stenberg
f26a338a54
copyright year update in the source header
2003-01-16 21:08:12 +00:00
Daniel Stenberg
c7b03d6479
maprintf() and vmaprintf() now work better when printfing "%s" with an
...
empty string
2002-05-21 17:59:57 +00:00
Daniel Stenberg
c795123cd5
fixed a long long mistake
2002-02-18 23:32:45 +00:00
Daniel Stenberg
1dc5bf4f73
#ifndef and #define magic to prevent compiler warnings when doing #if BLA
...
where BLA is undefined
2002-01-18 12:53:05 +00:00
Daniel Stenberg
fd307bfe29
cut off a big piece of comment and added a pointer to the Trio web page
...
should anyone ever want a good printf() clone
2002-01-18 10:45:03 +00:00
Daniel Stenberg
dccc77a325
Eric Lavigne updates
2001-11-27 07:27:32 +00:00
Daniel Stenberg
05f3ca880f
made CURLOPT_HTTPPROXYTUNNEL work for plain HTTP as well
2001-11-12 14:08:41 +00:00
Daniel Stenberg
a18d41a463
include setup.h
2001-11-12 10:19:36 +00:00
Sterling Hughes
8e91d5de8e
looks nicer and is better compatible with older vim versions
2001-10-11 09:32:19 +00:00
Sterling Hughes
6147879837
Added formatting sections for emacs and vim
2001-09-07 04:01:32 +00:00
Daniel Stenberg
aace68c91b
extern declarations no longer done on windows (T. Bharath's patch)
2001-08-24 07:39:15 +00:00
Daniel Stenberg
95e7e551f6
added const char * => char * typecast
2001-08-14 08:32:03 +00:00
Daniel Stenberg
f35b6e90f5
corrected dubious use of the same variable twice in a function call,
...
gcc 3.0 warned about it
2001-08-14 06:06:15 +00:00
Daniel Stenberg
6403257886
renamed Curl_ to curl_ for the printf() prefixes
2001-01-05 12:19:42 +00:00
Daniel Stenberg
4031104404
Internal symbols that aren't static are now prefixed with 'Curl_'
2001-01-05 10:11:41 +00:00
Daniel Stenberg
ed8dbf4ac2
updated license text in headers
2001-01-04 12:27:04 +00:00
Daniel Stenberg
56ac132401
removed the storenonprintable function as it isn't used anymore
2000-11-21 13:18:30 +00:00
Daniel Stenberg
5a07305dc8
not printf()ing %s normally for character that weren't isprint() made things
...
go weird, had to remove this. I should use trio soon for all the *printf()
stuff as this is too broken
2000-11-15 15:36:41 +00:00
Daniel Stenberg
0f8facb49b
added memory debugging include file
2000-10-09 11:12:34 +00:00
Daniel Stenberg
ae1912cb0d
Initial revision
1999-12-29 14:20:26 +00:00