diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-11-25 11:47:54 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-11-25 11:47:54 (GMT) |
| commit | df537d0dfb0d776a346f5c04aca6cb5f090c0b1a (patch) | |
| tree | 0a6432cb9fcba1e5f3bb37ef5f4d4f486886a47d /generic/regexec.c | |
| parent | 1000af34faa34a6becf22244a8d7a91bd73f7c45 (diff) | |
| download | tcl-df537d0dfb0d776a346f5c04aca6cb5f090c0b1a.zip tcl-df537d0dfb0d776a346f5c04aca6cb5f090c0b1a.tar.gz tcl-df537d0dfb0d776a346f5c04aca6cb5f090c0b1a.tar.bz2 | |
Eliminate some macros that are no longer used/needed.
Diffstat (limited to 'generic/regexec.c')
| -rw-r--r-- | generic/regexec.c | 4 |
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)); } /* |
