llvm.org GIT mirror llvm / 8b3594a
More MSVC warning fixes: 1. DUPMAX is defined in regcomp.c, no need to redefine it in regutils. 2. MSVC doesn't like snprintf, use _snprintf instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81114 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 11 years ago
3 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
141141 #else
142142 #define DUPMAX 255
143143 #endif
144 #define INFINITY (DUPMAX + 1)
144145
145146 #ifndef NDEBUG
146147 static int never = 0; /* for use in asserts; shuts lint up */
4343 #include "regex_impl.h"
4444
4545 #include "regutils.h"
46
47 #ifdef _MSC_VER
48 #define snprintf _snprintf
49 #endif
4650
4751 static const char *regatoi(const llvm_regex_t *, char *, int);
4852
3535 */
3636
3737 /* utility definitions */
38 #define DUPMAX _POSIX2_RE_DUP_MAX /* xxx is this right? */
39 #define INFINITY (DUPMAX + 1)
4038 #define NC (CHAR_MAX - CHAR_MIN + 1)
4139 typedef unsigned char uch;
4240