summaryrefslogtreecommitdiffstats
path: root/generic/regcustom.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-03-22 14:38:18 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-03-22 14:38:18 (GMT)
commite2baf98d42baad64a19da5ec35136b0bc81ff7f5 (patch)
treead295d0aad96e6a4b66a5e78612a42fb71fafc5b /generic/regcustom.h
parentae6d91316afca4d7295521163352757b570d0e85 (diff)
downloadtcl-e2baf98d42baad64a19da5ec35136b0bc81ff7f5.zip
tcl-e2baf98d42baad64a19da5ec35136b0bc81ff7f5.tar.gz
tcl-e2baf98d42baad64a19da5ec35136b0bc81ff7f5.tar.bz2
Eliminate some usage of VOID and its variants.
Remove unnecessary #undef's
Diffstat (limited to 'generic/regcustom.h')
-rw-r--r--generic/regcustom.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/generic/regcustom.h b/generic/regcustom.h
index 309203a..647b423 100644
--- a/generic/regcustom.h
+++ b/generic/regcustom.h
@@ -36,10 +36,9 @@
* Overrides for regguts.h definitions, if any.
*/
-#define FUNCPTR(name, args) (*name)args
-#define MALLOC(n) VS(attemptckalloc(n))
-#define FREE(p) ckfree(VS(p))
-#define REALLOC(p,n) VS(attemptckrealloc(VS(p),n))
+#define MALLOC(n) ((void*)(attemptckalloc(n)))
+#define FREE(p) ckfree((void*)(p))
+#define REALLOC(p,n) ((void*)(attemptckrealloc((void*)(p),n)))
/*
* Do not insert extras between the "begin" and "end" lines - this chunk is
@@ -60,9 +59,6 @@
#ifdef __REG_REGOFF_T
#undef __REG_REGOFF_T
#endif
-#ifdef __REG_VOID_T
-#undef __REG_VOID_T
-#endif
#ifdef __REG_NOFRONT
#undef __REG_NOFRONT
#endif
@@ -72,7 +68,6 @@
/* Interface types */
#define __REG_WIDE_T Tcl_UniChar
#define __REG_REGOFF_T long /* Not really right, but good enough... */
-#define __REG_VOID_T void
/* Names and declarations */
#define __REG_WIDE_COMPILE TclReComp
#define __REG_WIDE_EXEC TclReExec