Changeset 9187 for trunk/ippdb/tests/pop.c
- Timestamp:
- Oct 3, 2006, 6:32:18 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/pop.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/pop.c
r9173 r9187 298 298 psF32 ccd_temp; 299 299 psF64 posang; 300 301 dbh = psDBInit("localhost", "test", NULL, "test"); 302 if (!dbh) { 303 exit(EXIT_FAILURE); 304 } 305 306 if (!rawDetrendExpPop(dbh, (char **)&exp_tag, (char **)&camera, (char **)&telescope, (char **)&exp_type, &imfiles, (char **)&filter, &airmass, &ra, &decl, &exp_time, &bg, &bg_stdev, &bg_mean_stdev, &alt, &az, &ccd_temp, &posang)) { 300 char obstype[256]; 301 302 dbh = psDBInit("localhost", "test", NULL, "test"); 303 if (!dbh) { 304 exit(EXIT_FAILURE); 305 } 306 307 if (!rawDetrendExpPop(dbh, (char **)&exp_tag, (char **)&camera, (char **)&telescope, (char **)&exp_type, &imfiles, (char **)&filter, &airmass, &ra, &decl, &exp_time, &bg, &bg_stdev, &bg_mean_stdev, &alt, &az, &ccd_temp, &posang, (char **)&obstype)) { 307 308 exit(EXIT_FAILURE); 308 309 } … … 330 331 psF32 ccd_temp; 331 332 psF64 posang; 332 333 dbh = psDBInit("localhost", "test", NULL, "test"); 334 if (!dbh) { 335 exit(EXIT_FAILURE); 336 } 337 338 if (!rawScienceExpPop(dbh, (char **)&exp_tag, (char **)&camera, (char **)&telescope, (char **)&exp_type, &imfiles, (char **)&filter, &airmass, &ra, &decl, &exp_time, &bg, &bg_stdev, &bg_mean_stdev, &alt, &az, &ccd_temp, &posang)) { 333 char obstype[256]; 334 335 dbh = psDBInit("localhost", "test", NULL, "test"); 336 if (!dbh) { 337 exit(EXIT_FAILURE); 338 } 339 340 if (!rawScienceExpPop(dbh, (char **)&exp_tag, (char **)&camera, (char **)&telescope, (char **)&exp_type, &imfiles, (char **)&filter, &airmass, &ra, &decl, &exp_time, &bg, &bg_stdev, &bg_mean_stdev, &alt, &az, &ccd_temp, &posang, (char **)&obstype)) { 339 341 exit(EXIT_FAILURE); 340 342 } … … 362 364 psF32 ccd_temp; 363 365 psF64 posang; 364 365 dbh = psDBInit("localhost", "test", NULL, "test"); 366 if (!dbh) { 367 exit(EXIT_FAILURE); 368 } 369 370 if (!rawImfilePop(dbh, (char **)&exp_tag, (char **)&class, (char **)&class_id, (char **)&uri, (char **)&exp_type, (char **)&filter, &airmass, &ra, &decl, &exp_time, &bg, &bg_stdev, &bg_mean_stdev, &alt, &az, &ccd_temp, &posang)) { 366 char obstype[256]; 367 368 dbh = psDBInit("localhost", "test", NULL, "test"); 369 if (!dbh) { 370 exit(EXIT_FAILURE); 371 } 372 373 if (!rawImfilePop(dbh, (char **)&exp_tag, (char **)&class, (char **)&class_id, (char **)&uri, (char **)&exp_type, (char **)&filter, &airmass, &ra, &decl, &exp_time, &bg, &bg_stdev, &bg_mean_stdev, &alt, &az, &ccd_temp, &posang, (char **)&obstype)) { 371 374 exit(EXIT_FAILURE); 372 375 }
Note:
See TracChangeset
for help on using the changeset viewer.
