2003-07-20 13:41:17 +00:00
|
|
|
/*
|
2005-01-29 07:21:44 +00:00
|
|
|
* "$Id$"
|
2003-07-20 13:41:17 +00:00
|
|
|
*
|
2004-05-02 16:04:40 +00:00
|
|
|
* Configuration file for Mini-XML, a small XML-like file parsing library.
|
2003-07-20 13:41:17 +00:00
|
|
|
*
|
2007-04-18 13:14:10 +00:00
|
|
|
* Copyright 2003-2007 by Michael Sweet.
|
2003-07-20 13:41:17 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
2003-07-27 23:11:40 +00:00
|
|
|
/*
|
|
|
|
* Include necessary headers...
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
2003-09-28 12:44:39 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
|
|
|
|
|
2004-05-02 16:04:40 +00:00
|
|
|
/*
|
|
|
|
* Version number...
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define MXML_VERSION ""
|
|
|
|
|
|
|
|
|
2003-09-28 12:44:39 +00:00
|
|
|
/*
|
2007-04-18 13:14:10 +00:00
|
|
|
* Do we have the snprintf() and vsnprintf() functions?
|
2003-09-28 12:44:39 +00:00
|
|
|
*/
|
|
|
|
|
2007-04-18 13:14:10 +00:00
|
|
|
#undef HAVE_SNPRINTF
|
2003-09-28 12:44:39 +00:00
|
|
|
#undef HAVE_VSNPRINTF
|
2003-07-27 23:11:40 +00:00
|
|
|
|
|
|
|
|
2003-07-20 13:41:17 +00:00
|
|
|
/*
|
|
|
|
* Do we have the strXXX() functions?
|
|
|
|
*/
|
|
|
|
|
|
|
|
#undef HAVE_STRDUP
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Define prototypes for string functions as needed...
|
|
|
|
*/
|
|
|
|
|
|
|
|
# ifndef HAVE_STRDUP
|
2005-10-13 18:27:00 +00:00
|
|
|
extern char *_mxml_strdup(const char *);
|
|
|
|
# define strdup _mxml_strdup
|
2003-07-20 13:41:17 +00:00
|
|
|
# endif /* !HAVE_STRDUP */
|
|
|
|
|
2005-10-13 18:27:00 +00:00
|
|
|
extern char *_mxml_strdupf(const char *, ...);
|
|
|
|
extern char *_mxml_vstrdupf(const char *, va_list);
|
2003-09-28 12:44:39 +00:00
|
|
|
|
2007-04-18 13:14:10 +00:00
|
|
|
# ifndef HAVE_SNPRINTF
|
|
|
|
extern int _mxml_snprintf(char *, size_t, const char *, ...);
|
|
|
|
# define snprintf _mxml_snprintf
|
|
|
|
# endif /* !HAVE_SNPRINTF */
|
|
|
|
|
2003-09-28 12:44:39 +00:00
|
|
|
# ifndef HAVE_VSNPRINTF
|
2005-10-13 18:27:00 +00:00
|
|
|
extern int _mxml_vsnprintf(char *, size_t, const char *, va_list);
|
|
|
|
# define vsnprintf _mxml_vsnprintf
|
2003-09-28 12:44:39 +00:00
|
|
|
# endif /* !HAVE_VSNPRINTF */
|
2003-07-20 13:41:17 +00:00
|
|
|
|
|
|
|
/*
|
2005-01-29 07:21:44 +00:00
|
|
|
* End of "$Id$".
|
2003-07-20 13:41:17 +00:00
|
|
|
*/
|