Subversion Repositories tpanel

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 andreas 1
/* config.h.  Generated from config.h.in by configure.  */
2
/*
3
 * Configuration file for Mini-XML, a small XML file parsing library.
4
 *
5
 * https://www.msweet.org/mxml
6
 *
7
 * Copyright © 2003-2020 by Michael R Sweet.
8
 *
9
 * Licensed under Apache License v2.0.  See the file "LICENSE" for more
10
 * information.
11
 */
12
 
13
/*
14
 * Include necessary headers...
15
 */
16
 
17
#include <stdio.h>
18
#include <stdlib.h>
19
#include <string.h>
20
#include <stdarg.h>
21
#include <ctype.h>
22
 
23
 
24
/*
25
 * Version number...
26
 */
27
 
28
#define MXML_VERSION "Mini-XML v3.2"
29
 
30
 
31
/*
32
 * Inline function support...
33
 */
34
 
35
#define inline
36
 
37
 
38
/*
39
 * Long long support...
40
 */
41
 
42
#define HAVE_LONG_LONG 1
43
 
44
 
45
/*
46
 * Do we have the *printf() functions?
47
 */
48
 
49
#define HAVE_SNPRINTF 1
50
#define HAVE_VASPRINTF 1
51
#define HAVE_VSNPRINTF 1
52
 
53
 
54
/*
55
 * Do we have the strXXX() functions?
56
 */
57
 
58
#define HAVE_STRDUP 1
59
/* #undef HAVE_STRLCAT */
60
/* #undef HAVE_STRLCPY */
61
 
62
 
63
/*
64
 * Do we have threading support?
65
 */
66
 
67
#define HAVE_PTHREAD_H 1
68
 
69
 
70
/*
71
 * Define prototypes for string functions as needed...
72
 */
73
 
74
#  ifndef HAVE_STRDUP
75
extern char	*_mxml_strdup(const char *);
76
#    define strdup _mxml_strdup
77
#  endif /* !HAVE_STRDUP */
78
 
79
#  ifndef HAVE_STRLCAT
80
extern size_t	_mxml_strlcat(char *, const char *, size_t);
81
#    define strlcat _mxml_strlcat
82
#  endif /* !HAVE_STRLCAT */
83
 
84
#  ifndef HAVE_STRLCPY
85
extern size_t	_mxml_strlcpy(char *, const char *, size_t);
86
#    define strlcpy _mxml_strlcpy
87
#  endif /* !HAVE_STRLCPY */
88
 
89
extern char	*_mxml_strdupf(const char *, ...);
90
extern char	*_mxml_vstrdupf(const char *, va_list);
91
 
92
#  ifndef HAVE_SNPRINTF
93
extern int	_mxml_snprintf(char *, size_t, const char *, ...);
94
#    define snprintf _mxml_snprintf
95
#  endif /* !HAVE_SNPRINTF */
96
 
97
#  ifndef HAVE_VSNPRINTF
98
extern int	_mxml_vsnprintf(char *, size_t, const char *, va_list);
99
#    define vsnprintf _mxml_vsnprintf
100
#  endif /* !HAVE_VSNPRINTF */