disable cookies: remove ifdefs, move code
authorDaniel Stenberg <daniel@haxx.se>
Mon, 4 Apr 2011 13:46:42 +0000 (15:46 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 4 Apr 2011 17:27:26 +0000 (19:27 +0200)
commit9d1e914a56e8a4030d8917875eaedaddf5cff97c
tree103f73104c796dd3000b7063623d20a256601d6a
parentd3408d05935e61a303b5761cc5aa029eb54408f8
disable cookies: remove ifdefs, move code

1 - make sure to #define macros for cookie functions in the cookie
header when cookies are disabled to avoid having to use #ifdefs in code
using those functions.

2 - move cookie-specific code to cookie.c and use the functio
conditionally as mentioned in (1).

net result: 6 #if lines removed, and 9 lines of code less
lib/cookie.c
lib/cookie.h
lib/easy.c
lib/share.c
lib/url.c