IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 2, 2006, 4:55:32 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.10

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/jhoblitt/ippdb/tests/pop.c

    r8089 r8094  
    409409        char            class_id[256];
    410410        char            uri[256];
    411         char            stats[256];
    412411        char            recipe[256];
    413412        psS32           p1_version;
     
    419418        }
    420419
    421         if (!p2PendingImfilePop(dbh, (char **)&exp_id, (char **)&class_id, (char **)&uri, (char **)&stats, (char **)&recipe, &p1_version, &p2_version)) {
     420        if (!p2PendingImfilePop(dbh, (char **)&exp_id, (char **)&class_id, (char **)&uri, (char **)&recipe, &p1_version, &p2_version)) {
    422421            exit(EXIT_FAILURE);
    423422        }
     
    460459        char            class_id[256];
    461460        char            uri[256];
    462         char            stats[256];
    463461        char            recipe[256];
    464462        psS32           p1_version;
     
    470468        }
    471469
    472         if (!p2DoneImfilePop(dbh, (char **)&exp_id, (char **)&class_id, (char **)&uri, (char **)&stats, (char **)&recipe, &p1_version, &p2_version)) {
     470        if (!p2DoneImfilePop(dbh, (char **)&exp_id, (char **)&class_id, (char **)&uri, (char **)&recipe, &p1_version, &p2_version)) {
    473471            exit(EXIT_FAILURE);
    474472        }
     
    556554        char            class_id[256];
    557555        char            uri[256];
    558         char            stats[256];
    559         char            recipe[256];
    560 
    561         dbh = psDBInit("localhost", "test", NULL, "test");
    562         if (!dbh) {
    563             exit(EXIT_FAILURE);
    564         }
    565 
    566         if (!detProcessedImfilePop(dbh, &det_id, (char **)&exp_id, (char **)&class_id, (char **)&uri, (char **)&stats, (char **)&recipe)) {
     556        char            recipe[256];
     557
     558        dbh = psDBInit("localhost", "test", NULL, "test");
     559        if (!dbh) {
     560            exit(EXIT_FAILURE);
     561        }
     562
     563        if (!detProcessedImfilePop(dbh, &det_id, (char **)&exp_id, (char **)&class_id, (char **)&uri, (char **)&recipe)) {
    567564            exit(EXIT_FAILURE);
    568565        }
     
    577574        char            class_id[256];
    578575        char            uri[256];
    579         char            stats[256];
    580         char            recipe[256];
    581 
    582         dbh = psDBInit("localhost", "test", NULL, "test");
    583         if (!dbh) {
    584             exit(EXIT_FAILURE);
    585         }
    586 
    587         if (!detStackedImfilePop(dbh, &det_id, &iteration, (char **)&class_id, (char **)&uri, (char **)&stats, (char **)&recipe)) {
     576        char            recipe[256];
     577
     578        dbh = psDBInit("localhost", "test", NULL, "test");
     579        if (!dbh) {
     580            exit(EXIT_FAILURE);
     581        }
     582
     583        if (!detStackedImfilePop(dbh, &det_id, &iteration, (char **)&class_id, (char **)&uri, (char **)&recipe)) {
    588584            exit(EXIT_FAILURE);
    589585        }
     
    598594        char            class_id[256];
    599595        char            uri[256];
    600         char            stats[256];
    601         char            recipe[256];
    602 
    603         dbh = psDBInit("localhost", "test", NULL, "test");
    604         if (!dbh) {
    605             exit(EXIT_FAILURE);
    606         }
    607 
    608         if (!detNormalizedImfilePop(dbh, &det_id, &iteration, (char **)&class_id, (char **)&uri, (char **)&stats, (char **)&recipe)) {
     596        char            recipe[256];
     597
     598        dbh = psDBInit("localhost", "test", NULL, "test");
     599        if (!dbh) {
     600            exit(EXIT_FAILURE);
     601        }
     602
     603        if (!detNormalizedImfilePop(dbh, &det_id, &iteration, (char **)&class_id, (char **)&uri, (char **)&recipe)) {
    609604            exit(EXIT_FAILURE);
    610605        }
     
    636631        char            class_id[256];
    637632        char            uri[256];
    638         char            stats[256];
    639         char            recipe[256];
    640 
    641         dbh = psDBInit("localhost", "test", NULL, "test");
    642         if (!dbh) {
    643             exit(EXIT_FAILURE);
    644         }
    645 
    646         if (!detMasterImfilePop(dbh, &det_id, (char **)&class_id, (char **)&uri, (char **)&stats, (char **)&recipe)) {
     633        char            recipe[256];
     634
     635        dbh = psDBInit("localhost", "test", NULL, "test");
     636        if (!dbh) {
     637            exit(EXIT_FAILURE);
     638        }
     639
     640        if (!detMasterImfilePop(dbh, &det_id, (char **)&class_id, (char **)&uri, (char **)&recipe)) {
    647641            exit(EXIT_FAILURE);
    648642        }
     
    657651        char            exp_id[256];
    658652        char            class_id[256];
    659         char            stats[256];
    660         char            recipe[256];
    661 
    662         dbh = psDBInit("localhost", "test", NULL, "test");
    663         if (!dbh) {
    664             exit(EXIT_FAILURE);
    665         }
    666 
    667         if (!detResidImfileAnalysisPop(dbh, &det_id, &iteration, (char **)&exp_id, (char **)&class_id, (char **)&stats, (char **)&recipe)) {
     653        char            recipe[256];
     654
     655        dbh = psDBInit("localhost", "test", NULL, "test");
     656        if (!dbh) {
     657            exit(EXIT_FAILURE);
     658        }
     659
     660        if (!detResidImfileAnalysisPop(dbh, &det_id, &iteration, (char **)&exp_id, (char **)&class_id, (char **)&recipe)) {
    668661            exit(EXIT_FAILURE);
    669662        }
     
    677670        psS32           iteration;
    678671        char            exp_id[256];
    679         char            stats[256];
    680672        char            recipe[256];
    681673        bool            accept;
     
    686678        }
    687679
    688         if (!detResidExpAnalysisPop(dbh, &det_id, &iteration, (char **)&exp_id, (char **)&stats, (char **)&recipe, &accept)) {
     680        if (!detResidExpAnalysisPop(dbh, &det_id, &iteration, (char **)&exp_id, (char **)&recipe, &accept)) {
    689681            exit(EXIT_FAILURE);
    690682        }
Note: See TracChangeset for help on using the changeset viewer.