mail.h | mail.h | |||
---|---|---|---|---|
skipping to change at line 26 | skipping to change at line 26 | |||
* | * | |||
* Author: Mark Crispin | * Author: Mark Crispin | |||
* Networks and Distributed Computing | * Networks and Distributed Computing | |||
* Computing & Communications | * Computing & Communications | |||
* University of Washington | * University of Washington | |||
* Administration Building, AG-44 | * Administration Building, AG-44 | |||
* Seattle, WA 98195 | * Seattle, WA 98195 | |||
* Internet: MRC@CAC.Washington.EDU | * Internet: MRC@CAC.Washington.EDU | |||
* | * | |||
* Date: 22 November 1989 | * Date: 22 November 1989 | |||
* Last Edited: 19 January 2007 | * Last Edited: 30 January 2007 | |||
*/ | */ | |||
/* Build parameters */ | /* Build parameters */ | |||
#define CACHEINCREMENT 250 /* cache growth increments */ | #define CACHEINCREMENT 250 /* cache growth increments */ | |||
#define MAILTMPLEN 1024 /* size of a temporary buffer */ | #define MAILTMPLEN 1024 /* size of a temporary buffer */ | |||
#define SENDBUFLEN 16385 /* size of temporary sending buffer, also | #define SENDBUFLEN 16385 /* size of temporary sending buffer, also | |||
* used for SMTP commands and NETMBX generat ion | * used for SMTP commands and NETMBX generat ion | |||
* buffer so shouldn't be made smaller than | * buffer so shouldn't be made smaller than | |||
* MAILTMPLEN. Note that there's a guard by te, | * MAILTMPLEN. Note that there's a guard by te, | |||
* so this is actually len+1. */ | * so this is actually len+1. */ | |||
skipping to change at line 1622 | skipping to change at line 1622 | |||
long mail_search_body (MAILSTREAM *stream,unsigned long msgno,BODY *body, | long mail_search_body (MAILSTREAM *stream,unsigned long msgno,BODY *body, | |||
char *prefix,unsigned long section,long flags); | char *prefix,unsigned long section,long flags); | |||
long mail_search_string (SIZEDTEXT *s,char *charset,STRINGLIST **st); | long mail_search_string (SIZEDTEXT *s,char *charset,STRINGLIST **st); | |||
long mail_search_string_work (SIZEDTEXT *s,STRINGLIST **st); | long mail_search_string_work (SIZEDTEXT *s,STRINGLIST **st); | |||
long mail_search_keyword (MAILSTREAM *stream,MESSAGECACHE *elt,STRINGLIST * st, | long mail_search_keyword (MAILSTREAM *stream,MESSAGECACHE *elt,STRINGLIST * st, | |||
long flag); | long flag); | |||
long mail_search_addr (ADDRESS *adr,STRINGLIST *st); | long mail_search_addr (ADDRESS *adr,STRINGLIST *st); | |||
char *mail_search_gets (readfn_t f,void *stream,unsigned long size, | char *mail_search_gets (readfn_t f,void *stream,unsigned long size, | |||
GETS_DATA *md); | GETS_DATA *md); | |||
SEARCHPGM *mail_criteria (char *criteria); | SEARCHPGM *mail_criteria (char *criteria); | |||
int mail_criteria_date (unsigned short *date); | int mail_criteria_date (unsigned short *date,char **r); | |||
int mail_criteria_string (STRINGLIST **s); | int mail_criteria_string (STRINGLIST **s,char **r); | |||
unsigned short mail_shortdate (unsigned int year,unsigned int month, | unsigned short mail_shortdate (unsigned int year,unsigned int month, | |||
unsigned int day); | unsigned int day); | |||
SEARCHSET *mail_parse_set (char *s,char **ret); | SEARCHSET *mail_parse_set (char *s,char **ret); | |||
SEARCHSET *mail_append_set (SEARCHSET *set,unsigned long msgno); | SEARCHSET *mail_append_set (SEARCHSET *set,unsigned long msgno); | |||
unsigned long *mail_sort (MAILSTREAM *stream,char *charset,SEARCHPGM *spg, | unsigned long *mail_sort (MAILSTREAM *stream,char *charset,SEARCHPGM *spg, | |||
SORTPGM *pgm,long flags); | SORTPGM *pgm,long flags); | |||
unsigned long *mail_sort_cache (MAILSTREAM *stream,SORTPGM *pgm,SORTCACHE * *sc, | unsigned long *mail_sort_cache (MAILSTREAM *stream,SORTPGM *pgm,SORTCACHE * *sc, | |||
long flags); | long flags); | |||
unsigned long *mail_sort_msgs (MAILSTREAM *stream,char *charset,SEARCHPGM * spg, | unsigned long *mail_sort_msgs (MAILSTREAM *stream,char *charset,SEARCHPGM * spg, | |||
SORTPGM *pgm,long flags); | SORTPGM *pgm,long flags); | |||
End of changes. 2 change blocks. | ||||
3 lines changed or deleted | 3 lines changed or added | |||
tcp.h | tcp.h | |||
---|---|---|---|---|
/* ======================================================================== | /* ======================================================================== | |||
* Copyright 1988-2006 University of Washington | * Copyright 1988-2007 University of Washington | |||
* | * | |||
* Licensed under the Apache License, Version 2.0 (the "License"); | * Licensed under the Apache License, Version 2.0 (the "License"); | |||
* you may not use this file except in compliance with the License. | * you may not use this file except in compliance with the License. | |||
* You may obtain a copy of the License at | * You may obtain a copy of the License at | |||
* | * | |||
* http://www.apache.org/licenses/LICENSE-2.0 | * http://www.apache.org/licenses/LICENSE-2.0 | |||
* | * | |||
* | * | |||
* ======================================================================== | * ======================================================================== | |||
*/ | */ | |||
skipping to change at line 26 | skipping to change at line 26 | |||
* | * | |||
* Author: Mark Crispin | * Author: Mark Crispin | |||
* Networks and Distributed Computing | * Networks and Distributed Computing | |||
* Computing & Communications | * Computing & Communications | |||
* University of Washington | * University of Washington | |||
* Administration Building, AG-44 | * Administration Building, AG-44 | |||
* Seattle, WA 98195 | * Seattle, WA 98195 | |||
* Internet: MRC@CAC.Washington.EDU | * Internet: MRC@CAC.Washington.EDU | |||
* | * | |||
* Date: 1 August 1988 | * Date: 1 August 1988 | |||
* Last Edited: 30 August 2006 | * Last Edited: 31 January 2007 | |||
*/ | */ | |||
/* Dummy definition overridden by TCP routines */ | /* Dummy definition overridden by TCP routines */ | |||
#ifndef TCPSTREAM | #ifndef TCPSTREAM | |||
#define TCPSTREAM void | #define TCPSTREAM void | |||
#endif | #endif | |||
/* Function prototypes */ | /* Function prototypes */ | |||
skipping to change at line 57 | skipping to change at line 57 | |||
char *tcp_remotehost (TCPSTREAM *stream); | char *tcp_remotehost (TCPSTREAM *stream); | |||
unsigned long tcp_port (TCPSTREAM *stream); | unsigned long tcp_port (TCPSTREAM *stream); | |||
char *tcp_localhost (TCPSTREAM *stream); | char *tcp_localhost (TCPSTREAM *stream); | |||
char *tcp_clientaddr (void); | char *tcp_clientaddr (void); | |||
char *tcp_clienthost (void); | char *tcp_clienthost (void); | |||
long tcp_clientport (void); | long tcp_clientport (void); | |||
char *tcp_serveraddr (void); | char *tcp_serveraddr (void); | |||
char *tcp_serverhost (void); | char *tcp_serverhost (void); | |||
long tcp_serverport (void); | long tcp_serverport (void); | |||
char *tcp_canonical (char *name); | char *tcp_canonical (char *name); | |||
long tcp_isclienthost (char *host); | ||||
End of changes. 3 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||
utf8.h | utf8.h | |||
---|---|---|---|---|
/* ======================================================================== | /* ======================================================================== | |||
* Copyright 1988-2006 University of Washington | * Copyright 1988-2007 University of Washington | |||
* | * | |||
* Licensed under the Apache License, Version 2.0 (the "License"); | * Licensed under the Apache License, Version 2.0 (the "License"); | |||
* you may not use this file except in compliance with the License. | * you may not use this file except in compliance with the License. | |||
* You may obtain a copy of the License at | * You may obtain a copy of the License at | |||
* | * | |||
* http://www.apache.org/licenses/LICENSE-2.0 | * http://www.apache.org/licenses/LICENSE-2.0 | |||
* | * | |||
* | * | |||
* ======================================================================== | * ======================================================================== | |||
*/ | */ | |||
skipping to change at line 26 | skipping to change at line 26 | |||
* | * | |||
* Author: Mark Crispin | * Author: Mark Crispin | |||
* Networks and Distributed Computing | * Networks and Distributed Computing | |||
* Computing & Communications | * Computing & Communications | |||
* University of Washington | * University of Washington | |||
* Administration Building, AG-44 | * Administration Building, AG-44 | |||
* Seattle, WA 98195 | * Seattle, WA 98195 | |||
* Internet: MRC@CAC.Washington.EDU | * Internet: MRC@CAC.Washington.EDU | |||
* | * | |||
* Date: 11 June 1997 | * Date: 11 June 1997 | |||
* Last Edited: 6 December 2006 | * Last Edited: 1 March 2007 | |||
*/ | */ | |||
/* UTF-8 size and conversion routines from UCS-2 values (thus in the BMP). | /* UTF-8 size and conversion routines from UCS-2 values (thus in the BMP). | |||
* Don't use these if UTF-16 data (surrogate pairs) are an issue. | * Don't use these if UTF-16 data (surrogate pairs) are an issue. | |||
* For UCS-4 values, use the utf8_size() and utf8_put() functions. | * For UCS-4 values, use the utf8_size() and utf8_put() functions. | |||
*/ | */ | |||
#define UTF8_SIZE_BMP(c) ((c & 0xff80) ? ((c & 0xf800) ? 3 : 2) : 1) | #define UTF8_SIZE_BMP(c) ((c & 0xff80) ? ((c & 0xf800) ? 3 : 2) : 1) | |||
#define UTF8_PUT_BMP(b,c) { \ | #define UTF8_PUT_BMP(b,c) { \ | |||
if (c & 0xff80) { /* non-ASCII? */ \ | if (c & 0xff80) { /* non-ASCII? */ \ | |||
skipping to change at line 74 | skipping to change at line 74 | |||
#define U8G_ENDSTRG U8G_ERROR+4 /* end of string */ | #define U8G_ENDSTRG U8G_ERROR+4 /* end of string */ | |||
#define U8G_ENDSTRI U8G_ERROR+5 /* end of string w/ incomplete UTF-8 char */ | #define U8G_ENDSTRI U8G_ERROR+5 /* end of string w/ incomplete UTF-8 char */ | |||
/* ucs4_width() return values */ | /* ucs4_width() return values */ | |||
#define U4W_ERROR 0x80000000 /* error flags */ | #define U4W_ERROR 0x80000000 /* error flags */ | |||
#define U4W_NOTUNCD U4W_ERROR+1 /* not a Unicode char */ | #define U4W_NOTUNCD U4W_ERROR+1 /* not a Unicode char */ | |||
#define U4W_PRIVATE U4W_ERROR+2 /* private-space plane */ | #define U4W_PRIVATE U4W_ERROR+2 /* private-space plane */ | |||
#define U4W_SSPCHAR U4W_ERROR+3 /* Supplementary Special-purpose Pla ne */ | #define U4W_SSPCHAR U4W_ERROR+3 /* Supplementary Special-purpose Pla ne */ | |||
#define U4W_UNASSGN U4W_ERROR+4 /* unassigned space plane */ | #define U4W_UNASSGN U4W_ERROR+4 /* unassigned space plane */ | |||
#define U4W_CTLSRGT U4W_ERROR+5 /* C0/C1 control or surrogate */ | #define U4W_CONTROL U4W_ERROR+5 /* C0/C1 control */ | |||
#define U4W_CTLSRGT U4W_CONTROL /* in case legacy code references th | ||||
is */ | ||||
/* ISO-2022 engine states */ | /* ISO-2022 engine states */ | |||
#define I2S_CHAR 0 /* character */ | #define I2S_CHAR 0 /* character */ | |||
#define I2S_ESC 1 /* previous character was ESC */ | #define I2S_ESC 1 /* previous character was ESC */ | |||
#define I2S_MUL 2 /* previous character was multi-byte code */ | #define I2S_MUL 2 /* previous character was multi-byte code */ | |||
#define I2S_INT 3 /* previous character was intermediate */ | #define I2S_INT 3 /* previous character was intermediate */ | |||
/* ISO-2022 Gn selections */ | /* ISO-2022 Gn selections */ | |||
#define I2C_G0 0 /* G0 */ | #define I2C_G0 0 /* G0 */ | |||
skipping to change at line 322 | skipping to change at line 323 | |||
#define EUC_CS2 0x8e /* single shift CS2 */ | #define EUC_CS2 0x8e /* single shift CS2 */ | |||
#define EUC_CS3 0x8f /* single shift CS3 */ | #define EUC_CS3 0x8f /* single shift CS3 */ | |||
#define BITS7 0x7f /* 7-bit value mask */ | #define BITS7 0x7f /* 7-bit value mask */ | |||
#define BIT8 0x80 /* 8th bit mask */ | #define BIT8 0x80 /* 8th bit mask */ | |||
/* The following saves us from having to have yet more charset tables */ | /* The following saves us from having to have yet more charset tables */ | |||
/* Unicode codepoints */ | /* Unicode codepoints */ | |||
#define UCS2_C0CONTROL 0x00 /* first C0 control */ | ||||
#define UCS2_C0CONTROLEND 0x1F /* last C0 control */ | ||||
#define UCS2_C1CONTROL 0x80 /* first C1 control */ | ||||
#define UCS2_C1CONTROLEND 0x9F /* last C1 control */ | ||||
/* ISO 646 substituted Unicode codepoints */ | /* ISO 646 substituted Unicode codepoints */ | |||
#define UCS2_POUNDSTERLING 0x00a3 | #define UCS2_POUNDSTERLING 0x00a3 | |||
#define UCS2_YEN 0x00a5 | #define UCS2_YEN 0x00a5 | |||
#define UCS2_OVERLINE 0x203e | #define UCS2_OVERLINE 0x203e | |||
#define UCS2_EURO 0x20ac | #define UCS2_EURO 0x20ac | |||
#define UCS2_KATAKANA 0xff61 /* first katakana codepoint */ | #define UCS2_KATAKANA 0xff61 /* first katakana codepoint */ | |||
#define UCS2_BOM 0xfeff /* byte order mark */ | #define UCS2_BOM 0xfeff /* byte order mark */ | |||
#define UCS2_BOGON 0xfffd /* replacement character */ | #define UCS2_BOGON 0xfffd /* replacement character */ | |||
#define UCS4_BMPBASE 0x0000 /* Basic Multilingual Plane */ | #define UCS4_BMPBASE 0x0000 /* Basic Multilingual Plane */ | |||
#define UCS4_SMPBASE 0x10000 /* Supplementary Multilinugual Plane */ | #define UCS4_SMPBASE 0x10000 /* Supplementary Multilinugual Plane */ | |||
#define UCS4_SIPBASE 0x20000 /* Supplementary Ideographic Plane */ | #define UCS4_SIPBASE 0x20000 /* Supplementary Ideographic Plane */ | |||
/* EastAsianWidth says plane 3 is wide */ | ||||
#define UCS4_UNABASE 0x40000 /* unassigned space */ | ||||
#define UCS4_SSPBASE 0xe0000 /* Supplementary Special-purpose Plane */ | #define UCS4_SSPBASE 0xe0000 /* Supplementary Special-purpose Plane */ | |||
#define UCS4_PVTBASE 0xf0000 /* private-space (two planes) */ | #define UCS4_PVTBASE 0xf0000 /* private-space (two planes) */ | |||
#define UCS4_MAXUNICODE 0x10ffff/* highest Unicode codepoint */ | #define UCS4_MAXUNICODE 0x10ffff/* highest Unicode codepoint */ | |||
#define UTF16_SURR 0xd800 /* UTF-16 surrogate area */ | ||||
#define UTF16_SURRH 0xd800 /* UTF-16 first high surrogate */ | ||||
#define UTF16_SURRHEND 0xdbff /* UTF-16 last high surrogate */ | ||||
#define UTF16_SURRL 0xdc00 /* UTF-16 first low surrogate */ | ||||
#define UTF16_SURRLEND 0xdfff /* UTF-16 last low surrogate */ | ||||
#define UTF16_MAXSURR 0xdfff /* end of UTF-16 surrogates */ | ||||
/* UBOGON is used to represent a codepoint in a character set which does n ot | /* UBOGON is used to represent a codepoint in a character set which does n ot | |||
* map to Unicode. It is also used for mapping failures, e.g. incomplete | * map to Unicode. It is also used for mapping failures, e.g. incomplete | |||
* shift sequences. NOCHAR is used to represent a codepoint in Unicode | * shift sequences. NOCHAR is used to represent a codepoint in Unicode | |||
* which does not map to the target character set. Note that these names | * which does not map to the target character set. Note that these names | |||
* have the same text width as 0x????, for convenience in the mapping table s. | * have the same text width as 0x????, for convenience in the mapping table s. | |||
*/ | */ | |||
#define UBOGON UCS2_BOGON | #define UBOGON UCS2_BOGON | |||
#define NOCHAR 0xffff | #define NOCHAR 0xffff | |||
/* Non-Unicode codepoints */ | /* Non-Unicode codepoints */ | |||
End of changes. 6 change blocks. | ||||
3 lines changed or deleted | 19 lines changed or added | |||