IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 22, 2005, 4:54:52 PM (21 years ago)
Author:
Paul Price
Message:

Working under pslib-0.7.0, but don't have the inner loop behaving yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/scripts/src/phase2/papStuff.c

    r4820 r5104  
    66
    77#include "papStuff.h"
     8
     9
     10static void memPrint(const psPtr ptr)
     11{
     12    psMemBlock *mb = ((psMemBlock*)ptr) - 1;
     13    printf("Memory block %lld (%lld):\n"
     14           "\tFile %s, line %d, size %d\n"
     15           "\tPosts: %x %x %x\n",
     16           mb->id, mb->refCounter, mb->file, mb->lineno, mb->userMemorySize, mb->startblock, mb->endblock,
     17           *(void**)((int8_t *)(mb + 1) + mb->userMemorySize));
     18}
    819
    920// Split string on given characters
     
    3041                (void)psListAdd(values, PS_LIST_TAIL, word);
    3142                start = i + 1;
     43                psFree(word);
    3244            }
    3345        }
     
    3749        psString word = psStringNCopy(&string[start], length - start);
    3850        (void)psListAdd(values, PS_LIST_TAIL, word);
     51        psFree(word);
    3952    }
    4053
Note: See TracChangeset for help on using the changeset viewer.