IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 21, 2005, 11:03:53 AM (21 years ago)
Author:
eugene
Message:

various cleanups and fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psModUtils.c

    r5506 r5560  
    44
    55// template sample alloc/free pair:
     6# if (0)
    67static void psFooFree (psFoo *foo) {
    78
     
    910  return;
    1011}
    11 
    1212psFoo *psFooAlloc (int i1, int i2) {
    1313
     
    1717  return (foo);
    1818}
     19# endif
    1920
    2021// pmFPA
     
    3132}
    3233
    33 pmFPA *pmFPAAlloc (int i1, int i2) {
     34pmFPA *pmFPAAlloc (void) {
    3435
    3536  pmFPA *fpa = psAlloc (sizeof(pmFPA));
     
    5657}
    5758
    58 pmChip *pmChipAlloc (int i1, int i2) {
     59pmChip *pmChipAlloc (void) {
    5960
    6061  pmChip *chip = psAlloc (sizeof(pmChip));
     
    7980}
    8081
    81 pmCell *pmCellAlloc (int i1, int i2) {
     82pmCell *pmCellAlloc (void) {
    8283
    8384  pmCell *cell = psAlloc (sizeof(pmCell));
     
    9596  if (readout == NULL) return;
    9697
    97   psFree (readout->objects);
     98  psFree (readout->stars);
    9899
    99100  return;
    100101}
    101102
    102 pmReadout *pmReadoutAlloc (int i1, int i2) {
     103pmReadout *pmReadoutAlloc (void) {
    103104
    104105  pmReadout *readout = psAlloc (sizeof(pmReadout));
     
    109110  readout->colBins = 1;
    110111  readout->rowBins = 1;
    111   readout->objects = NULL;
     112  readout->stars = NULL;
    112113
    113114  return (readout);
Note: See TracChangeset for help on using the changeset viewer.