#682 closed defect (fixed)
psArray updates
| Reported by: | Paul Price | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | types | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: |
Description
psArrayAlloc shall set psArray.n to zero
psVectorAlloc shall set psVector.n to zero
psArrayAlloc shall initialise the array values to NULL
psArrayRealloc shall initialise the grown values on the array to NULL
See bug 676.
Change History (7)
comment:1 by , 20 years ago
| Owner: | changed from to |
|---|
comment:2 by , 20 years ago
| blocked: | → 717 |
|---|
comment:3 by , 20 years ago
comment:4 by , 20 years ago
No, psVectorAlloc stores numbers, not pointers.
psVector initialisation is performed by psVectorInit, and we let the user call
this explicitly, since there is no standard value for initialisation.
comment:5 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Changed psArray & psVector as desired (& all corresponding instances).
Note:
See TracTickets
for help on using tickets.

Should VectorAlloc also initialize vector values to NULL as with array? Should
VectorRealloc and VectorRecycle also be altered correspondingly?