summaryrefslogtreecommitdiffstats
path: root/generic/regcustom.h
diff options
context:
space:
mode:
Diffstat (limited to 'generic/regcustom.h')
-rw-r--r--generic/regcustom.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/generic/regcustom.h b/generic/regcustom.h
index 57a2d47..d907ca7 100644
--- a/generic/regcustom.h
+++ b/generic/regcustom.h
@@ -30,16 +30,16 @@
* Headers if any.
*/
-#include "tclInt.h"
+#include "regex.h"
/*
* Overrides for regguts.h definitions, if any.
*/
#define FUNCPTR(name, args) (*name)args
-#define MALLOC(n) ckalloc(n)
+#define MALLOC(n) VS(attemptckalloc(n))
#define FREE(p) ckfree(VS(p))
-#define REALLOC(p,n) ckrealloc(VS(p),n)
+#define REALLOC(p,n) VS(attemptckrealloc(VS(p),n))
/*
* Do not insert extras between the "begin" and "end" lines - this chunk is
@@ -74,7 +74,11 @@
#endif
/* Interface types */
#define __REG_WIDE_T Tcl_UniChar
+#ifdef __CYGWIN__
+#define __REG_REGOFF_T int /* Not really right, but good enough... */
+#else
#define __REG_REGOFF_T long /* Not really right, but good enough... */
+#endif
#define __REG_VOID_T void
#define __REG_CONST const
/* Names and declarations */
@@ -155,7 +159,9 @@ typedef int celt; /* Type to hold chr, or NOCELT */
#endif
/*
- * And pick up the standard header.
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 4
+ * fill-column: 78
+ * End:
*/
-
-#include "regex.h"