Changeset 20840
- Timestamp:
- Nov 25, 2008, 4:52:39 PM (17 years ago)
- Location:
- branches/eam_branch_20081124/Ohana/src
- Files:
-
- 7 edited
-
delstar/src/parse_time.c (modified) (3 diffs)
-
imregister/base/parse_time.c (modified) (3 diffs)
-
kapa2/src/LoadObject.c (modified) (1 diff)
-
kapa2/src/PaintOverlay.c (modified) (1 diff)
-
libdvo/include/ps1_dev_3_defs.h (modified) (1 diff)
-
libkapa/src/KiiPicture.c (modified) (1 diff)
-
mosastro/src/parse_time.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20081124/Ohana/src/delstar/src/parse_time.c
r12332 r20840 31 31 gfits_scan (header, UTKeyword, "%s", 1, line); 32 32 /* remove ':' characters */ 33 for (c = strchr (line, 0x3a); c != (char *)NULL; c = strchr (line, 0x3a)) { *c = ' '; }33 for (c = strchr (line, 0x3a); c != NULL; c = strchr (line, 0x3a)) { *c = ' '; } 34 34 sscanf (line, "%d %d %d", &hour, &min, &sec); 35 35 36 36 /* parse mode line */ 37 37 uppercase (DateMode); 38 for (Ny = 0, c = strchr (DateMode, 'Y'); c != (char )NULL; c = strchr (c + 1, 'Y'), Ny++);38 for (Ny = 0, c = strchr (DateMode, 'Y'); c != NULL; c = strchr (c + 1, 'Y'), Ny++); 39 39 if ((Ny != 2) && (Ny != 4)) { 40 40 Shutdown ("error in DATE-MODE format: %s", DateMode); … … 43 43 pm = strchr (DateMode, 'M'); 44 44 pd = strchr (DateMode, 'D'); 45 if ((py == (char *) NULL) || (pm == (char *) NULL) || (pd == (char *)NULL)) {45 if ((py == NULL) || (pm == NULL) || (pd == NULL)) { 46 46 Shutdown ("error in DATE-MODE format: %s", DateMode); 47 47 } … … 65 65 gfits_scan (header, DateKeyword, "%s", 1, line); 66 66 /* remove possible separators: ':', '/' '.', '-' */ 67 for (c = strchr (line, 0x3a); c != (char *)NULL; c = strchr (line, 0x3a)) { *c = ' '; }68 for (c = strchr (line, 0x2f); c != (char *)NULL; c = strchr (line, 0x2f)) { *c = ' '; }69 for (c = strchr (line, 0x2e); c != (char *)NULL; c = strchr (line, 0x2e)) { *c = ' '; }70 for (c = strchr (line, 0x2d); c != (char *)NULL; c = strchr (line, 0x2d)) { *c = ' '; }67 for (c = strchr (line, 0x3a); c != NULL; c = strchr (line, 0x3a)) { *c = ' '; } 68 for (c = strchr (line, 0x2f); c != NULL; c = strchr (line, 0x2f)) { *c = ' '; } 69 for (c = strchr (line, 0x2e); c != NULL; c = strchr (line, 0x2e)) { *c = ' '; } 70 for (c = strchr (line, 0x2d); c != NULL; c = strchr (line, 0x2d)) { *c = ' '; } 71 71 72 72 Nf = 0; -
branches/eam_branch_20081124/Ohana/src/imregister/base/parse_time.c
r14590 r20840 31 31 warn_scan (header, UTKeyword, "%s", 1, line); 32 32 /* remove ':' characters */ 33 for (c = strchr (line, 0x3a); c != (char *)NULL; c = strchr (line, 0x3a)) { *c = ' '; }33 for (c = strchr (line, 0x3a); c != NULL; c = strchr (line, 0x3a)) { *c = ' '; } 34 34 sscanf (line, "%d %d %d", &hour, &min, &sec); 35 35 36 36 /* parse mode line */ 37 37 uppercase (DateMode); 38 for (Ny = 0, c = strchr (DateMode, 'Y'); c != (char )NULL; c = strchr (c + 1, 'Y'), Ny++);38 for (Ny = 0, c = strchr (DateMode, 'Y'); c != NULL; c = strchr (c + 1, 'Y'), Ny++); 39 39 if ((Ny != 2) && (Ny != 4)) { 40 40 fprintf (stderr, "error in DATE-MODE format: %s\n", DateMode); … … 44 44 pm = strchr (DateMode, 'M'); 45 45 pd = strchr (DateMode, 'D'); 46 if ((py == (char *) NULL) || (pm == (char *) NULL) || (pd == (char *)NULL)) {46 if ((py == NULL) || (pm == NULL) || (pd == NULL)) { 47 47 fprintf (stderr, "error in DATE-MODE format: %s\n", DateMode); 48 48 exit (0); … … 70 70 warn_scan (header, DateKeyword, "%s", 1, line); 71 71 /* remove possible separators: ':', '/' '.', '-' */ 72 for (c = strchr (line, 0x3a); c != (char *)NULL; c = strchr (line, 0x3a)) { *c = ' '; }73 for (c = strchr (line, 0x2f); c != (char *)NULL; c = strchr (line, 0x2f)) { *c = ' '; }74 for (c = strchr (line, 0x2e); c != (char *)NULL; c = strchr (line, 0x2e)) { *c = ' '; }75 for (c = strchr (line, 0x2d); c != (char *)NULL; c = strchr (line, 0x2d)) { *c = ' '; }72 for (c = strchr (line, 0x3a); c != NULL; c = strchr (line, 0x3a)) { *c = ' '; } 73 for (c = strchr (line, 0x2f); c != NULL; c = strchr (line, 0x2f)) { *c = ' '; } 74 for (c = strchr (line, 0x2e); c != NULL; c = strchr (line, 0x2e)) { *c = ' '; } 75 for (c = strchr (line, 0x2d); c != NULL; c = strchr (line, 0x2d)) { *c = ' '; } 76 76 77 77 Nf = 0; -
branches/eam_branch_20081124/Ohana/src/kapa2/src/LoadObject.c
r17466 r20840 123 123 } 124 124 if (Nbytes_send != Npts_send*sizeof(float)) { 125 fprintf (stderr, "Kapa Communication error: unexpected data size %d vs % d\n", Nbytes_send, Npts_send*sizeof(float));125 fprintf (stderr, "Kapa Communication error: unexpected data size %d vs %ld\n", Nbytes_send, Npts_send*sizeof(float)); 126 126 } 127 127 -
branches/eam_branch_20081124/Ohana/src/kapa2/src/PaintOverlay.c
r19939 r20840 5 5 int i; 6 6 int dX, dY, dx, dy; 7 int x, y,Xmin, Ymin, Xmax, Ymax, Xrange, Yrange;7 int Xmin, Ymin, Xmax, Ymax, Xrange, Yrange; 8 8 double t, expand, X, Y, pX, pY; 9 9 -
branches/eam_branch_20081124/Ohana/src/libdvo/include/ps1_dev_3_defs.h
r17190 r20840 1 Image *Image_PS1_DEV_3_ToInternal (Image_PS1_DEV_3 *in, int Nvalues); 2 Image_PS1_DEV_3 *ImageInternalTo_PS1_DEV_3 (Image *in, int Nvalues); 3 1 4 PhotCode *PhotCode_PS1_DEV_3_To_Internal (PhotCode_PS1_DEV_3 *in, int Nvalues); 2 5 PhotCode_PS1_DEV_3 *PhotCode_Internal_To_PS1_DEV_3 (PhotCode *in, int Nvalues); -
branches/eam_branch_20081124/Ohana/src/libkapa/src/KiiPicture.c
r19828 r20840 108 108 int KiiNewPicture2D (int fd, KiiImage *image, KapaImageData *data, Coords *coords) { 109 109 110 int i, j; 111 int Npix, Ncolors, NNcolors, size; 112 float *in, min, max; 113 char *out, *outbuffer; 114 double a1, a2; 110 int j; 111 int Npix, Ncolors, size; 112 float min, max; 115 113 116 114 Npix = image[0].Nx*image[0].Ny; -
branches/eam_branch_20081124/Ohana/src/mosastro/src/parse_time.c
r7080 r20840 32 32 gfits_scan (header, UTKeyword, "%s", 1, line); 33 33 /* remove ':' characters */ 34 for (c = strchr (line, 0x3a); c != (char *)NULL; c = strchr (line, 0x3a)) { *c = ' '; }34 for (c = strchr (line, 0x3a); c != NULL; c = strchr (line, 0x3a)) { *c = ' '; } 35 35 sscanf (line, "%d %d %d", &hour, &min, &sec); 36 36 37 37 /* parse mode line */ 38 38 uppercase (DateMode); 39 for (Ny = 0, c = strchr (DateMode, 'Y'); c != (char )NULL; c = strchr (c + 1, 'Y'), Ny++);39 for (Ny = 0, c = strchr (DateMode, 'Y'); c != NULL; c = strchr (c + 1, 'Y'), Ny++); 40 40 if ((Ny != 2) && (Ny != 4)) { 41 41 fprintf (stderr, "error in DATE-MODE format: %s\n", DateMode); … … 45 45 pm = strchr (DateMode, 'M'); 46 46 pd = strchr (DateMode, 'D'); 47 if ((py == (char *) NULL) || (pm == (char *) NULL) || (pd == (char *)NULL)) {47 if ((py == NULL) || (pm == NULL) || (pd == NULL)) { 48 48 fprintf (stderr, "error in DATE-MODE format: %s\n", DateMode); 49 49 exit (1); … … 71 71 gfits_scan (header, DateKeyword, "%s", 1, line); 72 72 /* remove possible separators: ':', '/' '.', '-' */ 73 for (c = strchr (line, 0x3a); c != (char *)NULL; c = strchr (line, 0x3a)) { *c = ' '; }74 for (c = strchr (line, 0x2f); c != (char *)NULL; c = strchr (line, 0x2f)) { *c = ' '; }75 for (c = strchr (line, 0x2e); c != (char *)NULL; c = strchr (line, 0x2e)) { *c = ' '; }76 for (c = strchr (line, 0x2d); c != (char *)NULL; c = strchr (line, 0x2d)) { *c = ' '; }73 for (c = strchr (line, 0x3a); c != NULL; c = strchr (line, 0x3a)) { *c = ' '; } 74 for (c = strchr (line, 0x2f); c != NULL; c = strchr (line, 0x2f)) { *c = ' '; } 75 for (c = strchr (line, 0x2e); c != NULL; c = strchr (line, 0x2e)) { *c = ' '; } 76 for (c = strchr (line, 0x2d); c != NULL; c = strchr (line, 0x2d)) { *c = ' '; } 77 77 78 78 Nf = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
