Changeset 21153
- Timestamp:
- Jan 22, 2009, 10:43:26 AM (17 years ago)
- Location:
- trunk/Ohana/src
- Files:
-
- 81 edited
-
addstar/include/addstar.h (modified) (3 diffs)
-
addstar/include/sedstar.h (modified) (1 diff)
-
addstar/include/skycells.h (modified) (1 diff)
-
addstar/src/addstarc.c (modified) (1 diff)
-
delstar/include/delstar.h (modified) (3 diffs)
-
dvosplit/include/dvosplit.h (modified) (1 diff)
-
elixir/include/elixir.h (modified) (5 diffs)
-
gastro/include/gastro.h (modified) (1 diff)
-
gastro/src/plotstuff.c (modified) (1 diff)
-
gastro2/include/gastro2.h (modified) (4 diffs)
-
gastro2/src/grid.c (modified) (1 diff)
-
gastro2/src/plots.c (modified) (2 diffs)
-
gastro2/src/plotstuff.c (modified) (1 diff)
-
gcompare/include/gcompare.h (modified) (1 diff)
-
getstar/include/dvoImageExtract.h (modified) (1 diff)
-
getstar/include/dvoImageOverlaps.h (modified) (1 diff)
-
getstar/include/getstar.h (modified) (1 diff)
-
gophot/include/prototypes.h (modified) (3 diffs)
-
imclean/include/imclean.h (modified) (1 diff)
-
imregister/include/detrend.h (modified) (3 diffs)
-
imregister/include/imreg.h (modified) (3 diffs)
-
imregister/include/imregister.h (modified) (1 diff)
-
kapa/include/prototypes.h (modified) (6 diffs)
-
kapa/include/structures.h (modified) (3 diffs)
-
kapa2/include/kii.struct.h (modified) (3 diffs)
-
kapa2/include/prototypes.h (modified) (9 diffs)
-
kapa2/include/structures.h (modified) (1 diff)
-
kapa2/src/ButtonFunctions.c (modified) (1 diff)
-
kapa2/src/CheckVisual.c (modified) (4 diffs)
-
kapa2/src/DefineSection.c (modified) (1 diff)
-
kapa2/src/EraseCurrentPlot.c (modified) (1 diff)
-
kapa2/src/ErasePlots.c (modified) (1 diff)
-
kapa2/src/EraseSections.c (modified) (1 diff)
-
kapa2/src/EventLoop.c (modified) (2 diffs)
-
kapa2/src/FlushDisplay.c (modified) (1 diff)
-
kapa2/src/Image.c (modified) (1 diff)
-
kapa2/src/InvertButton.c (modified) (1 diff)
-
kapa2/src/LoadFrame.c (modified) (1 diff)
-
kapa2/src/MapWindow.c (modified) (1 diff)
-
kapa2/src/Reconfig.c (modified) (1 diff)
-
kapa2/src/Refresh.c (modified) (1 diff)
-
kapa2/src/Resize.c (modified) (1 diff)
-
kapa2/src/Sections.c (modified) (4 diffs)
-
kapa2/src/SetGraphData.c (modified) (1 diff)
-
kapa2/src/SetGraphStyle.c (modified) (1 diff)
-
kapa2/src/SetLimits.c (modified) (1 diff)
-
kapa2/src/SetUpGraphic.c (modified) (1 diff)
-
kapa2/src/TopWindow.c (modified) (1 diff)
-
kii/include/structures.h (modified) (3 diffs)
-
libdvo/include/dvo.h (modified) (3 diffs)
-
libdvo/include/dvo.update.h (modified) (1 diff)
-
libkapa/include/kapa.h (modified) (2 diffs)
-
libohana/include/ohana.h (modified) (2 diffs)
-
misc/include/missing_protos.h (modified) (2 diffs)
-
mosastro/include/mosastro.h (modified) (5 diffs)
-
nightd/include/nightd.h (modified) (2 diffs)
-
opihi/cmd.astro/cplot.c (modified) (1 diff)
-
opihi/dvo/dbExtractAverages.c (modified) (2 diffs)
-
opihi/dvo/dbExtractMeasures.c (modified) (2 diffs)
-
opihi/dvo/dbFields.c (modified) (5 diffs)
-
opihi/dvo/gimages.c (modified) (1 diff)
-
opihi/dvo/skycoverage.c (modified) (7 diffs)
-
opihi/include/astro.h (modified) (1 diff)
-
opihi/include/basic.h (modified) (1 diff)
-
opihi/include/data.h (modified) (4 diffs)
-
opihi/include/dimm.h (modified) (3 diffs)
-
opihi/include/display.h (modified) (2 diffs)
-
opihi/include/dvoshell.h (modified) (7 diffs)
-
opihi/include/imfit.h (modified) (1 diff)
-
opihi/include/mana.h (modified) (1 diff)
-
opihi/include/pantasks.h (modified) (6 diffs)
-
opihi/include/pclient.h (modified) (1 diff)
-
opihi/include/pcontrol.h (modified) (5 diffs)
-
opihi/include/shell.h (modified) (7 diffs)
-
photdbc/include/photdbc.h (modified) (1 diff)
-
relastro/include/relastro.h (modified) (6 diffs)
-
relphot/include/relphot.h (modified) (5 diffs)
-
relphot/src/StarOps.c (modified) (1 diff)
-
relphot/src/relphot.c (modified) (1 diff)
-
relphot/src/relphot_objects.c (modified) (2 diffs)
-
uniphot/include/uniphot.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/include/addstar.h
r20936 r21153 141 141 void FindCalibration PROTO((Image *image)); 142 142 FILE *GetDB PROTO((int *state)); 143 void InitCalibration PROTO(( ));143 void InitCalibration PROTO((int mode)); 144 144 void SaveCalibration PROTO((float Mo, float dMo, float Mr, float dMr, float Mi, int N)); 145 145 void SetProtect PROTO((int mode)); 146 int SetSignals PROTO(( ));146 int SetSignals PROTO((void)); 147 147 int Shutdown PROTO((char *message, ...); ) 148 148 void TrapSignal PROTO((int sig)); … … 177 177 int in_image PROTO((double r, double d, Image *image)); 178 178 int load_pt_catalog PROTO((Catalog *catalog, SkyRegion *region)); /*** choose new name ***/ 179 void load_subpix PROTO(( ));179 void load_subpix PROTO((void)); 180 180 void lock_image_db PROTO((FITS_DB *db, char *filename)); 181 181 int main PROTO((int argc, char **argv)); … … 238 238 SkyList *SkyListExistingSubset PROTO((SkyList *input, char *path)); 239 239 int SkyListSetPath PROTO((SkyList *list, char *path)); 240 SkyTable *SkyTableLoadOptimal PROTO(()); 241 int InitDataset PROTO(()); 240 int InitDataset PROTO((void)); 242 241 int PushDataset PROTO((DVO_DATA *data)); 243 242 DVO_DATA *PopDataset PROTO((void)); -
trunk/Ohana/src/addstar/include/sedstar.h
r8361 r21153 41 41 int SEDfitInit (SEDtable *table); 42 42 int SEDfitPlot (SEDtable *table, double R, double D, SEDfit *minFit, SEDtableRow *sourceValue, SEDtableRow *sourceError); 43 int SEDfitClear ( );43 int SEDfitClear (void); 44 44 int SEDfitCatalog (Catalog *outcat, Catalog *incat, SEDtable *table); 45 45 void SetLimitsRaw (float *xvec, float *yvec, int Nelements, Graphdata *graphmode); -
trunk/Ohana/src/addstar/include/skycells.h
r21048 r21153 76 76 77 77 void SetProtect PROTO((int mode)); 78 int SetSignals PROTO(( ));78 int SetSignals PROTO((void)); 79 79 int Shutdown PROTO((char *message, ...); ) 80 80 void TrapSignal PROTO((int sig)); -
trunk/Ohana/src/addstar/src/addstarc.c
r16983 r21153 32 32 Send_Image (BindSocket, images, Nimages, FALSE); 33 33 if (options.mosaic) { 34 GetRegisteredMosaic (&MOSAIC); 34 // XXX : this is broken due to an API mod for GetRegisteredMosaic 35 // GetRegisteredMosaic (&MOSAIC); 36 abort(); 35 37 Send_Coords (BindSocket, &MOSAIC, 1, FALSE); 36 38 } -
trunk/Ohana/src/delstar/include/delstar.h
r7393 r21153 43 43 int SetImages PROTO((Image *new, int Nnew)); 44 44 void SetProtect PROTO((int mode)); 45 int SetSignals PROTO(( ));45 int SetSignals PROTO((void)); 46 46 int Shutdown PROTO((char *format, ...)); 47 47 void TrapSignal PROTO((int sig)); … … 59 59 Image *gimages PROTO((char *filename)); 60 60 Image *gtimes PROTO((int *NIMAGE)); 61 void help PROTO(( ));61 void help PROTO((void)); 62 62 int load_image_db PROTO((FITS_DB *db)); 63 63 void lock_image_db PROTO((FITS_DB *db, char *filename)); … … 65 65 double opening_angle PROTO((double x1, double y1, double x2, double y2, double x3, double y3)); 66 66 int parse_time PROTO((Header *header)); 67 int save_image_db PROTO(( ));67 int save_image_db PROTO((void)); 68 68 void sort_lists PROTO((float *X, float *Y, int *S, int N)); 69 69 void unlock_image_db PROTO((FITS_DB *db)); 70 void usage PROTO(( ));70 void usage PROTO((void)); 71 71 int wcatalog PROTO((Catalog *catalog)); 72 72 -
trunk/Ohana/src/dvosplit/include/dvosplit.h
r16061 r21153 32 32 33 33 int ConfigInit PROTO((int *argc, char **argv)); 34 int SetSignals PROTO(( ));34 int SetSignals PROTO((void)); 35 35 void SetProtect PROTO((int mode)); 36 36 void TrapSignal PROTO((int sig)); -
trunk/Ohana/src/elixir/include/elixir.h
r10338 r21153 103 103 char *GetPhotcodeExt (char *file); 104 104 char *GetPhotcodeMef (char *file); 105 Machine *GrabMachine ( );106 Cluster *InitCluster ( );107 Process *InitProcess (char *name, Queue *pending, Queue *failure, int (*mkargs)( ));108 Queue *InitQueue ( );105 Machine *GrabMachine (void); 106 Cluster *InitCluster (void); 107 Process *InitProcess (char *name, Queue *pending, Queue *failure, int (*mkargs)(void)); 108 Queue *InitQueue (void); 109 109 FILE *LogOpen (char *filename); 110 110 char *PathFilename (char *file); … … 114 114 int CheckEndingState (Process *global, int Nobjects, int Dynamic); 115 115 int CheckMachineStatus (Machine *machine); 116 int CheckMessages ( );116 int CheckMessages (void); 117 117 int CheckProcess (Process *process); 118 118 void CloseMachine (Machine *machine); … … 124 124 int DumpProcessTimes (char *filename); 125 125 int DumpStatus (char *filename); 126 void ElixirStop ( );126 void ElixirStop (void); 127 127 int FlushFifo (Fifo *fifo); 128 128 void FreeArgs (int argc, char **argv, int *argd); 129 129 void FreeFifo (Fifo *fifo); 130 int GetDynamicState ( );131 double GetTimeout ( );130 int GetDynamicState (void); 131 double GetTimeout (void); 132 132 void HaltElixir (char *pidfile); 133 133 int HalttoRestart (char *pidfile); … … 149 149 int ReadtoFifo (Fifo *fifo, int sock); 150 150 void RegisterTimeout (double value); 151 void RemovePID ( );151 void RemovePID (void); 152 152 void Restart (char **argv); 153 void RestartMachines ( );153 void RestartMachines (void); 154 154 void SIG_DIE (int sig); 155 155 void SIG_MESSAGE (int sig); … … 157 157 void SIG_RELOAD (int sig); 158 158 void SIG_STOP (int sig); 159 int SetExitTimer ( );159 int SetExitTimer (void); 160 160 void SetMessageFile (char *filename); 161 161 int ShiftFifo (Fifo *fifo); -
trunk/Ohana/src/gastro/include/gastro.h
r14590 r21153 87 87 void PlotVector PROTO((int Npts, float *vect, int mode, int N)); 88 88 void PrepPlotting PROTO((int Npts, Graphdata *graphmode, int N)); 89 void XDead PROTO(( ));89 void XDead PROTO((int value)); 90 90 void alter_header PROTO((char *, char **, int, double, double, double, double, double, double, double, double, int)); 91 91 void area_of_region PROTO((CatStats *region)); -
trunk/Ohana/src/gastro/src/plotstuff.c
r14590 r21153 5 5 static int active; 6 6 7 void XDead ( ) {7 void XDead (int value) { 8 8 signal (SIGPIPE, XDead); 9 9 fprintf (stderr, "kapa is dead, must restart\n"); -
trunk/Ohana/src/gastro2/include/gastro2.h
r14590 r21153 133 133 void PlotVector (int Npts, float *vect, int mode, int N); 134 134 void PrepPlotting (int Npts, Graphdata *graphmode, int N); 135 void XDead ( );135 void XDead (int value); 136 136 void add_to_regions (CatStats *area); 137 void ahelp ( );137 void ahelp (void); 138 138 void area_of_region (CatStats *region); 139 139 double area_of_skyregion (SkyRegion *region); … … 147 147 int fit_adjust (Coords *coords); 148 148 void fit_apply (double *x, double *y, double X, double Y); 149 void fit_eval ( );149 void fit_eval (void); 150 150 void fit_init (int order); 151 151 void fit_lum_bin (double *x, double *y, int N, double *C0, double *C1); 152 void fit_norm ( );152 void fit_norm (void); 153 153 double fit_scat (StarData *st, StarData *sr, Coords *coords); 154 154 int gaussj (double **a, int n, double **b, int m); … … 166 166 void grid (CmpCatalog *Target, RefCatalog *Subset, Answer *answer); 167 167 int gridbin (double dX, double dY); 168 void gridfree ( );168 void gridfree (void); 169 169 void gridinit (double XMIN, double XMAX, double YMIN, double YMAX, int Nr, int Nt); 170 170 void gstars (char *filename, CmpCatalog *Target); 171 171 void hh_hms (double hh, int *hr, int *mn, double *sc); 172 172 void hms_format (char *line, double value); 173 void init_regions ( );173 void init_regions (void); 174 174 int load_ra_blocks (int Ndec, CatStats *area); 175 175 int mk_polyterm (int n, int m, int norder); … … 178 178 179 179 void pair_add (int i1, int i2); 180 void pair_init ( );180 void pair_init (void); 181 181 int pair_lists (int **index1, int **index2); 182 182 183 183 int parse_GSC_line (CatStats *tregion, char *line); 184 184 int plot_addpt_gridplot (double x, double y); 185 void plot_done_gridplot ( );185 void plot_done_gridplot (void); 186 186 void plot_fullfield (CmpCatalog *Target, RefCatalog *Ref); 187 187 void plot_fullfield_pairs (float *x, float *y, int n); 188 188 void plot_gridpts (double *pts, int Npts); 189 void plot_init_gridplot ( );189 void plot_init_gridplot (void); 190 190 void plot_lumfunc (CmpCatalog *Target, RefCatalog *Ref); 191 191 void plot_resid (StarData *st, StarData *sr, Coords *coords); -
trunk/Ohana/src/gastro2/src/grid.c
r20286 r21153 96 96 97 97 if (PLOTSTUFF) plot_gridpts (N, Nbin); 98 if (PLOTSTUFF) plot_done_gridplot ( dX, dY);98 if (PLOTSTUFF) plot_done_gridplot (); 99 99 100 100 XMIN -= 0.5*NGRID_PIX; -
trunk/Ohana/src/gastro2/src/plots.c
r8513 r21153 5 5 Graphdata gv; 6 6 7 void plot_init_gridplot ( ) {7 void plot_init_gridplot (void) { 8 8 9 9 NV = 1000; … … 50 50 } 51 51 52 void plot_done_gridplot ( ) {52 void plot_done_gridplot (void) { 53 53 54 54 char c; -
trunk/Ohana/src/gastro2/src/plotstuff.c
r14590 r21153 5 5 static int active; 6 6 7 void XDead ( ) {7 void XDead (int value) { 8 8 signal (SIGPIPE, XDead); 9 9 fprintf (stderr, "kapa is dead, must restart\n"); -
trunk/Ohana/src/gcompare/include/gcompare.h
r16040 r21153 23 23 /******* PROTOTYPES ***********/ 24 24 25 void help PROTO(( ));25 void help PROTO((void)); 26 26 data_type input PROTO((char *, int, int, int)); 27 27 match_type *compare PROTO((data_type, data_type, int *, double, double, double, double)); -
trunk/Ohana/src/getstar/include/dvoImageExtract.h
r12840 r21153 24 24 void TrapSignal PROTO((int sig)); 25 25 void SetProtect PROTO((int mode)); 26 int SetSignals PROTO(( ));26 int SetSignals PROTO((void)); 27 27 28 28 int GetFileMode (Header *header); -
trunk/Ohana/src/getstar/include/dvoImageOverlaps.h
r14590 r21153 27 27 void TrapSignal PROTO((int sig)); 28 28 void SetProtect PROTO((int mode)); 29 int SetSignals PROTO(( ));29 int SetSignals PROTO((void)); 30 30 31 31 Image *ReadImageFiles (char *filename, int *Nimages); -
trunk/Ohana/src/getstar/include/getstar.h
r20266 r21153 46 46 void TrapSignal PROTO((int sig)); 47 47 void SetProtect PROTO((int mode)); 48 int SetSignals PROTO(( ));48 int SetSignals PROTO((void)); 49 49 int gcatalog PROTO((Catalog *catalog)); 50 50 int write_catalog PROTO((Catalog *catalog)); -
trunk/Ohana/src/gophot/include/prototypes.h
r2473 r21153 11 11 char *expandline (char *line, char *config); 12 12 bool cosmic (float *star); 13 int dophot ( );13 int dophot (void); 14 14 int ellipse (float, float, float, float *, float *, float *, float *); 15 15 int errupd (float *, int); 16 16 int fillerup (int, int, int); 17 float findsky ( );17 float findsky (void); 18 18 bool galaxy (float *, float *, float *); 19 19 float guess1 (float *, float *, int, int); … … 22 22 int impaper2 (int); 23 23 int improve (int); 24 int isearch ( );24 int isearch (void); 25 25 void lubksb (float **, int, int *, float *); 26 26 void ludcmp (float **, int, int *, float *); 27 int makemask ( );28 int makenoise ( );27 int makemask (void); 28 int makenoise (void); 29 29 int mprint (int, char *, ...); 30 30 int set_verbosity (int); 31 int completeout ( );31 int completeout (void); 32 32 int oblims (float *, int *); 33 33 bool oblit (float *); 34 34 bool oblit (float *); 35 int paravg ( );35 int paravg (void); 36 36 float parinterp (float, float, float *); 37 37 int parupd (float *, float *, int, int); 38 int shape ( );38 int shape (void); 39 39 int sort (float *, int); 40 40 bool toobright (float *); … … 42 42 bool transmask (int, int, float); 43 43 float twofit (float *, float *, float *, float *); 44 int variparplane ( );44 int variparplane (void); 45 45 bool offpic (float *, int, int, float *, float *); 46 46 float newguess (float *, float *, int, int); -
trunk/Ohana/src/imclean/include/imclean.h
r3519 r21153 46 46 void find_better_line (SMPData *stars, char *mark, int Npts, int i, double *M, double *B, int axis); 47 47 48 void help ( );48 void help (void); 49 49 void args (int argc, char **argv); 50 50 void wfits (char *filename, SMPData *stars, int Nstars, Header *header); -
trunk/Ohana/src/imregister/include/detrend.h
r12332 r21153 74 74 DetReg DefineEntry (Descriptor descriptor); 75 75 76 char *set_dBFile ( );77 char *get_dBPath ( );76 char *set_dBFile (void); 77 char *get_dBPath (void); 78 78 int delete_image (DetReg *image); 79 79 … … 94 94 Match SelectEntry (DetReg *image, int Nimage, Match *list, int Nlist, Criteria *crit); 95 95 96 int usage ( );96 int usage (void); 97 97 Criteria *MosaicCriteria (Criteria base, char *filename, int *ncrit); 98 98 Criteria *ImageCriteria (Criteria base, char *filename, char *ImageExtend, char *ImageMode, int *ncrit); … … 105 105 int set_crit (Criteria *crit, DetReg *image); 106 106 int ckpathname (char *newpath); 107 int PrintCriteria ( );107 int PrintCriteria (void); 108 108 109 109 int SetAltpath (FITS_DB *db, DetReg *image, int Nimage, Match *match, int Nmatch); -
trunk/Ohana/src/imregister/include/imreg.h
r12332 r21153 100 100 double SigmaClipList (double *list, int N); 101 101 double MosaicIQStats (RegImage *image, int *match, int Nmatch, MosaicRegion *region); 102 MosaicLayout *CreateCFH12K ( );103 MosaicLayout *CreateMegaCam ( );102 MosaicLayout *CreateCFH12K (void); 103 MosaicLayout *CreateMegaCam (void); 104 104 int GetREFCCD (RegImage *image, int *index, int *entry, int Nindex, int start); 105 105 … … 107 107 void SIG_DIE (int sig); 108 108 void SIG_PIPE (int sig); 109 void SetSignals ( );109 void SetSignals (void); 110 110 void KillProcess (char *pidfile); 111 111 void StatusProcess (char *pidfile); 112 int close_lock_db ( );112 int close_lock_db (void); 113 113 int ConfigPID (char *pidfile); 114 114 int print_db_status (char *message); … … 117 117 int LoadPID (char *file, pid_t *pid, char *username, char *machine); 118 118 int Shutdown (int status); 119 void RemovePID ( );119 void RemovePID (void); 120 120 int rconnect (char *hostname, char *command, int *rsock, int *wsock); 121 121 -
trunk/Ohana/src/imregister/include/imregister.h
r12332 r21153 78 78 void sortpair (int *X, int *Y, int N); 79 79 80 void ConfigCamera ( );80 void ConfigCamera (void); 81 81 int MatchCCDNameHeader (Header *header); 82 82 int MatchCCDName (char *ID); 83 void ConfigFilter ( );83 void ConfigFilter (void); 84 84 int MatchFilterList (char *line); 85 85 void ConfigInit (int *argc, char **argv); -
trunk/Ohana/src/kapa/include/prototypes.h
r10834 r21153 4 4 void CheckFontName PROTO((int *, char **, char *)); 5 5 void CheckGeometry PROTO((int *, char **)); 6 int CheckPipe PROTO(( ));6 int CheckPipe PROTO((void)); 7 7 void CreateWindow PROTO((Window, int, long)); 8 8 void DefineLayout PROTO((int, char **)); … … 16 16 void DrawXErrors PROTO((Layout *, Gobjects *)); 17 17 void DrawYErrors PROTO((Layout *, Gobjects *)); 18 int ErasePlot PROTO(( ));18 int ErasePlot PROTO((void)); 19 19 unsigned long GetColor PROTO((Display *, char *, Colormap, unsigned long)); 20 int GetColormapSize PROTO(( ));20 int GetColormapSize PROTO((void)); 21 21 char *GetRGBString PROTO((int N)); 22 22 int InButton PROTO((XButtonEvent *, Button *)); 23 23 int InPicture PROTO((XButtonEvent *, Picture *)); 24 int ListSection PROTO(( ));25 int LoadBox PROTO(( ));24 int ListSection PROTO((void)); 25 int LoadBox PROTO((void)); 26 26 void LoadFont PROTO((int *, char **, char *)); 27 int LoadLabels PROTO(( ));28 int LoadObject PROTO(( ));29 int LoadPtext PROTO(( ));27 int LoadLabels PROTO((void)); 28 int LoadObject PROTO((void)); 29 int LoadPtext PROTO((void)); 30 30 int LoadVectorData PROTO((Layout *, int, char *)); 31 31 void MakeColormap PROTO((int, char **)); 32 32 void MakeCursor PROTO((unsigned int)); 33 void MapWindow PROTO(( ));33 void MapWindow PROTO((void)); 34 34 void NameWindow PROTO((char *)); 35 35 Display *OpenDisplay PROTO((char *, int *)); 36 int PNGit PROTO(( ));37 int PPMit PROTO(( ));36 int PNGit PROTO((void)); 37 int PPMit PROTO((void)); 38 38 void PSConnect PROTO((Layout *, Gobjects *, FILE *)); 39 39 int PSFrame PROTO((Layout *, FILE *)); … … 44 44 void PSXErrors PROTO((Layout *, Gobjects *, FILE *)); 45 45 void PSYErrors PROTO((Layout *, Gobjects *, FILE *)); 46 int PSit PROTO(( ));46 int PSit PROTO((void)); 47 47 void PositionPicture PROTO((Layout *)); 48 48 void QuitX PROTO((Display *, char *, char *)); … … 50 50 void Refresh PROTO((int)); 51 51 void Remap PROTO((Layout *, Matrix *)); 52 int Resize PROTO(( ));53 int SetFont PROTO(( ));54 int SetLimits PROTO(( ));55 void SetNormalHints PROTO(( ));52 int Resize PROTO((void)); 53 int SetFont PROTO((void)); 54 int SetLimits PROTO((void)); 55 void SetNormalHints PROTO((void)); 56 56 int SetSection PROTO((int SwitchSection)); 57 57 void SetUpDisplay PROTO((int *, char **)); … … 59 59 void SetWMHints PROTO((Icon *)); 60 60 void TopWindow PROTO((Icon *)); 61 int cursor PROTO(( ));61 int cursor PROTO((void)); 62 62 int get_argument PROTO((int, char **, char *)); 63 63 void hh_hms PROTO((char *, double, double, char)); 64 64 int remove_argument PROTO((int, int *, char **)); 65 65 66 void MakeGC ( );66 void MakeGC (void); 67 67 68 int EventLoop ( );69 void CloseDisplay ( );68 int EventLoop (void); 69 void CloseDisplay (void); 70 70 int args (int *argc, char **argv); 71 71 72 72 void DrawPtext (Layout *layout); 73 void FlushDisplay ( );73 void FlushDisplay (void); 74 74 void AxisTickScale (Axis *axis, double *major, double *minor); 75 75 void DrawFrame (Layout *layout); … … 93 93 void bDrawPtext (Layout *layout); 94 94 95 bDrawBuffer *bDrawIt ( );95 bDrawBuffer *bDrawIt (void); 96 96 97 97 /******************* XGRAPH ** -
trunk/Ohana/src/kapa/include/structures.h
r6684 r21153 23 23 int width, height; 24 24 char *bitmap; /* picture on button */ 25 int (*function_1) ( ); /* mouse_button 1 function */26 int (*function_2) ( ); /* mouse_button 2 function */27 int (*function_3) ( ); /* mouse_button 3 function */25 int (*function_1) (void); /* mouse_button 1 function */ 26 int (*function_2) (void); /* mouse_button 2 function */ 27 int (*function_3) (void); /* mouse_button 3 function */ 28 28 } Button; 29 29 … … 35 35 int outline; /* draw an outline? */ 36 36 int cursor; /* location of cursor (if selected) */ 37 int (*function) ( ); /* textline function */37 int (*function) (void); /* textline function */ 38 38 } TextLine; 39 39 … … 48 48 int cursor_x; /* location of cursor (if selected) */ 49 49 int cursor_y; /* location of cursor (if selected) */ 50 int (*function) ( ); /* textline function */50 int (*function) (void); /* textline function */ 51 51 } TextBox; 52 52 -
trunk/Ohana/src/kapa2/include/kii.struct.h
r13320 r21153 29 29 int width, height; 30 30 char *bitmap; /* picture on button */ 31 int (*function_1) ( ); /* mouse_button 1 function */32 int (*function_2) ( ); /* mouse_button 2 function */33 int (*function_3) ( ); /* mouse_button 3 function */31 int (*function_1) (void); /* mouse_button 1 function */ 32 int (*function_2) (void); /* mouse_button 2 function */ 33 int (*function_3) (void); /* mouse_button 3 function */ 34 34 } Button; 35 35 … … 41 41 int outline; /* draw an outline? */ 42 42 int cursor; /* location of cursor (if selected) */ 43 int (*function) ( ); /* textline function */43 int (*function) (void); /* textline function */ 44 44 } TextLine; 45 45 … … 54 54 int cursor_x; /* location of cursor (if selected) */ 55 55 int cursor_y; /* location of cursor (if selected) */ 56 int (*function) ( ); /* textline function */56 int (*function) (void); /* textline function */ 57 57 } TextBox; 58 58 -
trunk/Ohana/src/kapa2/include/prototypes.h
r21060 r21153 4 4 void SetUpGraphic PROTO((int *argc, char **argv)); 5 5 void DefineLayout PROTO((int, char **)); 6 int EventLoop PROTO(( ));7 void CloseDisplay PROTO(( ));6 int EventLoop PROTO((void)); 7 void CloseDisplay PROTO((void)); 8 8 9 9 /* SetUpGraphic */ … … 43 43 /* EventLoop */ 44 44 int PScommand PROTO((int sock)); 45 int CheckPipe PROTO(( ));45 int CheckPipe PROTO((void)); 46 46 int Reconfig PROTO((XEvent *event)); 47 void Refresh PROTO(( ));47 void Refresh PROTO((void)); 48 48 49 49 /* CheckPipe */ … … 79 79 80 80 /* Section Utilities */ 81 Section *InitSection PROTO(( ));81 Section *InitSection PROTO((void)); 82 82 void FreeSection PROTO((Section *section)); 83 void FreeSections PROTO(( ));83 void FreeSections PROTO((void)); 84 84 Section *AddSection PROTO((char *name, float x, float y, float dx, float dy)); 85 85 int DelSection PROTO((char *name)); 86 86 int GetSectionByName PROTO((char *name)); 87 int GetNumberOfSections PROTO(( ));87 int GetNumberOfSections PROTO((void)); 88 88 Section *GetSectionByNumber PROTO((int N)); 89 Section *GetActiveSection PROTO(( ));89 Section *GetActiveSection PROTO((void)); 90 90 int SetActiveSectionByNumber PROTO((int N)); 91 91 int ListSection PROTO((int sock)); 92 92 void SetSectionSizes PROTO((Section *section)); 93 93 94 KapaGraphWidget *InitGraph PROTO(( ));94 KapaGraphWidget *InitGraph PROTO((void)); 95 95 void DrawGraph PROTO((KapaGraphWidget *graph)); 96 96 void SetGraphSize PROTO((Section *section)); … … 131 131 void bDrawTick PROTO((double fx, double fy, double dfx, double dfy, int P, double min, double max, double value, int IsLabel, int IsMajor, int naxis)); 132 132 void bDrawClipLine PROTO((double x0, double y0, double x1, double y1, double X0, double Y1, double X1, double Y0)); 133 bDrawBuffer *bDrawIt PROTO(( ));133 bDrawBuffer *bDrawIt PROTO((void)); 134 134 void bDrawGraph PROTO((KapaGraphWidget *graph)); 135 135 … … 137 137 int LastEvent PROTO((Display *display, int type, XEvent *event)); 138 138 void FreeObjectData PROTO((Gobjects *object)); 139 void FlushDisplay PROTO(( ));139 void FlushDisplay PROTO((void)); 140 140 unsigned long GetColor PROTO((Display *display, char *name, Colormap colormap, unsigned long default_color)); 141 141 void QuitX PROTO((Display *display, char *message)); 142 Graphic *GetGraphic PROTO(( ));142 Graphic *GetGraphic PROTO((void)); 143 143 int GetPixelCount PROTO((int sock)); 144 144 145 int Center PROTO(( ));146 int Parity PROTO(( ));145 int Center PROTO((int sock)); 146 int Parity PROTO((int sock)); 147 147 void SetColorScale PROTO((Graphic *graphic, KapaImageWidget *image)); 148 148 void SetColorScale1D PROTO((Graphic *graphic, KapaImageWidget *image)); … … 155 155 int LoadPicture PROTO((int sock)); 156 156 157 KapaImageWidget *InitImageWidget PROTO(( ));157 KapaImageWidget *InitImageWidget PROTO((void)); 158 158 int InitImageChannel PROTO((KapaImageChannel *channel)); 159 159 void FreeImage PROTO((KapaImageWidget *image)); … … 161 161 162 162 void InitButtonSize PROTO((Button *button, int width, int height, char *bitmap)); 163 void InitButtonFunc PROTO((Button *button, int (*function)( )));163 void InitButtonFunc PROTO((Button *button, int (*function)(Graphic *graphic, KapaImageWidget *image))); 164 164 void DrawImage PROTO((KapaImageWidget *image)); 165 165 void DrawButton PROTO((Graphic *graphic, Button *button)); … … 232 232 // void CreateZoom32 (KapaImageWidget *image, Graphic *graphic, double x, double y); 233 233 234 int GetActiveSocket ( );234 int GetActiveSocket (void); 235 235 void InvertButton (Graphic *graphic, Button *button); 236 236 void bDrawOverlay (KapaImageWidget *image, int N); 237 237 238 238 /* color cube tools */ 239 CCNode *CCNodeAlloc ( );239 CCNode *CCNodeAlloc (void); 240 240 CCNode *CCFindChild (CCNode *node, float x, float y, float z); 241 241 int CCSplitNode (CCNode *node); … … 253 253 254 254 int SetColorScale3D_CC (Graphic *graphic, KapaImageWidget *image); 255 int SetColorCubeHistogram ( );255 int SetColorCubeHistogram (void); -
trunk/Ohana/src/kapa2/include/structures.h
r17530 r21153 78 78 int cursor_x; /* location of cursor (if selected) */ 79 79 int cursor_y; /* location of cursor (if selected) */ 80 int (*function) ( ); /* textline function */80 int (*function) (void); /* textline function */ 81 81 } TextBox; 82 82 -
trunk/Ohana/src/kapa2/src/ButtonFunctions.c
r16810 r21153 102 102 image[0].DecimalDegrees = image[0].DecimalDegrees ^ TRUE; 103 103 StatusBox (graphic, image); 104 FlushDisplay ( graphic[0].display);104 FlushDisplay (); 105 105 return (TRUE); 106 106 -
trunk/Ohana/src/kapa2/src/CheckVisual.c
r16810 r21153 34 34 } 35 35 36 // skip the default and the PseudoColor visuals, go for TrueColor first 37 # if (0) 36 38 /* check default visual first */ 37 39 for (i = 0; (i < Nfound) && (graphic[0].visual != visual_list[i].visual); i++); … … 40 42 exit (0); 41 43 } 44 # endif 42 45 43 46 // set these based on selected visual 44 47 isColor = isDefault = isDynamic = FALSE; 45 48 49 # if (0) 46 50 // attempt to select the most desirable type of visual: Default as PseudoColor (XXX is it still true?) 47 51 if (DEBUG) fprintf (stderr, "default visual class is %d\n", visual_list[i].class); … … 52 56 goto test_pixels; 53 57 } 58 # endif 59 60 // attempt to select the most desirable type of visual: TrueColor (XXX is it still true?) 61 for (i = 0; (i < Nfound) && (visual_list[i].class != TrueColor); i++); 62 if (i != Nfound) { 63 isColor = TRUE; 64 if (DEBUG) fprintf (stderr, "visual class is %d\n", visual_list[i].class); 65 isDefault = (graphic[0].visual == visual_list[i].visual); 66 graphic[0].visual = visual_list[i].visual; 67 graphic[0].visualclass = FALSE; 68 goto test_pixels; 69 } 54 70 55 71 // attempt to select the most desirable type of visual: PseudoColor (XXX is it still true?) … … 72 88 graphic[0].visual = visual_list[i].visual; 73 89 graphic[0].visualclass = TRUE; 74 goto test_pixels;75 }76 77 // attempt to select the most desirable type of visual: TrueColor (XXX is it still true?)78 for (i = 0; (i < Nfound) && (visual_list[i].class != TrueColor); i++);79 if (i != Nfound) {80 isColor = TRUE;81 if (DEBUG) fprintf (stderr, "visual class is %d\n", visual_list[i].class);82 isDefault = (graphic[0].visual == visual_list[i].visual);83 graphic[0].visual = visual_list[i].visual;84 graphic[0].visualclass = FALSE;85 90 goto test_pixels; 86 91 } -
trunk/Ohana/src/kapa2/src/DefineSection.c
r14590 r21153 34 34 if (MoveSection) { 35 35 SetSectionSizes (section); 36 Refresh ( 1);36 Refresh (); 37 37 } 38 38 -
trunk/Ohana/src/kapa2/src/EraseCurrentPlot.c
r13479 r21153 15 15 16 16 if (USE_XWINDOW) XClearWindow (graphic->display, graphic->window); 17 Refresh ( 1);17 Refresh (); 18 18 19 19 return (TRUE); -
trunk/Ohana/src/kapa2/src/ErasePlots.c
r13320 r21153 18 18 19 19 if (USE_XWINDOW) XClearWindow (graphic->display, graphic->window); 20 Refresh ( 1);20 Refresh (); 21 21 22 22 return (TRUE); -
trunk/Ohana/src/kapa2/src/EraseSections.c
r13320 r21153 11 11 12 12 if (USE_XWINDOW) XClearWindow (graphic->display, graphic->window); 13 Refresh ( 1);13 Refresh (); 14 14 15 15 return (TRUE); -
trunk/Ohana/src/kapa2/src/EventLoop.c
r14590 r21153 25 25 display = graphic->display; 26 26 27 if (USE_XWINDOW) Refresh ( 1);27 if (USE_XWINDOW) Refresh (); 28 28 29 29 status = TRUE; … … 46 46 if (LastEvent (display, ConfigureNotify, &event)) Reconfig (&event); 47 47 if (LastEvent (display, CirculateNotify, &event)) Reconfig (&event); 48 if (LastEvent (display, Expose, &event)) Refresh ( 1);48 if (LastEvent (display, Expose, &event)) Refresh (); 49 49 if (LastEvent (display, MappingNotify, &event)) XRefreshKeyboardMapping ((XMappingEvent *) &event); 50 50 if (LastEvent (display, MotionNotify, &event)) UpdatePointer (graphic, (XMotionEvent *) &event); -
trunk/Ohana/src/kapa2/src/FlushDisplay.c
r13320 r21153 5 5 # define DTIME(A,B) ((A.tv_sec - B.tv_sec) + 1e-6*(A.tv_usec - B.tv_usec)) 6 6 7 void FlushDisplay ( ) {7 void FlushDisplay (void) { 8 8 9 9 struct timeval now; -
trunk/Ohana/src/kapa2/src/Image.c
r16810 r21153 190 190 } 191 191 192 FlushDisplay ( graphic[0].display);192 FlushDisplay (); 193 193 } 194 194 -
trunk/Ohana/src/kapa2/src/InvertButton.c
r13320 r21153 12 12 13 13 DrawButton (graphic, button); 14 FlushDisplay ( graphic[0].display);14 FlushDisplay (); 15 15 16 16 graphic[0].fore = fore; -
trunk/Ohana/src/kapa2/src/LoadFrame.c
r18426 r21153 81 81 } 82 82 if (USE_XWINDOW) XClearWindow (graphic.display, graphic.window); 83 Refresh ( 1);83 Refresh (); 84 84 } else { 85 85 FlushDisplay (); -
trunk/Ohana/src/kapa2/src/MapWindow.c
r13320 r21153 6 6 XMapRaised (graphic->display, graphic->window); 7 7 XMapSubwindows (graphic->display, graphic->window); 8 FlushDisplay ( graphic);8 FlushDisplay (); 9 9 } -
trunk/Ohana/src/kapa2/src/Reconfig.c
r13479 r21153 29 29 30 30 if (USE_XWINDOW) XClearWindow (graphic->display, graphic->window); 31 Refresh ( 1);31 Refresh (); 32 32 33 33 return (TRUE); -
trunk/Ohana/src/kapa2/src/Refresh.c
r16388 r21153 1 1 # include "Ximage.h" 2 2 3 void Refresh ( ) {3 void Refresh (void) { 4 4 5 5 int i, Nsection; -
trunk/Ohana/src/kapa2/src/Resize.c
r13479 r21153 34 34 35 35 if (USE_XWINDOW) XClearWindow (graphic->display, graphic->window); 36 Refresh ( 1);36 Refresh (); 37 37 38 38 return (TRUE); -
trunk/Ohana/src/kapa2/src/Sections.c
r13479 r21153 177 177 sections[N] = sections[N+1]; 178 178 sections[N+1] = tmpSection; 179 Refresh ( 1);179 Refresh (); 180 180 return (TRUE); 181 181 } … … 187 187 sections[N] = sections[N-1]; 188 188 sections[N-1] = tmpSection; 189 Refresh ( 1);189 Refresh (); 190 190 return (TRUE); 191 191 } … … 199 199 } 200 200 sections[i] = tmpSection; 201 Refresh ( 1);201 Refresh (); 202 202 return (TRUE); 203 203 } … … 211 211 } 212 212 sections[i] = tmpSection; 213 Refresh ( 1);213 Refresh (); 214 214 return (TRUE); 215 215 } -
trunk/Ohana/src/kapa2/src/SetGraphData.c
r13479 r21153 73 73 74 74 if (USE_XWINDOW) XClearWindow (graphic->display, graphic->window); 75 Refresh ( 1);75 Refresh (); 76 76 77 77 return (TRUE); -
trunk/Ohana/src/kapa2/src/SetGraphStyle.c
r13479 r21153 55 55 56 56 if (USE_XWINDOW) XClearWindow (graphic->display, graphic->window); 57 Refresh ( 1);57 Refresh (); 58 58 59 59 return (TRUE); -
trunk/Ohana/src/kapa2/src/SetLimits.c
r13479 r21153 33 33 34 34 if (USE_XWINDOW) XClearWindow (graphic->display, graphic->window); 35 Refresh ( 1);35 Refresh (); 36 36 37 37 return (TRUE); -
trunk/Ohana/src/kapa2/src/SetUpGraphic.c
r16039 r21153 44 44 LoadFont (graphic, argc, argv, "fixed"); 45 45 46 // FlushDisplay (graphic);47 46 XSetWindowBackground (graphic->display, graphic->window, graphic->back); 48 47 -
trunk/Ohana/src/kapa2/src/TopWindow.c
r13320 r21153 15 15 MakeCursor (graphic, DEFAULT_CURSOR); 16 16 XFreeCursor (graphic->display, graphic->cursor); 17 // FlushDisplay (graphic);18 17 } -
trunk/Ohana/src/kii/include/structures.h
r5852 r21153 28 28 int width, height; 29 29 char *bitmap; /* picture on button */ 30 int (*function_1) ( ); /* mouse_button 1 function */31 int (*function_2) ( ); /* mouse_button 2 function */32 int (*function_3) ( ); /* mouse_button 3 function */30 int (*function_1) (void); /* mouse_button 1 function */ 31 int (*function_2) (void); /* mouse_button 2 function */ 32 int (*function_3) (void); /* mouse_button 3 function */ 33 33 } Button; 34 34 … … 40 40 int outline; /* draw an outline? */ 41 41 int cursor; /* location of cursor (if selected) */ 42 int (*function) ( ); /* textline function */42 int (*function) (void); /* textline function */ 43 43 } TextLine; 44 44 … … 53 53 int cursor_x; /* location of cursor (if selected) */ 54 54 int cursor_y; /* location of cursor (if selected) */ 55 int (*function) ( ); /* textline function */55 int (*function) (void); /* textline function */ 56 56 } TextBox; 57 57 -
trunk/Ohana/src/libdvo/include/dvo.h
r19187 r21153 279 279 OhanaProjectionMode GetProjectionMode (OhanaProjection proj); 280 280 281 char *libdvo_version ( );282 283 int isRegisteredMosaic ( );284 int GetRegisteredMosaic ( );281 char *libdvo_version (void); 282 283 int isRegisteredMosaic (void); 284 int GetRegisteredMosaic (void); 285 285 int GetMosaicCoords (Coords *coords); 286 286 int FindMosaicForImage (Image *images, int Nimages, int entry); … … 317 317 int PhotColor (Average *average, SecFilt *secfilt, Measure *measure, int c1, int c2, double *color); 318 318 319 PhotCodeData *GetPhotcodeTable ( );319 PhotCodeData *GetPhotcodeTable (void); 320 320 321 321 int LoadPhotcodes (char *catdir_file, char *master_file); … … 331 331 int GetPhotcodeEquivCodebyCode (int code); 332 332 int GetPhotcodeNsec (int code); 333 int GetPhotcodeNsecfilt ( );333 int GetPhotcodeNsecfilt (void); 334 334 void SetZeroPoint (double ZP); 335 double GetZeroPoint ( );335 double GetZeroPoint (void); 336 336 int *GetPhotcodeEquivList (int code, int *nlist); 337 337 void ParseColorTerms (char *terms, float *X, int *N); -
trunk/Ohana/src/libdvo/include/dvo.update.h
r8638 r21153 275 275 int GetPhotcodeEquivCodebyCode (int code); 276 276 int GetPhotcodeNsec (int code); 277 int GetPhotcodeNsecfilt ( );277 int GetPhotcodeNsecfilt (void); 278 278 void SetZeroPoint (double ZP); 279 279 int *GetPhotcodeEquivList (int code, int *nlist); -
trunk/Ohana/src/libkapa/include/kapa.h
r21060 r21153 181 181 /* KapaColors */ 182 182 int KapaColorByName (char *name); 183 int KapaColormapSize ( );183 int KapaColormapSize (void); 184 184 char *KapaColorRGBString (int N); 185 185 char *KapaColorName (int N); … … 188 188 189 189 /* RotFont.c */ 190 void InitRotFonts PROTO(( ));190 void InitRotFonts PROTO((void)); 191 191 int SetRotFont PROTO((char *name, int size)); 192 192 char *GetRotFont PROTO((int *size)); -
trunk/Ohana/src/libohana/include/ohana.h
r19823 r21153 141 141 } IOBuffer; 142 142 143 extern double hypot( );143 extern double hypot(double,double); 144 144 145 145 /* in string.c */ … … 183 183 /* others */ 184 184 int Fseek PROTO((FILE *f, long offset, int whence)); 185 char *ohana_version PROTO(( ));185 char *ohana_version PROTO((void)); 186 186 187 187 int dgaussjordan PROTO((double **A, double **B, int N, int M)); -
trunk/Ohana/src/misc/include/missing_protos.h
r12875 r21153 13 13 * which depends on this file every time we need to add 14 14 * a new prototype for the SunOS machines. 15 * $Id: missing_protos.h,v 1. 2 2007-04-18 19:21:46eugene Exp $15 * $Id: missing_protos.h,v 1.3 2009-01-22 20:43:24 eugene Exp $ 16 16 * $Locker: $ 17 17 * 18 18 * $Log: not supported by cvs2svn $ 19 * Revision 1.2 2007/04/18 19:21:46 eugene 20 * dropping non-standard includes 21 * 19 22 * Revision 1.1.1.1 2004/11/24 04:39:33 eugene 20 23 * importing elixir components … … 205 208 #else /* not __GNUC__ */ 206 209 #include <floatingpoint.h> 207 void perror( );208 char *strerror( );209 void *memset( );210 double drand48( );211 long strtol( );210 void perror(void); 211 char *strerror(void); 212 void *memset(void); 213 double drand48(void); 214 long strtol(void); 212 215 #endif /* __GNUC__ */ 213 216 #endif /* SUNOS */ -
trunk/Ohana/src/mosastro/include/mosastro.h
r8499 r21153 131 131 void FitGradients PROTO((Gradients *grad)); 132 132 void GetConfig PROTO((char *config, char *field, char *format, int N, void *ptr)); 133 Gradients *GetGradients PROTO(( ));133 Gradients *GetGradients PROTO((void)); 134 134 double GetScatter PROTO((int *Nscatter, double *DL, double *DM, int bright)); 135 135 int LoadStars PROTO((int Nfile, char **file)); … … 141 141 void area_of_region PROTO((CatStats *region)); 142 142 void args PROTO((int *argc, char **argv)); 143 int deproject_raw PROTO(( ));144 int deproject_stars PROTO(( ));143 int deproject_raw PROTO((void)); 144 int deproject_stars PROTO((void)); 145 145 int dump_grads PROTO((Gradients *grad, char *filename)); 146 int dump_match PROTO(( ));147 int dump_rawstars PROTO(( ));146 int dump_match PROTO((void)); 147 int dump_rawstars PROTO((void)); 148 148 int dump_refcat PROTO((StarData *refcat, int Nrefcat)); 149 149 int dump_stars PROTO((FILE *f, StarData *stars, int Nstars)); 150 150 int fake_field PROTO((double RA, double DEC)); 151 void field_combine PROTO(( ));152 void field_stats PROTO(( ));151 void field_combine PROTO((void)); 152 void field_stats PROTO((void)); 153 153 int find_dec_bands PROTO((CatStats *area)); 154 154 void fit_add PROTO((double x1, double y1, double x2, double y2)); … … 156 156 void fit_apply_grads PROTO((Coords *distort, Coords *project, int term)); 157 157 void fit_correct_grads PROTO((Gradients *in, Gradients *out, int term)); 158 void fit_eval PROTO(( ));159 void fit_free PROTO(( ));158 void fit_eval PROTO((void)); 159 void fit_free PROTO((void)); 160 160 void fit_init PROTO((int order)); 161 161 int gaussj PROTO((double **a, int n, double **b, int m)); … … 170 170 StarData *greference PROTO((int *Nrefcat)); 171 171 CatStats *gregions PROTO((CatStats *patch, int *nregion)); 172 int init_chips PROTO(( ));173 int init_field PROTO(( ));174 void init_regions PROTO(( ));172 int init_chips PROTO((void)); 173 int init_field PROTO((void)); 174 void init_regions PROTO((void)); 175 175 int load_chips PROTO((char *filename)); 176 176 int load_field PROTO((char *filename)); … … 184 184 int parse_GSC_line PROTO((CatStats *tregion, char *line)); 185 185 e_time parse_time PROTO((Header *header)); 186 void print_help PROTO(( ));187 int project_ref PROTO(( ));186 void print_help PROTO((void)); 187 int project_ref PROTO((void)); 188 188 int project_refcat PROTO((StarData *refcat, int Nrefcat)); 189 int project_stars PROTO(( ));189 int project_stars PROTO((void)); 190 190 int rfits PROTO((Chip *mychip)); 191 191 int rtext PROTO((Chip *mychip)); -
trunk/Ohana/src/nightd/include/nightd.h
r3466 r21153 28 28 int SetPID (pid_t *Xpid, char *Xuser, char *Xmachine); 29 29 int GetDateTime (char *datestr, char *timestr, float *time); 30 int WaitForMinute ( );31 int GetStatus ( );32 int ResetConfig ( );33 int SendShutdown ( );34 int StartUp ( );35 int SetSignals ( );30 int WaitForMinute (void); 31 int GetStatus (void); 32 int ResetConfig (void); 33 int SendShutdown (void); 34 int StartUp (void); 35 int SetSignals (void); 36 36 void ToggleSuspend (int sig); 37 37 void Shutdown (int sig); … … 40 40 char *ExpandWords (char *line); 41 41 int pcommand (char *line, int timeout); 42 int WaitForPeriod ( );42 int WaitForPeriod (void); 43 43 int DoCommand (char *command, char *name); 44 44 int freeargs (char **arglist); -
trunk/Ohana/src/opihi/cmd.astro/cplot.c
r20936 r21153 75 75 } 76 76 Xvec.Nelements = Npts; 77 Yvec.Nelements = Npts; 77 78 78 79 graphmode.etype = 0; -
trunk/Ohana/src/opihi/dvo/dbExtractAverages.c
r20936 r21153 152 152 break; 153 153 case MAG_CHISQ: 154 // GetPhotcodeEquivCodebyCode (field->photcode)155 154 value.Flt = PhotXm (field->photcode, average, secfilt); 156 155 break; 157 156 case MAG_ERR: 158 // GetPhotcodeEquivCodebyCode (field->photcode)159 157 if ((field->photcode->type == PHOT_REF) || (field->photcode->type == PHOT_DEP)) { 160 158 for (i = 0; i < average[0].Nmeasure; i++) { … … 167 165 } 168 166 break; 167 case MAG_PHOT_FLAGS: 168 if ((field->photcode->type == PHOT_REF) || (field->photcode->type == PHOT_DEP)) { 169 for (i = 0; i < average[0].Nmeasure; i++) { 170 if (field->photcode->code != measure[i].photcode) continue; 171 value.Int = measure[i].photFlags; 172 break; 173 } 174 } else { 175 value.Int = 0; 176 } 177 break; 169 178 case MAG_NCODE: 170 179 // XXX push these into dvo_photcode_ops APIs -
trunk/Ohana/src/opihi/dvo/dbExtractMeasures.c
r20936 r21153 123 123 } else { 124 124 value.Flt = measure[0].dM; 125 } 126 break; 127 case MAG_PHOT_FLAGS: 128 if ((field->photcode->type == PHOT_REF) || (field->photcode->type == PHOT_DEP)) { 129 value.Int = measure[0].photFlags; 130 } else { 131 value.Int = 0; 125 132 } 126 133 break; … … 378 385 break; 379 386 case MEAS_OBJ_ID: /* OK */ 380 // XXX this should probably return average[0].objID381 387 value.Int = average[0].objID; 388 break; 389 case MEAS_CAT_ID: /* OK */ 390 value.Int = average[0].catID; 382 391 break; 383 392 case MEAS_IMAGE_ID: /* OK */ -
trunk/Ohana/src/opihi/dvo/dbFields.c
r20936 r21153 30 30 int GetMagMode (char *string) { 31 31 32 if (!strcasecmp (string, "inst")) return (MAG_INST); 33 if (!strcasecmp (string, "cat")) return (MAG_CAT); 34 if (!strcasecmp (string, "sys")) return (MAG_SYS); 35 if (!strcasecmp (string, "rel")) return (MAG_REL); 36 if (!strcasecmp (string, "cal")) return (MAG_CAL); 37 if (!strcasecmp (string, "ave")) return (MAG_AVE); 38 if (!strcasecmp (string, "ref")) return (MAG_REF); 39 if (!strcasecmp (string, "err")) return (MAG_ERR); 40 if (!strcasecmp (string, "chisq")) return (MAG_CHISQ); 41 if (!strcasecmp (string, "ncode")) return (MAG_NCODE); 42 if (!strcasecmp (string, "nphot")) return (MAG_NPHOT); 32 if (!strcasecmp (string, "inst")) return (MAG_INST); 33 if (!strcasecmp (string, "cat")) return (MAG_CAT); 34 if (!strcasecmp (string, "sys")) return (MAG_SYS); 35 if (!strcasecmp (string, "rel")) return (MAG_REL); 36 if (!strcasecmp (string, "cal")) return (MAG_CAL); 37 if (!strcasecmp (string, "ave")) return (MAG_AVE); 38 if (!strcasecmp (string, "ref")) return (MAG_REF); 39 if (!strcasecmp (string, "err")) return (MAG_ERR); 40 if (!strcasecmp (string, "photflags")) return (MAG_PHOT_FLAGS); 41 if (!strcasecmp (string, "chisq")) return (MAG_CHISQ); 42 if (!strcasecmp (string, "ncode")) return (MAG_NCODE); 43 if (!strcasecmp (string, "nphot")) return (MAG_NPHOT); 43 44 return (MAG_NONE); 44 45 } … … 75 76 } 76 77 77 78 78 // enforce compatibility 79 // XXX this is kind of poorly done 80 if ((code[0].type == PHOT_REF) && (*mode != MAG_ERR)) { 81 *mode = MAG_CAT; 82 } 83 if (code[0].type == PHOT_DEP) { 84 if (useDefault) { 79 if (useDefault) { 80 if (code[0].type == PHOT_REF) { 81 *mode = MAG_CAT; 82 } 83 if (code[0].type == PHOT_DEP) { 85 84 *mode = MAG_REL; 86 85 } … … 186 185 if (!strcasecmp (fieldName, "DETID")) ESCAPE (MEAS_DET_ID, MAG_NONE, OPIHI_INT); 187 186 if (!strcasecmp (fieldName, "OBJID")) ESCAPE (MEAS_OBJ_ID, MAG_NONE, OPIHI_INT); 187 if (!strcasecmp (fieldName, "CATID")) ESCAPE (MEAS_CAT_ID, MAG_NONE, OPIHI_INT); 188 188 if (!strcasecmp (fieldName, "IMAGEID")) ESCAPE (MEAS_IMAGE_ID, MAG_NONE, OPIHI_INT); 189 189 if (!strcasecmp (fieldName, "PSF_QF")) ESCAPE (MEAS_PSF_QF, MAG_NONE, OPIHI_FLT); … … 206 206 field->ID = MEAS_MAG; 207 207 field->magMode = mode; 208 field->type = OPIHI_FLT; 208 switch (mode) { 209 case MAG_NCODE: 210 case MAG_NPHOT: 211 case MAG_PHOT_FLAGS: 212 field->type = OPIHI_INT; 213 break; 214 default: 215 field->type = OPIHI_FLT; 216 break; 217 } 209 218 field->photcode = code; 210 219 return (TRUE); … … 280 289 field->ID = AVE_MAG; 281 290 field->magMode = mode; 282 field->type = OPIHI_FLT; 291 switch (mode) { 292 case MAG_NCODE: 293 case MAG_NPHOT: 294 case MAG_PHOT_FLAGS: 295 field->type = OPIHI_INT; 296 break; 297 default: 298 field->type = OPIHI_FLT; 299 break; 300 } 283 301 field->photcode = code; 284 302 return (TRUE); -
trunk/Ohana/src/opihi/dvo/gimages.c
r14590 r21153 103 103 if (!FindMosaicForImage (image, Nimage, i)) continue; 104 104 105 typehash = wordhash (&image[i].coords.ctype[4]); 106 107 // for non-linear astrometry solutions, a point which is far from the image may 108 // potentially appear to land in the image: at large field-position, the high order 109 // terms which are supposed to be perturbations may dominate the solution 110 111 // XXX this code checks if the image is even in the ballpark. this is not a great 112 // solution. the better way to do this would be to use the linear portions of the fit 113 // only for RD_to_XY, then see if the result is close. 114 { 115 Coords local; 116 double Ro, Do, Xo, Yo, Xs, Ys, Xe, Ye, Radius; 117 118 if (typehash == DistortImage) { 119 Xo = 0.0; 120 Yo = 0.0; 121 } else { 122 Xo = 0.5*image[i].NX; 123 Yo = 0.5*image[i].NY; 124 } 125 126 XY_to_RD (&Ro, &Do, Xo, Yo, &image[i].coords); 127 128 local.crval1 = Ro; 129 local.crval2 = Do; 130 local.crpix1 = local.crpix2 = 0.0; 131 local.cdelt1 = local.cdelt2 = 1.0/3600.0; 132 local.pc1_1 = local.pc2_2 = 1.0; 133 local.pc2_1 = local.pc1_2 = 0.0; 134 local.Npolyterms = 1; 135 strcpy (local.ctype, "RA---TAN"); 136 137 if (typehash == DistortImage) { 138 Xs = -0.5*image[i].NX; 139 Ys = -0.5*image[i].NY; 140 Xe = +0.5*image[i].NX; 141 Ye = +0.5*image[i].NY; 142 } else { 143 Xs = 0.0; 144 Ys = 0.0; 145 Xe = image[i].NX; 146 Ye = image[i].NY; 147 } 148 149 XY_to_RD (&Ro, &Do, Xs, Ys, &image[i].coords); 150 RD_to_XY (&Xo, &Xo, Ro, Do, &local); 151 Radius = hypot (Xo, Yo); 152 // fprintf (stderr, "%s: %f %f %f ", image[i].name, local.crval1, local.crval2, Radius); 153 154 XY_to_RD (&Ro, &Do, Xs, Ye, &image[i].coords); 155 RD_to_XY (&Xo, &Xo, Ro, Do, &local); 156 Radius = MAX (Radius, hypot (Xo, Yo)); 157 // fprintf (stderr, "%f ", Radius); 158 159 XY_to_RD (&Ro, &Do, Xe, Ys, &image[i].coords); 160 RD_to_XY (&Xo, &Xo, Ro, Do, &local); 161 Radius = MAX (Radius, hypot (Xo, Yo)); 162 // fprintf (stderr, "%f ", Radius); 163 164 XY_to_RD (&Ro, &Do, Xe, Ye, &image[i].coords); 165 RD_to_XY (&Xo, &Xo, Ro, Do, &local); 166 Radius = MAX (Radius, hypot (Xo, Yo)); 167 // fprintf (stderr, "%f ", Radius); 168 169 RD_to_XY (&Xo, &Yo, Ra, Dec, &local); 170 // fprintf (stderr, " : %f\n", hypot(Xo,Yo)); 171 if (hypot(Xo,Yo) > 1.5*Radius) continue; 172 // fprintf (stderr, " ** try me **\n"); 173 } 174 105 175 status = RD_to_XY (&X, &Y, Ra, Dec, &image[i].coords); 106 176 if (!finite(X)) continue; 107 177 if (!finite(Y)) continue; 108 178 if (!status) continue; 109 110 typehash = wordhash (&image[i].coords.ctype[4]);111 179 112 180 if (typehash == DistortImage) { -
trunk/Ohana/src/opihi/dvo/skycoverage.c
r19823 r21153 1 1 # include "dvoshell.h" 2 3 int wordhash (char *word); 2 4 3 5 int skycoverage (int argc, char **argv) { 4 6 7 int WITH_MOSAIC, SOLO_MOSAIC; 5 8 int i, N, Nimage, status, TimeSelect, ByName, xs, ys; 6 9 time_t tzero, tend; 7 double pixscale, d Pix, r, d, Xi, Yi, Xs, Ys, x[2], y[2], trange;10 double pixscale, dX, dY, Npts, r, d, Xi, Yi, Xs, Ys, x[2], y[2], trange, RaCenter; 8 11 Image *image; 9 12 char name[256]; … … 12 15 Buffer *buf; 13 16 Coords coords; 17 int typehash; 18 19 WITH_MOSAIC = FALSE; 20 if ((N = get_argument (argc, argv, "+mosaic"))) { 21 remove_argument (N, &argc, argv); 22 WITH_MOSAIC = TRUE; 23 } 24 25 SOLO_MOSAIC = FALSE; 26 if ((N = get_argument (argc, argv, "-mosaic"))) { 27 remove_argument (N, &argc, argv); 28 SOLO_MOSAIC = TRUE; 29 WITH_MOSAIC = TRUE; 30 } 31 32 RaCenter = 0.0; 33 if ((N = get_argument (argc, argv, "-ra-center"))) { 34 remove_argument (N, &argc, argv); 35 RaCenter = atof (argv[N]); 36 remove_argument (N, &argc, argv); 37 } 14 38 15 39 ByName = FALSE; … … 61 85 62 86 if (argc != 4) { 63 gprint (GP_ERR, "USAGE: skycoverage (buffer) (pixscale) ( dPix) [-time start range] [-name name]\n");87 gprint (GP_ERR, "USAGE: skycoverage (buffer) (pixscale) (Npts) [-time start range] [-name name]\n"); 64 88 gprint (GP_ERR, " (buffer) saves bitmapped AIT plot\n"); 65 89 gprint (GP_ERR, " (pixscale) specifies the pixel size in degrees\n"); 90 gprint (GP_ERR, " (Npts) gives the number of test points per image in each dimension\n"); 66 91 gprint (GP_ERR, " note: we need 64800 / (pixscale)^2 pixels to represent the sky\n"); 67 92 return (FALSE); … … 70 95 if ((buf = SelectBuffer (argv[1], ANYBUFFER, TRUE)) == NULL) return (FALSE); 71 96 pixscale = atof(argv[2]); 72 dPix= atof(argv[3]);97 Npts = atof(argv[3]); 73 98 74 99 Nx = 360/pixscale; … … 80 105 strcpy (buf[0].file, "(empty)"); 81 106 82 coords.crval1 = 180;107 coords.crval1 = RaCenter; 83 108 coords.crval2 = 0; 84 109 coords.crpix1 = 0.5*Nx; 85 110 coords.crpix2 = 0.5*Ny; 86 111 strcpy (coords.ctype, "DEC--AIT"); 87 coords.pc1_1 = coords.pc2_2 = 1; 88 coords.pc1_2 = coords.pc2_1 = 0; 112 coords.pc1_1 = -1.0; 113 coords.pc2_2 = +1.0; 114 coords.pc1_2 = 0.0; 115 coords.pc2_1 = 0.0; 89 116 coords.cdelt1 = coords.cdelt2 = pixscale; 90 117 coords.Npolyterms = 0; … … 109 136 } 110 137 138 int DistortImage = wordhash ("-DIS"); 139 111 140 for (i = 0; i < Nimage; i++) { 112 141 if (ByName && strcmp (name, image[i].name)) continue; 113 142 if (TimeSelect && ((image[i].tzero < tzero) || (image[i].tzero+image[i].trate*image[i].NY > tzero + trange))) continue; 114 143 if (!FindMosaicForImage (image, Nimage, i)) continue; 144 145 typehash = wordhash (&image[i].coords.ctype[4]); 146 147 /* DIS images represent a field, not a chip */ 148 if ((typehash == DistortImage) && !WITH_MOSAIC) continue; 149 if ((typehash != DistortImage) && SOLO_MOSAIC) continue; 115 150 116 151 /* project this image to screen display coords */ … … 125 160 status = FALSE; 126 161 127 for (Yi = y[0] + 0.5*dPix; Yi < y[1]; Yi += dPix) { 128 for (Xi = x[0] + 0.5*dPix; Xi < x[1]; Xi += dPix) { 162 dX = (x[1] - x[0]) / Npts; 163 dY = (y[1] - y[0]) / Npts; 164 165 for (Yi = y[0] + 0.5*dY; Yi < y[1]; Yi += dY) { 166 for (Xi = x[0] + 0.5*dX; Xi < x[1]; Xi += dX) { 129 167 XY_to_RD (&r, &d, Xi, Yi, &image[i].coords); 130 168 r = ohana_normalize_angle (r); 131 169 status = RD_to_XY (&Xs, &Ys, r, d, &coords); 170 if (Xs < 0) continue; 171 if (Ys < 0) continue; 172 if (Xs >= Nx) continue; 173 if (Ys >= Ny) continue; 132 174 if (status) { 133 175 xs = (int)Xs; -
trunk/Ohana/src/opihi/include/astro.h
r17419 r21153 9 9 # define ASTRO_H 10 10 11 void InitAstro ( );12 void FreeAstro ( );11 void InitAstro (void); 12 void FreeAstro (void); 13 13 14 14 typedef struct { -
trunk/Ohana/src/opihi/include/basic.h
r17419 r21153 3 3 # include "dvomath.h" 4 4 5 void cleanup ( );6 void InitBasic ( );7 void FreeBasic ( );8 void InitBasic_PantasksClient ( );5 void cleanup (void); 6 void InitBasic (void); 7 void FreeBasic (void); 8 void InitBasic_PantasksClient (void); -
trunk/Ohana/src/opihi/include/data.h
r20936 r21153 33 33 } Book; 34 34 35 void InitData ( );36 void FreeData ( );35 void InitData (void); 36 void FreeData (void); 37 37 38 38 /* in book.c */ 39 void InitBooks ( );39 void InitBooks (void); 40 40 void InitBook (Book *book, char *name); 41 41 void FreeBook (Book *book); … … 44 44 Book *CreateBook (char *name); 45 45 int DeleteBook (Book *book); 46 void ListBooks ( );46 void ListBooks (void); 47 47 48 48 /* in page.c */ … … 61 61 62 62 /* in queues.c */ 63 void InitQueues ( );64 void ListQueues ( );63 void InitQueues (void); 64 void ListQueues (void); 65 65 Queue *FindQueue (char *name); 66 66 Queue *CreateQueue (char *name); … … 151 151 int read_table_vectors (int argc, char **argv, char *extname); 152 152 153 void *db_getConnection ( );153 void *db_getConnection (void); 154 154 155 155 int bracket (double *list, int Nlist, int mode, double value); 156 156 int ibracket (int *list, int Nlist, int mode, double value); 157 157 158 void FreeKapa ( );159 void FreeQueues ( );160 void FreeBooks ( );158 void FreeKapa (void); 159 void FreeQueues (void); 160 void FreeBooks (void); 161 161 162 162 # endif -
trunk/Ohana/src/opihi/include/dimm.h
r4689 r21153 6 6 # include "sbig.h" 7 7 8 void InitDIMM ( );8 void InitDIMM (void); 9 9 10 10 /* telescope.c */ … … 19 19 int setTime (char *lst); 20 20 int getSite (double *lon, double *lat, double *lst); 21 int ParkScope( );22 int SleepScope( );23 int WakeScope( );21 int ParkScope(void); 22 int SleepScope(void); 23 int WakeScope(void); 24 24 25 25 /* Serial.c */ … … 36 36 /* camera.c */ 37 37 int InitCamera (int port); 38 void DumpCameraInfo ( );38 void DumpCameraInfo (void); 39 39 void CameraFullSize (int *x, int *y); 40 40 int SetTemperature (double temp); 41 double GetTemperature ( );42 int DumpCameraStatus ( );41 double GetTemperature (void); 42 int DumpCameraStatus (void); 43 43 int Exposure (double exptime); 44 44 static int readout_callback (float percent); 45 45 int ReadOut (int x, int y, int dx, int dy, int binning, unsigned short *buffer); 46 int OpenShutter ( );47 int CloseShutter ( );46 int OpenShutter (void); 47 int CloseShutter (void); 48 48 49 49 /* this image structure stuff is considered for further development */ -
trunk/Ohana/src/opihi/include/display.h
r20936 r21153 20 20 int SetImage PROTO((KapaImageData *data)); 21 21 22 void QuitKapa PROTO(( ));23 void InitKapa PROTO(( ));22 void QuitKapa PROTO((void)); 23 void InitKapa PROTO((void)); 24 24 int open_kapa PROTO((int entry)); 25 25 int close_kapa PROTO((char *name)); … … 27 27 int DelKapaDevice PROTO((char *name)); 28 28 int FindKapaDevice PROTO((char *name)); 29 char *GetKapaName PROTO(( ));29 char *GetKapaName PROTO((void)); 30 30 31 31 /* calling program need to define a function 'get_variable' which -
trunk/Ohana/src/opihi/include/dvoshell.h
r20936 r21153 33 33 MAG_REF, 34 34 MAG_ERR, 35 MAG_PHOT_FLAGS, 35 36 MAG_CHISQ, 36 37 MAG_NCODE, … … 99 100 MEAS_DET_ID, 100 101 MEAS_OBJ_ID, 102 MEAS_CAT_ID, 101 103 MEAS_IMAGE_ID, 102 104 MEAS_PSF_QF, … … 262 264 double *ExtractMeasuresByDMag PROTO((PhotCode **code, int *mode, int use_first, Average *average, SecFilt *secfilt, Measure *measure, int *nlist, int param)); 263 265 double *ExtractMeasuresDMag PROTO((PhotCode **code, int *mode, Average *average, SecFilt *secfilt, Measure *measure, int *nlist)); 264 void FreeImageSelection PROTO(( ));265 void FreeImageSelection PROTO(( ));266 void FreeImageSelection PROTO((void)); 267 void FreeImageSelection PROTO((void)); 266 268 int GetAverageParam PROTO((char *parname)); 267 void GetAverageParamHelp PROTO(( ));269 void GetAverageParamHelp PROTO((void)); 268 270 int GetMagMode PROTO((char *string)); 269 271 double GetMeasure PROTO((int param, Average *average, Measure *measure, double mag)); … … 271 273 int GetMeasureTypeCode PROTO((Measure *measure)); 272 274 int GetPhotcodeInfo PROTO((char *string, PhotCode **Code, int *Mode)); 273 int GetSelectionParam PROTO(( ));275 int GetSelectionParam PROTO((void)); 274 276 int GetTimeSelection PROTO((time_t *tz, time_t *te)); 275 void InitDVO PROTO(( ));276 void FreeDVO PROTO(( ));277 int InitPhotcodes PROTO(( ));277 void InitDVO PROTO((void)); 278 void FreeDVO PROTO((void)); 279 int InitPhotcodes PROTO((void)); 278 280 Image *LoadImages PROTO((int *Nimage)); 279 281 Image *MatchImage PROTO((unsigned int time, short int source)); … … 285 287 SkyList *SkyListLoadFile PROTO((char *filename)); 286 288 int SetCATDIR PROTO((char *path, int verbose)); 287 char * GetCATDIR PROTO(( ));288 SkyTable *GetSkyTable PROTO(( ));289 char * GetCATDIR PROTO((void)); 290 SkyTable *GetSkyTable PROTO((void)); 289 291 SkyList *SkyListFromFile PROTO((char *filename)); 290 292 SkyRegionSelection *SetRegionSelection PROTO((int *argc, char **argv)); … … 339 341 int get_skyregion (double *Rs, double *Re, double *Ds, double *De); 340 342 int set_skyregion (double Rs, double Re, double Ds, double De); 341 void FreeImageSelection ( );343 void FreeImageSelection (void); 342 344 343 345 void FreeSkyRegionSelection (SkyRegionSelection *selection); … … 345 347 346 348 int dbExtractMeasuresInitTransform (CoordTransformSystem target); 347 int dbExtractMeasuresInitAve ( );348 int dbExtractMeasuresInitMeas ( );349 int dbExtractMeasuresInit ( );349 int dbExtractMeasuresInitAve (void); 350 int dbExtractMeasuresInitMeas (void); 351 int dbExtractMeasuresInit (void); 350 352 351 353 int dbExtractAveragesInitTransform (CoordTransformSystem target); 352 int dbExtractAveragesInit ( );354 int dbExtractAveragesInit (void); 353 355 354 356 int dbExtractImagesInitTransform (CoordTransformSystem target); 355 int dbExtractImagesInit ( );356 int dbExtractImagesReset ( );357 int dbExtractImagesInit (void); 358 int dbExtractImagesReset (void); 357 359 358 360 # endif -
trunk/Ohana/src/opihi/include/imfit.h
r20936 r21153 8 8 9 9 opihi_flt (*fitfunc)(opihi_flt, opihi_flt, opihi_flt *, int, opihi_flt *); 10 void (*imfit_cleanup)( );10 void (*imfit_cleanup)(void); 11 11 12 12 void fgauss_setup (char *name); -
trunk/Ohana/src/opihi/include/mana.h
r17419 r21153 5 5 # ifndef MANA_H 6 6 7 void InitMana ( );8 void FreeMana ( );7 void InitMana (void); 8 void FreeMana (void); 9 9 int *findrowpeaks (float *row, int Nrow, float threshold, int *npeaks); 10 10 -
trunk/Ohana/src/opihi/include/pantasks.h
r20936 r21153 167 167 /* scheduler prototypes */ 168 168 169 void InitPantasks ( );170 void FreePantasks ( );171 172 void InitPantasksServer ( );173 void FreePantasksServer ( );174 175 void InitPantasksClient ( );176 void FreePantasksClient ( );177 178 void InitTasks ( );179 void FreeTasks ( );180 181 Task *NextTask ( );169 void InitPantasks (void); 170 void FreePantasks (void); 171 172 void InitPantasksServer (void); 173 void FreePantasksServer (void); 174 175 void InitPantasksClient (void); 176 void FreePantasksClient (void); 177 178 void InitTasks (void); 179 void FreeTasks (void); 180 181 Task *NextTask (void); 182 182 Task *FindTask (char *name); 183 183 void ListTasks (int verbose); … … 186 186 Task *CreateTask (char *name); 187 187 int ValidateTask (Task *task, int RequireStatic); 188 int RegisterNewTask ( );189 int DeleteNewTask ( );190 Task *GetNewTask ( );191 Task *GetActiveTask ( );188 int RegisterNewTask (void); 189 int DeleteNewTask (void); 190 Task *GetNewTask (void); 191 Task *GetActiveTask (void); 192 192 void SetTaskTimer (struct timeval *timer); 193 193 double GetTaskTimer (struct timeval start, int verbose); 194 void InitTaskTimers ( );194 void InitTaskTimers (void); 195 195 int TaskHash (char *input); 196 196 int RemoveTask (Task *task); … … 200 200 void UpdateTaskTimerStats (Task *task, int mode, double dtime); 201 201 202 int NextJobID ( );203 void InitJobIDs ( );204 void FreeJobIDs ( );202 int NextJobID (void); 203 void InitJobIDs (void); 204 void FreeJobIDs (void); 205 205 int FreeJobID (int ID); 206 206 207 void InitJobs ( );208 void FreeJobs ( );209 210 Job *NextJob ( );207 void InitJobs (void); 208 void FreeJobs (void); 209 210 Job *NextJob (void); 211 211 Job *FindJob (int JobID); 212 void ListJobs ( );212 void ListJobs (void); 213 213 Job *CreateJob (Task *task); 214 214 int SubmitJob (Job *job); … … 217 217 void FreeJob (Job *job); 218 218 219 float CheckJobs ( );220 float CheckTasks ( );221 int CheckSystem ( );222 int CheckController ( );219 float CheckJobs (void); 220 float CheckTasks (void); 221 int CheckSystem (void); 222 int CheckController (void); 223 223 int CheckTimeRanges (TimeRange *ranges, int Nranges); 224 224 int BumpTimeRanges (TimeRange *ranges, int Nranges); … … 230 230 int DeleteControllerJob (Job *job); 231 231 Job *FindControllerJob (int JobID); 232 int StartController ( );232 int StartController (void); 233 233 int ControllerCommand (char *command, char *response, IOBuffer *buffer); 234 234 int SubmitLocalJob (Job *job); 235 235 int CheckLocalJob (Job *job); 236 236 int CheckLocalJobStatus (Job *job); 237 void InitTaskTimers ( );237 void InitTaskTimers (void); 238 238 CommandF *FindControllerCommand (char *cmd); 239 int QuitController ( );240 int StopController ( );241 int RestartController ( );242 int VerboseMode ( );239 int QuitController (void); 240 int StopController (void); 241 int RestartController (void); 242 int VerboseMode (void); 243 243 int KillLocalJob (Job *job); 244 int CheckControllerOutput ( );245 int PrintControllerOutput ( );244 int CheckControllerOutput (void); 245 int PrintControllerOutput (void); 246 246 247 247 int AddHost (char *hostname, int max_threads); 248 248 int DeleteHost (char *hostname); 249 249 250 int FlushControllerOutput ( );250 int FlushControllerOutput (void); 251 251 int KillControllerJob (Job *job); 252 int CheckControllerStatus ( );252 int CheckControllerStatus (void); 253 253 void gotsignal (int signum); 254 254 int client_shell (int argc, char **argv); 255 255 256 void InitClients ( );256 void InitClients (void); 257 257 void AddNewClient (int client); 258 258 int DeleteClient (int client); … … 261 261 // functions related to the server threads 262 262 void CheckTasksSetState (int state); 263 int CheckTasksGetState ( );263 int CheckTasksGetState (void); 264 264 void *CheckTasksThread (void *data); 265 265 266 266 void CheckJobsSetState (int state); 267 int CheckJobsGetState ( );267 int CheckJobsGetState (void); 268 268 void *CheckJobsThread (void *data); 269 269 270 270 void CheckControllerSetState (int state); 271 int CheckControllerGetState ( );271 int CheckControllerGetState (void); 272 272 void *CheckControllerThread (void *data); 273 273 274 274 void CheckInputsSetState (int state); 275 int CheckInputsGetState ( );275 int CheckInputsGetState (void); 276 276 void *CheckInputsThread (void *data); 277 277 278 278 // functions related to the queue of input files 279 void InitInputs ( );280 void FreeInputs ( );279 void InitInputs (void); 280 void FreeInputs (void); 281 281 void AddNewInput (char *input); 282 282 int DeleteInput (char *input); 283 void CheckInputs ( );284 285 void SerialThreadLock ( );286 void SerialThreadUnlock ( );287 288 int InitPassword ( );283 void CheckInputs (void); 284 285 void SerialThreadLock (void); 286 void SerialThreadUnlock (void); 287 288 int InitPassword (void); 289 289 int CheckPassword (int BindSocket); 290 290 291 int FlushJobs ( );291 int FlushJobs (void); -
trunk/Ohana/src/opihi/include/pclient.h
r17419 r21153 44 44 IOBuffer child_stderr; 45 45 46 int InitChild ( );47 int FreeChild ( );48 int CheckChild ( );49 void CheckChildStatus ( );46 int InitChild (void); 47 int FreeChild (void); 48 int CheckChild (void); 49 void CheckChildStatus (void); 50 50 51 void InitPclient ( );52 void FreePclient ( );51 void InitPclient (void); 52 void FreePclient (void); 53 53 void gotsignal (int signum); 54 54 -
trunk/Ohana/src/opihi/include/pcontrol.h
r20047 r21153 154 154 // # define ABORT(STRING) { gprint (GP_ERR, "programming error: %s\n", STRING); raise (SIGINT); exit (2); } 155 155 156 void InitPcontrol ( );157 void FreePcontrol ( );156 void InitPcontrol (void); 157 void FreePcontrol (void); 158 158 159 159 /*** StackOps.c ***/ 160 Stack *InitStack ( );160 Stack *InitStack (void); 161 161 void FreeStack (Stack *stack); 162 162 int PushStack (Stack *stack, int where, void *object, int id, char *name); … … 173 173 174 174 /*** CheckSystem.c ***/ 175 int CheckSystem ( );175 int CheckSystem (void); 176 176 void *CheckSystem_Threaded (void *data); 177 177 int CheckBusyJobs (float delay); … … 214 214 215 215 /*** misc files ***/ 216 int VerboseMode ( ); // in verbose.c216 int VerboseMode (void); // in verbose.c 217 217 void gotsignal (int signum); // in pcontrol.c 218 218 219 219 /*** IDops.c ***/ 220 void InitIDs ( );221 IDtype NextJobID ( );222 IDtype NextHostID ( );220 void InitIDs (void); 221 IDtype NextJobID (void); 222 IDtype NextHostID (void); 223 223 void PrintID (gpDest dest, IDtype ID); 224 224 IDtype GetID (char *IDword); 225 225 226 226 /*** CheckPoint.c ***/ 227 int SetCheckPoint ( );228 int ClearCheckPoint ( );229 int TestCheckPoint ( );227 int SetCheckPoint (void); 228 int ClearCheckPoint (void); 229 int TestCheckPoint (void); 230 230 231 231 /*** HostOps.c ***/ 232 void InitHostStacks ( );233 void FreeHostStacks ( );232 void InitHostStacks (void); 233 void FreeHostStacks (void); 234 234 Stack *GetHostStack (int StackID); 235 235 char *GetHostStackName (int StackID); … … 246 246 void DownHost (Host *host); 247 247 void OffHost (Host *host); 248 int DownHosts ( );248 int DownHosts (void); 249 249 int StopHost (Host *host); 250 250 int StopHostResponse (Host *host); … … 254 254 int InitJobOutput (JobOutput *output); 255 255 int ResetJobOutput (JobOutput *output); 256 void InitJobStacks ( );257 void FreeJobStacks ( );256 void InitJobStacks (void); 257 void FreeJobStacks (void); 258 258 Stack *GetJobStack (int StackID); 259 259 char *GetJobStackName (int StackID); -
trunk/Ohana/src/opihi/include/shell.h
r17419 r21153 16 16 typedef enum {GP_LOG, GP_ERR} gpDest; 17 17 18 typedef int CommandF ( );18 typedef int CommandF (int argc, char **argv); 19 19 20 20 typedef struct sockaddr_in SockAddress; … … 65 65 int opihi PROTO((int argc, char **argv)); 66 66 int multicommand PROTO((char *line)); 67 int getServer ( );67 int getServer (void); 68 68 void multicommand_InitServer PROTO((void)); 69 void multicommand_StopServer ( );69 void multicommand_StopServer (void); 70 70 71 71 int command PROTO((char *line, char **outline, int VERBOSE)); … … 74 74 char *parse PROTO((char *line)); 75 75 char **parse_commands PROTO((char *, int *)); 76 void welcome PROTO(( ));76 void welcome PROTO((void)); 77 77 78 78 int add_listentry PROTO((int ThisList, char *line)); … … 85 85 int is_task_exec PROTO((char *line)); 86 86 int is_macro_create PROTO((char *line)); 87 void InitLists PROTO(( ));88 int current_list_depth ( );89 int increase_list_depth ( );90 int decrease_list_depth ( );87 void InitLists PROTO((void)); 88 int current_list_depth (void); 89 int increase_list_depth (void); 90 int decrease_list_depth (void); 91 91 char *get_next_listentry (int ThisList); 92 92 93 void InitCommands PROTO(( ));93 void InitCommands PROTO((void)); 94 94 void AddCommand PROTO((Command *new)); 95 95 int DeleteCommand PROTO((Command *command)); … … 105 105 int GetMacroDepth PROTO((void)); 106 106 void ListMacro PROTO((Macro *macro)); 107 void ListMacros PROTO(( ));107 void ListMacros PROTO((void)); 108 108 void FreeMacro PROTO((Macro *macro)); 109 109 CommandF *find_macro_command PROTO((char *name)); … … 151 151 char *memstr PROTO((char *m1, char *m2, int n)); 152 152 int write_fmt PROTO((int fd, char *format, ...)); 153 char *opihi_version PROTO(( ));153 char *opihi_version PROTO((void)); 154 154 char *strip_version PROTO((char *input)); 155 155 156 156 /* gprint functions */ 157 void gprintInit PROTO(( ));157 void gprintInit PROTO((void)); 158 158 gpStream *gprintGetStream PROTO((gpDest dest)); 159 159 void gprintSetBuffer PROTO((gpDest dest)); … … 172 172 int GetClientSocket (char *hostname); 173 173 int InitServerSocket_Named (char *hostname, SockAddress *Address); 174 int DefineValidIP ( );174 int DefineValidIP (void); 175 175 176 void FreeCommands ( );177 void FreeMacros ( );178 void FreeBuffers ( );179 void FreeVectors ( );180 void FreeVariables ( );181 void FreeLists ( );176 void FreeCommands (void); 177 void FreeMacros (void); 178 void FreeBuffers (void); 179 void FreeVectors (void); 180 void FreeVariables (void); 181 void FreeLists (void); 182 182 183 183 # endif -
trunk/Ohana/src/photdbc/include/photdbc.h
r17284 r21153 111 111 void TrapSignal (int sig); 112 112 void SetProtect (int mode); 113 int SetSignals ( );113 int SetSignals (void); 114 114 int copy_images (char *outdir); -
trunk/Ohana/src/relastro/include/relastro.h
r17243 r21153 139 139 int args PROTO((int argc, char **argv)); 140 140 int bcatalog PROTO((Catalog *subcatalog, Catalog *catalog)); 141 void clean_images PROTO(( ));141 void clean_images PROTO((void)); 142 142 void clean_measures PROTO((Catalog *catalog, int Ncatalog, int final)); 143 void clean_mosaics PROTO(( ));143 void clean_mosaics PROTO((void)); 144 144 void clean_stars PROTO((Catalog *catalog, int Ncatalog)); 145 145 int corner_check PROTO((double *x1, double *y1, double *x2, double *y2)); 146 void dumpGrid PROTO(( ));147 void dump_grid PROTO(( ));146 void dumpGrid PROTO((void)); 147 void dump_grid PROTO((void)); 148 148 int edge_check PROTO((double *x1, double *y1, double *x2, double *y2)); 149 149 void findImages PROTO((Catalog *catalog, int Ncatalog)); … … 154 154 void TrapSignal (int sig); 155 155 void SetProtect (int mode); 156 int SetSignals ( );156 int SetSignals (void); 157 157 158 158 GSCRegion *find_regions PROTO((Image *image, int Nimage, int *Nregions, GSCRegion *fullregion)); … … 202 202 void plot_defaults PROTO((Graphdata *graphdata)); 203 203 void plot_grid PROTO((Catalog *catalog)); 204 void plot_images PROTO(( ));204 void plot_images PROTO((void)); 205 205 void plot_list PROTO((Graphdata *graphdata, double *xlist, double *ylist, int N, char *label, char *file)); 206 206 void plot_mosaic_fields PROTO((Catalog *catalog)); 207 void plot_mosaics PROTO(( ));207 void plot_mosaics PROTO((void)); 208 208 void plot_scatter PROTO((Catalog *catalog, int Ncatalog)); 209 209 void plot_star_coords PROTO((Catalog *catalog, int Ncatalog)); … … 212 212 int setExclusions PROTO((Catalog *catalog, int Ncatalog)); 213 213 void setMcal PROTO((Catalog *catalog, int Poor)); 214 void setMcalFinal PROTO(( ));214 void setMcalFinal PROTO((void)); 215 215 int setMcalOutput PROTO((Catalog *catalog, int Ncatalog)); 216 216 void setMgrid PROTO((Catalog *catalog)); … … 238 238 StatType statsStarX PROTO((Catalog *catalog, int Ncatalog)); 239 239 void wcatalog PROTO((Catalog *catalog)); 240 void wimages PROTO(( ));240 void wimages PROTO((void)); 241 241 void write_coords PROTO((Header *header, Coords *coords)); 242 242 … … 289 289 290 290 float GetAstromError (Measure *measure, int mode); 291 int relastro_objects ( );291 int relastro_objects (void); 292 292 int UpdateObjectOffsets (SkyList *skylist); -
trunk/Ohana/src/relphot/include/relphot.h
r20323 r21153 125 125 int args PROTO((int argc, char **argv)); 126 126 int bcatalog PROTO((Catalog *subcatalog, Catalog *catalog)); 127 void clean_images PROTO(( ));127 void clean_images PROTO((void)); 128 128 void clean_measures PROTO((Catalog *catalog, int Ncatalog, int final)); 129 void clean_mosaics PROTO(( ));129 void clean_mosaics PROTO((void)); 130 130 void clean_stars PROTO((Catalog *catalog, int Ncatalog)); 131 131 int corner_check PROTO((double *x1, double *y1, double *x2, double *y2)); 132 void dumpGrid PROTO(( ));133 void dump_grid PROTO(( ));132 void dumpGrid PROTO((void)); 133 void dump_grid PROTO((void)); 134 134 int edge_check PROTO((double *x1, double *y1, double *x2, double *y2)); 135 135 void findImages PROTO((Catalog *catalog, int Ncatalog)); … … 140 140 void TrapSignal (int sig); 141 141 void SetProtect (int mode); 142 int SetSignals ( );142 int SetSignals (void); 143 143 144 144 void freeGridBins PROTO((int Ncatalog)); … … 179 179 void plot_defaults PROTO((Graphdata *graphdata)); 180 180 void plot_grid PROTO((Catalog *catalog)); 181 void plot_images PROTO(( ));181 void plot_images PROTO((void)); 182 182 void plot_list PROTO((Graphdata *graphdata, double *xlist, double *ylist, int N, char *label, char *format, ...)); 183 183 void plot_mosaic_fields PROTO((Catalog *catalog)); 184 void plot_mosaics PROTO(( ));184 void plot_mosaics PROTO((void)); 185 185 void plot_scatter PROTO((Catalog *catalog, int Ncatalog)); 186 186 void plot_star_coords PROTO((Catalog *catalog, int Ncatalog)); … … 190 190 int setExclusions PROTO((Catalog *catalog, int Ncatalog)); 191 191 void setMcal PROTO((Catalog *catalog, int Poor)); 192 void setMcalFinal PROTO(( ));192 void setMcalFinal PROTO((void)); 193 193 int setMcalOutput PROTO((Catalog *catalog, int Ncatalog)); 194 194 void setMgrid PROTO((Catalog *catalog)); … … 217 217 StatType statsStarX PROTO((Catalog *catalog, int Ncatalog)); 218 218 void wcatalog PROTO((Catalog *catalog)); 219 void wimages PROTO(( ));219 void wimages PROTO((void)); 220 220 void write_coords PROTO((Header *header, Coords *coords)); 221 int relphot_objects ( );221 int relphot_objects (void); -
trunk/Ohana/src/relphot/src/StarOps.c
r20936 r21153 207 207 if (isnan(Msys)) continue; 208 208 209 // XXX this is a hack for the 2MASS search; better to save an average value? 210 if (catalog[i].measure[m].qPSF < 0.85) continue; 211 209 212 list[N] = Msys - catalog[i].measure[m].Mcal; 210 213 dlist[N] = MAX (catalog[i].measure[m].dM, MIN_ERROR); -
trunk/Ohana/src/relphot/src/relphot.c
r20537 r21153 125 125 if ((i == 1) || (i == 5) || (i == 9) || (i == 13)) clean_measures (catalog, Ncatalog, FALSE); 126 126 if ((i == 2) || (i == 6) || (i == 10) || (i == 14)) clean_stars (catalog, Ncatalog); 127 if ((i == 4) || (i == 8) || (i == 12) || (i == 16)) clean_mosaics ( catalog, Ncatalog);127 if ((i == 4) || (i == 8) || (i == 12) || (i == 16)) clean_mosaics (); 128 128 if ((i == 4) || (i == 8) || (i == 12) || (i == 16)) clean_images (); 129 129 global_stats (catalog, Ncatalog); -
trunk/Ohana/src/relphot/src/relphot_objects.c
r17242 r21153 4 4 5 5 int i, j, k, m; 6 int Nsecfilt; 6 7 7 8 SkyTable *sky = NULL; … … 39 40 // XXX consider what gets reset (only PHOTOM flags) 40 41 if (RESET) { 42 Nsecfilt = catalog.Nsecfilt; 41 43 for (j = 0; j < catalog.Naverage; j++) { 42 44 catalog.average[j].code = 0; 45 for (k = 0; k < Nsecfilt; k++) { 46 catalog.secfilt[j*Nsecfilt + k].M = NAN; 47 catalog.secfilt[j*Nsecfilt + k].dM = NAN; 48 catalog.secfilt[j*Nsecfilt + k].Xm = NAN_S_SHORT; 49 catalog.secfilt[j*Nsecfilt + k].Ncode = 0; 50 catalog.secfilt[j*Nsecfilt + k].Nused = 0; 51 catalog.secfilt[j*Nsecfilt + k].dummy = 0; 52 } 43 53 m = catalog.average[j].measureOffset; 44 54 for (k = 0; k < catalog.average[j].Nmeasure; k++) { -
trunk/Ohana/src/uniphot/include/uniphot.h
r16061 r21153 73 73 void PlotVector PROTO((int Npts, double *vect, int mode, int N)); 74 74 void PrepPlotting PROTO((int Npts, Graphdata *graphmode, int N)); 75 void XDead PROTO(( ));75 void XDead PROTO((void)); 76 76 int args PROTO((int argc, char **argv)); 77 void dumpresult PROTO(( ));77 void dumpresult PROTO((void)); 78 78 Group *find_image_sgroups PROTO((FITS_DB *db, ImageLink **imlink, int *Nsgroup)); 79 79 Group *find_image_tgroups PROTO((FITS_DB *db, ImageLink **imlink, int *Ntgroup)); … … 101 101 void TrapSignal (int sig); 102 102 void SetProtect (int mode); 103 int SetSignals ( );103 int SetSignals (void); 104 104 int subset_images (FITS_DB *db); 105 105 void update (FITS_DB *db, Group *sgroup, int Nsgroup);
Note:
See TracChangeset
for help on using the changeset viewer.
