mirror of
https://github.com/curl/curl.git
synced 2026-07-24 20:27:18 +03:00
CURL_DOES_CONVERSIONS: cleanup
Massively reduce #ifdefs all over (23 #ifdef lines less so far) Moved conversion-specific code to non-ascii.c
This commit is contained in:
parent
eb65a49bef
commit
c828646f60
25 changed files with 469 additions and 420 deletions
|
|
@ -33,6 +33,7 @@
|
|||
#include "select.h"
|
||||
#include "rawstr.h"
|
||||
#include "progress.h"
|
||||
#include "non-ascii.h"
|
||||
|
||||
#define _MPRINTF_REPLACE /* use our functions only */
|
||||
#include <curl/mprintf.h>
|
||||
|
|
@ -315,14 +316,12 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
|
|||
char letter;
|
||||
int writetype;
|
||||
|
||||
#ifdef CURL_DOES_CONVERSIONS
|
||||
/* convert from the network encoding */
|
||||
result = Curl_convert_from_network(data, line_start,
|
||||
perline);
|
||||
/* Curl_convert_from_network calls failf if unsuccessful */
|
||||
if(result)
|
||||
return result;
|
||||
#endif /* CURL_DOES_CONVERSIONS */
|
||||
|
||||
/* output debug if that is requested */
|
||||
if(data->set.verbose)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue