#343 closed defect (fixed)
psLib prevents the use of malloc, realloc, calloc, & free
| Reported by: | jhoblitt | Owned by: | jhoblitt |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | PSLib SDRS | Version: | unspecified |
| Severity: | critical | Keywords: | IPP-doc |
| Cc: |
Description
sysUtils/psMemory.h uses the GCC poison pragma on malloc, realloc, calloc, &
free. This causes serious interoperability issues with 3rd party code.
The example below will not compile.
#include <pslib.h>
#include <stdlib.h>
int main () {
int *foo;
foo = malloc(sizeof(foo));
}
Change History (5)
comment:1 by , 21 years ago
| bug_group: | PSLib? → IPP-doc? |
|---|---|
| Component: | system → PSLib SDRS |
| Keywords: | IPP-doc added; PSLib removed |
| product: | PSLib → IPP-doc |
| Version: | rel5 → unspecified |
comment:2 by , 21 years ago
| Owner: | changed from to |
|---|
comment:3 by , 21 years ago
| Owner: | changed from to |
|---|
comment:4 by , 21 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:5 by , 21 years ago
| blocked: | → 354 |
|---|
Note:
See TracTickets
for help on using tickets.

This was actually specified by the SDRS. The SDRS has been updated to specifiy
that this behavior should be kept internal to psLib unless requested by the
client code.