Ticket #1741 (closed feature: fixed)
Macro abstraction for hash iterations
Reported by: | luben | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | core | Version: | 2.6.0 |
Severity: | medium | Keywords: | hash macro |
Cc: | Language: | ||
Patch status: | new | Platform: | all |
Description
A lot of files in the source tree poke with hash.c internals. I have extracted 2 common patterns as C preprocessor macros and have replaced the manual iteration with macro iteration in a lot of PMCs.
Benefits: 1. Less code 2. Encapsulation - if you want to change hash internals you have to edit only hash.c and hash.h
Better names for macros are appreciated
Attachments
Change History
Note: See
TracTickets for help on using
tickets.