IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 24, 2006, 2:27:29 PM (20 years ago)
Author:
Paul Price
Message:

Changed definition of psVectorAlloc and psArrayAlloc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/stac/src/stacRead.c

    r8783 r9740  
    1717    int nFiles = filenames->n;          // The number of input files
    1818    psArray *images = psArrayAlloc(nFiles); // The input files, to be returned
    19     images->n = nFiles;
    2019    assert(!headers || ! *headers || (*headers)->n == nFiles);
    2120    if (headers && ! *headers) {
    2221        *headers = psArrayAlloc(nFiles);
    23         (*headers)->n = nFiles;
    2422    }
    2523
     
    7573    psTrace("stac.read.coords", 5, "Reading coordinate file, %s\n", filename);
    7674
    77     psArray *coords = psArrayAlloc(BUFFER); // The array of coordinates to be returned
     75    psArray *coords = psArrayAllocEmpty(BUFFER); // The array of coordinates to be returned
    7876    float x, y;                         // Coordinates to read
    7977    while (fscanf(file, "%f %f\n", &x, &y) == 2) {
     
    188186    int nFiles = filenames->n;          // The number of input files
    189187    psArray *maps = psArrayAlloc(nFiles); // The maps, to be returned
    190     maps->n = nFiles;
    191188    char mapfile[MAXCHAR];              // Filename of map
    192189
Note: See TracChangeset for help on using the changeset viewer.