00001 /* 00002 * $Id$ 00003 * 00004 * MiniMIME - a library for handling MIME messages 00005 * 00006 * Copyright (C) 2003 Jann Fischer <rezine@mistrust.net> 00007 * All rights reserved. 00008 * 00009 * Redistribution and use in source and binary forms, with or without 00010 * modification, are permitted provided that the following conditions 00011 * are met: 00012 * 00013 * 1. Redistributions of source code must retain the above copyright 00014 * notice, this list of conditions and the following disclaimer. 00015 * 2. Redistributions in binary form must reproduce the above copyright 00016 * notice, this list of conditions and the following disclaimer in the 00017 * documentation and/or other materials provided with the distribution. 00018 * 3. Neither the name of the author nor the names of the contributors 00019 * may be used to endorse or promote products derived from this software 00020 * without specific prior written permission. 00021 * 00022 * THIS SOFTWARE IS PROVIDED BY JANN FISCHER AND CONTRIBUTORS ``AS IS'' AND 00023 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00024 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00025 * ARE DISCLAIMED. IN NO EVENT SHALL JANN FISCHER OR THE VOICES IN HIS HEAD 00026 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00027 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00028 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00029 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00030 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00031 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 00032 * THE POSSIBILITY OF SUCH DAMAGE. 00033 */ 00034 00038 #ifndef _MM_INTERNAL_H_INCLUDED 00039 #define _MM_INTERNAL_H_INCLUDED 00040 00041 #include "mm.h" 00042 00043 #define debugp(m, ...) do { \ 00044 fprintf(stderr, "%s:%d:: ", __FILE__, __LINE__); \ 00045 fprintf(stderr, m, ## __VA_ARGS__); \ 00046 fprintf(stderr, "\n"); \ 00047 fflush(stderr); \ 00048 } while (0); 00049 00054 #ifndef __HAVE_LEAK_DETECTION 00055 void *xmalloc(size_t); 00056 void *xrealloc(void *, size_t); 00057 void xfree(void *); 00058 char *xstrdup(const char *); 00059 #endif 00060 00061 char *xstrsep(char **, const char *); 00062 00063 /* THIS FILE IS INTENTIONALLY LEFT BLANK */ 00064 00065 #endif /* ! _MM_INTERNAL_H_INCLUDED */