diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2001-04-02 01:02:30 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2001-04-02 01:02:30 -0400 |
commit | 8c68f693cc82e6650afff52fe478c0ccde4bc015 (patch) | |
tree | 395cb6842d38654cda008ac0524564f59d959392 /WWW/Library/Implementation/HTMIME.c | |
parent | 4bb52da7b05bb0a4331325010be89a0c630f671c (diff) | |
download | lynx-snapshots-8c68f693cc82e6650afff52fe478c0ccde4bc015.tar.gz |
snapshot of project "lynx", label v2-8-4dev_20
Diffstat (limited to 'WWW/Library/Implementation/HTMIME.c')
-rw-r--r-- | WWW/Library/Implementation/HTMIME.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/WWW/Library/Implementation/HTMIME.c b/WWW/Library/Implementation/HTMIME.c index c0b0e89b..2d0fb371 100644 --- a/WWW/Library/Implementation/HTMIME.c +++ b/WWW/Library/Implementation/HTMIME.c @@ -100,12 +100,12 @@ typedef enum _MIME_state { miJUNK_LINE, /* Ignore the rest of this folded line */ miNEWLINE, /* Just found a LF .. maybe continuation */ miCHECK, /* check against check_pointer */ - MIME_NET_ASCII, /* Translate from net ascii */ + MIME_NET_ASCII, /* Translate from net ascii */ MIME_IGNORE /* Ignore entire file */ /* TRANSPARENT and IGNORE are defined as stg else in _WINDOWS */ } MIME_state; -#define VALUE_SIZE 5120 /* @@@@@@@ Arbitrary? */ +#define VALUE_SIZE 5120 /* @@@@@@@ Arbitrary? */ struct _HTStream { CONST HTStreamClass * isa; @@ -122,7 +122,7 @@ struct _HTStream { char * value_pointer; /* storing values */ char value[VALUE_SIZE]; - HTParentAnchor * anchor; /* Given on creation */ + HTParentAnchor * anchor; /* Given on creation */ HTStream * sink; /* Given on creation */ char * boundary; /* For multipart */ @@ -132,8 +132,8 @@ struct _HTStream { HTFormat encoding; /* Content-Transfer-Encoding */ char * compression_encoding; - HTFormat format; /* Content-Type */ - HTStream * target; /* While writing out */ + HTFormat format; /* Content-Type */ + HTStream * target; /* While writing out */ HTStreamClass targetClass; HTAtom * targetRep; /* Converting into? */ @@ -147,7 +147,7 @@ struct _HTStream { ** first and last characters are double-quotes. - FM */ PUBLIC void HTMIME_TrimDoubleQuotes ARGS1( - char *, value) + char *, value) { int i; char *cp = value; @@ -1187,7 +1187,7 @@ PRIVATE void HTMIME_put_character ARGS2( } /* switch on character */ break; - case miCON: /* Check for 'n' or 't' */ + case miCON: /* Check for 'n' or 't' */ switch (c) { case 'n': case 'N': @@ -1707,7 +1707,7 @@ PRIVATE void HTMIME_put_character ARGS2( case miGET_VALUE: GET_VALUE: - if (c != '\n') { /* Not end of line */ + if (c != '\n') { /* Not end of line */ if (me->value_pointer < me->value + VALUE_SIZE - 1) { *me->value_pointer++ = c; break; @@ -1732,7 +1732,7 @@ PRIVATE void HTMIME_put_character ARGS2( value_too_long: CTRACE((tfp, "HTMIME: *** Syntax error. (string too long)\n")); -bad_field_name: /* Ignore it */ +bad_field_name: /* Ignore it */ me->state = miJUNK_LINE; return; @@ -1841,7 +1841,7 @@ PUBLIC HTStream* HTMIMEConvert ARGS3( { HTStream* me; - me = (HTStream *)calloc(1, sizeof(*me)); + me = typecalloc(HTStream); if (me == NULL) outofmem(__FILE__, "HTMIMEConvert"); me->isa = &HTMIME; @@ -1983,8 +1983,8 @@ PRIVATE char HTmmquote[] = "0123456789ABCDEF"; PRIVATE int HTmmcont = 0; PUBLIC void HTmmdec_base64 ARGS2( - char *, t, - char *, s) + char *, t, + char *, s) { int d, count, j, val; char buf[LINE_LENGTH], *bp, nw[4], *p; @@ -2022,8 +2022,8 @@ PUBLIC void HTmmdec_base64 ARGS2( } PUBLIC void HTmmdec_quote ARGS2( - char *, t, - char *, s) + char *, t, + char *, s) { char buf[LINE_LENGTH], cval, *bp, *p; @@ -2059,8 +2059,8 @@ PUBLIC void HTmmdec_quote ARGS2( ** HTmmdecode for ISO-2022-JP - FM */ PUBLIC void HTmmdecode ARGS2( - char *, trg, - char *, str) + char *, trg, + char *, str) { char buf[LINE_LENGTH], mmbuf[LINE_LENGTH]; char *s, *t, *u; @@ -2124,8 +2124,8 @@ end: ** (The author of this function "rjis" is S. Ichikawa.) */ PUBLIC int HTrjis ARGS2( - char *, t, - char *, s) + char *, t, + char *, s) { char *p, buf[LINE_LENGTH]; int kanji = 0; |