Mercurial > dovecot > core-2.2
view src/lib/lib.h @ 896:21ffcce83c70 HEAD
Rewrote rfc822-tokenize.c to work one token at a time so it won't uselessly
take memory, maybe also a bit faster. This caused pretty large changes all
around.
Also moved all string (un)escaping code to lib/strescape.c.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 03 Jan 2003 17:57:12 +0200 |
parents | 41ec8cadd238 |
children | fd8888f6f037 |
line wrap: on
line source
#ifndef __LIB_H #define __LIB_H /* default lib includes */ #ifdef HAVE_CONFIG_H # include "../../config.h" #endif /* default system includes - keep these at minimum.. */ #include <string.h> /* strcmp() etc. */ #include <stdarg.h> /* va_list is used everywhere */ #include <limits.h> /* INT_MAX, etc. */ #include <errno.h> /* error checking is good */ #include <sys/types.h> /* many other includes want this */ #ifdef HAVE_STDINT_H # include <stdint.h> /* C99 int types, we mostly need uintmax_t */ #endif typedef struct _IOLoop *IOLoop; typedef struct _IO *IO; typedef struct _Timeout *Timeout; typedef struct _IPADDR IPADDR; typedef struct _IStream IStream; typedef struct _OStream OStream; typedef struct _Buffer Buffer; typedef struct _Buffer String; #include "compat.h" #include "macros.h" #include "failures.h" #include "data-stack.h" #include "mempool.h" #include "imem.h" #include "strfuncs.h" size_t nearest_power(size_t num); void lib_init(void); void lib_deinit(void); #endif