~ubuntu-branches/ubuntu/raring/curl/raring-updates

« back to all changes in this revision

Viewing changes to lib/http_chunks.c

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2011-11-13 21:07:32 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 55.
  • Revision ID: package-import@ubuntu.com-20111113210732-bk5n25x2tu7aplur
Tags: upstream-7.22.0
ImportĀ upstreamĀ versionĀ 7.22.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 * KIND, either express or implied.
20
20
 *
21
21
 ***************************************************************************/
 
22
 
22
23
#include "setup.h"
23
24
 
24
25
#ifndef CURL_DISABLE_HTTP
25
 
/* -- WIN32 approved -- */
26
 
#include <stdio.h>
27
 
#include <string.h>
28
 
#include <stdarg.h>
29
 
#include <stdlib.h>
30
 
#include <ctype.h>
31
26
 
32
27
#include "urldata.h" /* it includes http_chunks.h */
33
28
#include "sendf.h"   /* for the client write stuff */
84
79
 We avoid the use of isxdigit to accommodate non-ASCII hosts. */
85
80
static bool Curl_isxdigit(char digit)
86
81
{
87
 
  return (bool)( (digit >= 0x30 && digit <= 0x39)    /* 0-9 */
88
 
              || (digit >= 0x41 && digit <= 0x46)    /* A-F */
89
 
              || (digit >= 0x61 && digit <= 0x66) ); /* a-f */
 
82
  return ( (digit >= 0x30 && digit <= 0x39) /* 0-9 */
 
83
        || (digit >= 0x41 && digit <= 0x46) /* A-F */
 
84
        || (digit >= 0x61 && digit <= 0x66) /* a-f */ ) ? TRUE : FALSE;
90
85
}
91
86
 
92
87
void Curl_httpchunk_init(struct connectdata *conn)