Changeset 492
- Timestamp:
- 11/27/2009 11:14:25 PM (2 years ago)
- Files:
-
- 1 modified
-
trunk/matml/src/ternary/book.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/matml/src/ternary/book.c
r460 r492 256 256 +latex+$(N+1)(N+2)/2$, where $N$ is the resolution. 257 257 -latex-(N+1)(N+2)/2, where N is the resolution. 258 This will free and re-create this array if present. 258 This is changed by realloc() each time the function is called, so it should 259 be NULL or a valid array. 259 260 260 261 double y0 Reference (minimum) … … 290 291 int i; 291 292 292 if (*tpoints) 293 free (*tpoints); 294 295 if (!(*tpoints = (visual_point *) malloc (num_points * sizeof (visual_point)))) 293 if (!(*tpoints = (visual_point *) realloc 294 (*tpoints, num_points * sizeof (visual_point)))) 296 295 return -1; 297 296