summaryrefslogtreecommitdiffstats
path: root/generic/regexec.c
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/regexec.c
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/regexec.c')
-rw-r--r--generic/regexec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/regexec.c b/generic/regexec.c
index 6d12827..128d439 100644
--- a/generic/regexec.c
+++ b/generic/regexec.c
@@ -44,7 +44,7 @@ struct sset { /* state set */
unsigned hash; /* hash of bitvector */
#define HASH(bv, nw) (((nw) == 1) ? *(bv) : hash(bv, nw))
#define HIT(h,bv,ss,nw) ((ss)->hash == (h) && ((nw) == 1 || \
- memcmp(VS(bv), VS((ss)->states), (nw)*sizeof(unsigned)) == 0))
+ memcmp((void*)(bv), (void*)((ss)->states), (nw)*sizeof(unsigned)) == 0))
int flags;
#define STARTER 01 /* the initial state set */
#define POSTSTATE 02 /* includes the goal state */
@@ -268,7 +268,7 @@ exec(
if (st == REG_OKAY && v->pmatch != pmatch && nmatch > 0) {
zapallsubs(pmatch, nmatch);
n = (nmatch < v->nmatch) ? nmatch : v->nmatch;
- memcpy(VS(pmatch), VS(v->pmatch), n*sizeof(regmatch_t));
+ memcpy((void*)(pmatch), (void*)(v->pmatch), n*sizeof(regmatch_t));
}
/*