#464 closed defect (fixed)
const parameter dropped in psMemProblemCallback
| Reported by: | Owned by: | Paul Price | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | PSLib SDRS | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: |
Description
the psLib SDRS rev. 15 has sec. 2.4.5.2 defining psMemProblemCallback now as,
typedef void (*psMemProblemCallback) (psMemBlock *ptr, char *filename, usigned
int lineno);
I believe the 2nd argument should still be 'const char *filename'. The private
functions such as p_psAlloc, p_psFree, etc. still use 'const' so unless there
is a reason for this change, repeatedly casting filename as a psPtr just makes
the code "ugly". Please advise.
Note:
See TracTickets
for help on using tickets.

Agreed. Fixed.