summaryrefslogtreecommitdiffstats
path: root/generic/regguts.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-11-25 11:47:54 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-11-25 11:47:54 (GMT)
commit7b4af51ed2c67661856796cc6669052b86bda825 (patch)
tree0a6432cb9fcba1e5f3bb37ef5f4d4f486886a47d /generic/regguts.h
parenta3572d2400fc9b189ceb5f6f2c929486d136ab05 (diff)
downloadtcl-7b4af51ed2c67661856796cc6669052b86bda825.zip
tcl-7b4af51ed2c67661856796cc6669052b86bda825.tar.gz
tcl-7b4af51ed2c67661856796cc6669052b86bda825.tar.bz2
Eliminate some macros that are no longer used/needed.
Diffstat (limited to 'generic/regguts.h')
-rw-r--r--generic/regguts.h21
1 files changed, 2 insertions, 19 deletions
diff --git a/generic/regguts.h b/generic/regguts.h
index 1ac2465..9461136 100644
--- a/generic/regguts.h
+++ b/generic/regguts.h
@@ -49,23 +49,6 @@
#include <assert.h>
#endif
-/* voids */
-#ifndef VOID
-#define VOID void /* for function return values */
-#endif
-#ifndef DISCARD
-#define DISCARD void /* for throwing values away */
-#endif
-#ifndef PVOID
-#define PVOID void * /* generic pointer */
-#endif
-#ifndef VS
-#define VS(x) ((void*)(x)) /* cast something to generic ptr */
-#endif
-#ifndef NOPARMS
-#define NOPARMS void /* for empty parm lists */
-#endif
-
/* function-pointer declarator */
#ifndef FUNCPTR
#if __STDC__ >= 1
@@ -80,10 +63,10 @@
#define MALLOC(n) malloc(n)
#endif
#ifndef REALLOC
-#define REALLOC(p, n) realloc(VS(p), n)
+#define REALLOC(p, n) realloc(p, n)
#endif
#ifndef FREE
-#define FREE(p) free(VS(p))
+#define FREE(p) free(p)
#endif
/* want size of a char in bits, and max value in bounded quantifiers */