Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2007-11-14
18:13 • Closed ticket [1831425fff]: #ifdef out references to MCCEs in RE plus 6 othe... artifact: 67b4846737 user: dkf
16:15 • Ticket [1831425fff]: 4 changes artifact: e5b6830ce1 user: dkf
10:58 • Ticket [1831425fff]: 4 changes artifact: 06d0317f23 user: hobbs
10:34 • Ticket [1831425fff]: 4 changes artifact: 8868244a8c user: mistachkin
07:09 • Ticket [1831425fff]: 5 changes artifact: fc4e9b14e3 user: dkf
2007-11-13
23:18 • New ticket [1831425fff]. artifact: fee5e3731a user: hobbs

#ifdef out references to MCCEs in RE

Closed / Fixed1831425fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-11-13 23:18:19
The RE has numerous refs to MCCEs (multi-char collating elements) in the headers and code.  It apparently has never been used as REGEXP_MCCE_ENABLED is not true and applied on some of the code.  However, the space in structs was never ifdef'd out.  This would mean a thorough ifdef usage (kind of like const poisoning), but I think it is worth the effort to reduce obviously wasted space in an already bloated area.
dkfplain2007-11-14 07:09:47
Logged In: YES 
user_id=79902
Originator: NO

Everything to do with MCCEs is now commented/#ifdef'ed out.

Question: do a total splat of it?
mistachkinplain2007-11-14 10:34:56
Logged In: YES 
user_id=113501
Originator: NO

I would just leave the code in there, #ifdef'ed out (as long as it's not hurting anything).
hobbsplain2007-11-14 10:58:40
Logged In: YES 
user_id=72656
Originator: YES

1. The code currently doesn't work if you define REGEXP_MCCE_ENABLED - it was never completed afaik.
2. If you actually look at the code, you will see it just clutters the RE, reducing chances for improvement simply because it gets in the way of code diving.

1+ on removal for 8.5, leave untouched in 8.4 branch.
dkfplain2007-11-14 16:15:16
Logged In: YES 
user_id=79902
Originator: NO

To make things clearer, I won't do anything with MCCEs on the 8.4 branch.
dkfplain2007-11-14 18:13:52
Logged In: YES 
user_id=79902
Originator: NO

All MCCE code now totally squelched. As noted below, it remains in its full glory on the 8.4 branch, but there was absolutely no reason at all to keep it in 8.5.
Log in (anonymous is fine) to add a comment.