Changeset 5560 for trunk/psastro/src/psModUtils.c
- Timestamp:
- Nov 21, 2005, 11:03:53 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psModUtils.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psModUtils.c
r5506 r5560 4 4 5 5 // template sample alloc/free pair: 6 # if (0) 6 7 static void psFooFree (psFoo *foo) { 7 8 … … 9 10 return; 10 11 } 11 12 12 psFoo *psFooAlloc (int i1, int i2) { 13 13 … … 17 17 return (foo); 18 18 } 19 # endif 19 20 20 21 // pmFPA … … 31 32 } 32 33 33 pmFPA *pmFPAAlloc ( int i1, int i2) {34 pmFPA *pmFPAAlloc (void) { 34 35 35 36 pmFPA *fpa = psAlloc (sizeof(pmFPA)); … … 56 57 } 57 58 58 pmChip *pmChipAlloc ( int i1, int i2) {59 pmChip *pmChipAlloc (void) { 59 60 60 61 pmChip *chip = psAlloc (sizeof(pmChip)); … … 79 80 } 80 81 81 pmCell *pmCellAlloc ( int i1, int i2) {82 pmCell *pmCellAlloc (void) { 82 83 83 84 pmCell *cell = psAlloc (sizeof(pmCell)); … … 95 96 if (readout == NULL) return; 96 97 97 psFree (readout-> objects);98 psFree (readout->stars); 98 99 99 100 return; 100 101 } 101 102 102 pmReadout *pmReadoutAlloc ( int i1, int i2) {103 pmReadout *pmReadoutAlloc (void) { 103 104 104 105 pmReadout *readout = psAlloc (sizeof(pmReadout)); … … 109 110 readout->colBins = 1; 110 111 readout->rowBins = 1; 111 readout-> objects = NULL;112 readout->stars = NULL; 112 113 113 114 return (readout);
Note:
See TracChangeset
for help on using the changeset viewer.
