Ticket #1341 (closed patch: fixed)
[PATCH] hide magic numbers in src/pmc_freeze.c with macros
Reported by: | plobsing | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | none | Version: | 1.8.0 |
Severity: | medium | Keywords: | |
Cc: | Language: | ||
Patch status: | Platform: |
Description
src/pmc_freeze.c has the following comment:
/* TODO: get rid of these magic numbers; they look like pointer tags */
The attached patch hides the mentioned magic numbers using macros.
Note: I am not quite happy with the terms "PackID", "PMCID", and "FLAGS". I would appreciate suggestions to replace them.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.