aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnu-regex.c
diff options
context:
space:
mode:
authorChristopher Faylor <me+cygwin@cgf.cx>2001-06-10 16:25:51 +0000
committerChristopher Faylor <me+cygwin@cgf.cx>2001-06-10 16:25:51 +0000
commit0b6a968ee62c0e94758b5996f10509741731ec10 (patch)
treeaa9dbf9dbbbcc91bf5c727772567e2f805f844b9 /gdb/gnu-regex.c
parent5dd0794dca6376164c29977156282afc59b16388 (diff)
downloadgdb-0b6a968ee62c0e94758b5996f10509741731ec10.zip
gdb-0b6a968ee62c0e94758b5996f10509741731ec10.tar.gz
gdb-0b6a968ee62c0e94758b5996f10509741731ec10.tar.bz2
* gnu-regex.c: Eliminate obsolete check for _MSC_VER.
* utils.c (notice_quit): Remove dummy function only used for _MSC_VER. * values.c (unpack_double): Remove obsolete check for _MSC_VER. * defs.h: Ditto. * m32r-rom.c: Ditto. * p-exp.y: Ditto. * ser-e7kpc.c: Ditto. Define WIN32_LEAN_AND_MEAN under _WIN32, for faster compilation. (get_ds_base): Remove _MSC_VER version of this function. * nindy-share/ttyflush.c: Ditto. X * rdi-share/host.h: Ditto. X * ser-go32.c (dos_readchar): Remove call to obsolete function. * remote-sim.c (gdb_os_poll_quit): Ditto. * remote-e7000.c (expect): Remove obsolete #if 0'ed code. * main.c (captured_main): Eliminate special Cygwin checks. * ser-tcp.c: Remove unneeded __CYGWIN__ guard against system include.
Diffstat (limited to 'gdb/gnu-regex.c')
-rw-r--r--gdb/gnu-regex.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/gdb/gnu-regex.c b/gdb/gnu-regex.c
index 6acdcf2..89e532e 100644
--- a/gdb/gnu-regex.c
+++ b/gdb/gnu-regex.c
@@ -1590,21 +1590,8 @@ static reg_errcode_t compile_range _RE_ARGS ((const char **p_ptr,
/* This is not an arbitrary limit: the arguments which represent offsets
into the pattern are two bytes long. So if 2^16 bytes turns out to
be too small, many things would have to change. */
-/* Any other compiler which, like MSC, has allocation limit below 2^16
- bytes will have to use approach similar to what was done below for
- MSC and drop MAX_BUF_SIZE a bit. Otherwise you may end up
- reallocating to 0 bytes. Such thing is not going to work too well.
- You have been warned!! */
-#if defined _MSC_VER && !defined WIN32
-/* Microsoft C 16-bit versions limit malloc to approx 65512 bytes.
- The REALLOC define eliminates a flurry of conversion warnings,
- but is not required. */
-# define MAX_BUF_SIZE 65500L
-# define REALLOC(p,s) realloc ((p), (size_t) (s))
-#else
-# define MAX_BUF_SIZE (1L << 16)
-# define REALLOC(p,s) realloc ((p), (s))
-#endif
+#define MAX_BUF_SIZE (1L << 16)
+#define REALLOC(p,s) realloc ((p), (s))
/* Extend the buffer by twice its current size via realloc and
reset the pointers that pointed into the old block to point to the