IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 23, 2007, 4:28:07 PM (19 years ago)
Author:
jhoblitt
Message:

VERSION 1.1.11

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippdb/tests/alloc.c

    r11988 r12026  
    505505
    506506    {
    507         p1PendingExpRow *object;
    508 
    509         object = p1PendingExpRowAlloc("a string", -32, "a string"    );
    510 
    511         if (!object) {
    512             exit(EXIT_FAILURE);
    513         }
    514 
    515         if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
    516             psFree(object);
    517             exit(EXIT_FAILURE);
    518         }
    519         if (!object->p1_version == -32) {
     507        guidePendingExpRow *object;
     508
     509        object = guidePendingExpRowAlloc("a string", -32, "a string"    );
     510
     511        if (!object) {
     512            exit(EXIT_FAILURE);
     513        }
     514
     515        if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
     516            psFree(object);
     517            exit(EXIT_FAILURE);
     518        }
     519        if (!object->guide_version == -32) {
    520520            psFree(object);
    521521            exit(EXIT_FAILURE);
     
    530530
    531531    {
    532         p2PendingExpRow *object;
    533 
    534         object = p2PendingExpRowAlloc("a string", -32, -32, "a string", "a string", "a string", "a string"    );
    535 
    536         if (!object) {
    537             exit(EXIT_FAILURE);
    538         }
    539 
    540         if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
    541             psFree(object);
    542             exit(EXIT_FAILURE);
    543         }
    544         if (!object->p2_version == -32) {
    545             psFree(object);
    546             exit(EXIT_FAILURE);
    547         }
    548         if (!object->p1_version == -32) {
     532        chipPendingExpRow *object;
     533
     534        object = chipPendingExpRowAlloc("a string", -32, -32, "a string", "a string", "a string", "a string"    );
     535
     536        if (!object) {
     537            exit(EXIT_FAILURE);
     538        }
     539
     540        if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
     541            psFree(object);
     542            exit(EXIT_FAILURE);
     543        }
     544        if (!object->chip_version == -32) {
     545            psFree(object);
     546            exit(EXIT_FAILURE);
     547        }
     548        if (!object->guide_version == -32) {
    549549            psFree(object);
    550550            exit(EXIT_FAILURE);
     
    571571
    572572    {
    573         p2PendingImfileRow *object;
    574 
    575         object = p2PendingImfileRowAlloc("a string", -32, -32, "a string", "a string", "a string"    );
    576 
    577         if (!object) {
    578             exit(EXIT_FAILURE);
    579         }
    580 
    581         if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
    582             psFree(object);
    583             exit(EXIT_FAILURE);
    584         }
    585         if (!object->p2_version == -32) {
    586             psFree(object);
    587             exit(EXIT_FAILURE);
    588         }
    589         if (!object->p1_version == -32) {
     573        chipPendingImfileRow *object;
     574
     575        object = chipPendingImfileRowAlloc("a string", -32, -32, "a string", "a string", "a string"    );
     576
     577        if (!object) {
     578            exit(EXIT_FAILURE);
     579        }
     580
     581        if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
     582            psFree(object);
     583            exit(EXIT_FAILURE);
     584        }
     585        if (!object->chip_version == -32) {
     586            psFree(object);
     587            exit(EXIT_FAILURE);
     588        }
     589        if (!object->guide_version == -32) {
    590590            psFree(object);
    591591            exit(EXIT_FAILURE);
     
    608608
    609609    {
    610         p2ProcessedExpRow *object;
    611 
    612         object = p2ProcessedExpRowAlloc("a string", -32, -32, "a string", "a string", "a string"    );
    613 
    614         if (!object) {
    615             exit(EXIT_FAILURE);
    616         }
    617 
    618         if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
    619             psFree(object);
    620             exit(EXIT_FAILURE);
    621         }
    622         if (!object->p2_version == -32) {
    623             psFree(object);
    624             exit(EXIT_FAILURE);
    625         }
    626         if (!object->p1_version == -32) {
     610        chipProcessedExpRow *object;
     611
     612        object = chipProcessedExpRowAlloc("a string", -32, -32, "a string", "a string", "a string"    );
     613
     614        if (!object) {
     615            exit(EXIT_FAILURE);
     616        }
     617
     618        if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
     619            psFree(object);
     620            exit(EXIT_FAILURE);
     621        }
     622        if (!object->chip_version == -32) {
     623            psFree(object);
     624            exit(EXIT_FAILURE);
     625        }
     626        if (!object->guide_version == -32) {
    627627            psFree(object);
    628628            exit(EXIT_FAILURE);
     
    645645
    646646    {
    647         p2MaskRow       *object;
    648 
    649         object = p2MaskRowAlloc("a string"    );
     647        chipMaskRow     *object;
     648
     649        object = chipMaskRowAlloc("a string"    );
    650650
    651651        if (!object) {
     
    662662
    663663    {
    664         p2ProcessedImfileRow *object;
    665 
    666         object = p2ProcessedImfileRowAlloc("a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -16    );
    667 
    668         if (!object) {
    669             exit(EXIT_FAILURE);
    670         }
    671 
    672         if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
    673             psFree(object);
    674             exit(EXIT_FAILURE);
    675         }
    676         if (!object->p2_version == -32) {
    677             psFree(object);
    678             exit(EXIT_FAILURE);
    679         }
    680         if (!object->p1_version == -32) {
     664        chipProcessedImfileRow *object;
     665
     666        object = chipProcessedImfileRowAlloc("a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -16    );
     667
     668        if (!object) {
     669            exit(EXIT_FAILURE);
     670        }
     671
     672        if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
     673            psFree(object);
     674            exit(EXIT_FAILURE);
     675        }
     676        if (!object->chip_version == -32) {
     677            psFree(object);
     678            exit(EXIT_FAILURE);
     679        }
     680        if (!object->guide_version == -32) {
    681681            psFree(object);
    682682            exit(EXIT_FAILURE);
     
    723723
    724724    {
    725         p3PendingExpRow *object;
    726 
    727         object = p3PendingExpRowAlloc("a string", -32, -32, "a string", "a string", "a string"    );
    728 
    729         if (!object) {
    730             exit(EXIT_FAILURE);
    731         }
    732 
    733         if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
    734             psFree(object);
    735             exit(EXIT_FAILURE);
    736         }
    737         if (!object->p3_version == -32) {
    738             psFree(object);
    739             exit(EXIT_FAILURE);
    740         }
    741         if (!object->p2_version == -32) {
     725        camPendingExpRow *object;
     726
     727        object = camPendingExpRowAlloc("a string", -32, -32, "a string", "a string", "a string"    );
     728
     729        if (!object) {
     730            exit(EXIT_FAILURE);
     731        }
     732
     733        if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
     734            psFree(object);
     735            exit(EXIT_FAILURE);
     736        }
     737        if (!object->cam_version == -32) {
     738            psFree(object);
     739            exit(EXIT_FAILURE);
     740        }
     741        if (!object->chip_version == -32) {
    742742            psFree(object);
    743743            exit(EXIT_FAILURE);
     
    760760
    761761    {
    762         p3ProcessedExpRow *object;
    763 
    764         object = p3ProcessedExpRowAlloc("a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -16, "a string", "a string"    );
    765 
    766         if (!object) {
    767             exit(EXIT_FAILURE);
    768         }
    769 
    770         if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
    771             psFree(object);
    772             exit(EXIT_FAILURE);
    773         }
    774         if (!object->p3_version == -32) {
    775             psFree(object);
    776             exit(EXIT_FAILURE);
    777         }
    778         if (!object->p2_version == -32) {
     762        camProcessedExpRow *object;
     763
     764        object = camProcessedExpRowAlloc("a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -16, "a string", "a string"    );
     765
     766        if (!object) {
     767            exit(EXIT_FAILURE);
     768        }
     769
     770        if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
     771            psFree(object);
     772            exit(EXIT_FAILURE);
     773        }
     774        if (!object->cam_version == -32) {
     775            psFree(object);
     776            exit(EXIT_FAILURE);
     777        }
     778        if (!object->chip_version == -32) {
    779779            psFree(object);
    780780            exit(EXIT_FAILURE);
     
    849849
    850850    {
    851         p3MaskRow       *object;
    852 
    853         object = p3MaskRowAlloc("a string"    );
     851        camMaskRow      *object;
     852
     853        object = camMaskRowAlloc("a string"    );
    854854
    855855        if (!object) {
     
    14601460
    14611461    {
    1462         p4RunRow        *object;
    1463 
    1464         object = p4RunRowAlloc(-32, "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z"    );
    1465 
    1466         if (!object) {
    1467             exit(EXIT_FAILURE);
    1468         }
    1469 
    1470         if (!object->p4_id == -32) {
     1462        warpRunRow      *object;
     1463
     1464        object = warpRunRowAlloc(-32, "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z"    );
     1465
     1466        if (!object) {
     1467            exit(EXIT_FAILURE);
     1468        }
     1469
     1470        if (!object->warp_id == -32) {
    14711471            psFree(object);
    14721472            exit(EXIT_FAILURE);
     
    14961496
    14971497    {
    1498         p4InputExpRow  *object;
    1499 
    1500         object = p4InputExpRowAlloc(-32, "a string", -32, true    );
    1501 
    1502         if (!object) {
    1503             exit(EXIT_FAILURE);
    1504         }
    1505 
    1506         if (!object->p4_id == -32) {
    1507             psFree(object);
    1508             exit(EXIT_FAILURE);
    1509         }
    1510         if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
    1511             psFree(object);
    1512             exit(EXIT_FAILURE);
    1513         }
    1514         if (!object->p3_version == -32) {
     1498        warpInputExpRow *object;
     1499
     1500        object = warpInputExpRowAlloc(-32, "a string", -32, true    );
     1501
     1502        if (!object) {
     1503            exit(EXIT_FAILURE);
     1504        }
     1505
     1506        if (!object->warp_id == -32) {
     1507            psFree(object);
     1508            exit(EXIT_FAILURE);
     1509        }
     1510        if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
     1511            psFree(object);
     1512            exit(EXIT_FAILURE);
     1513        }
     1514        if (!object->cam_version == -32) {
    15151515            psFree(object);
    15161516            exit(EXIT_FAILURE);
     
    15251525
    15261526    {
    1527         p4SkyCellMapRow *object;
    1528 
    1529         object = p4SkyCellMapRowAlloc(-32, "a string", "a string", "a string", -32, "a string"    );
    1530 
    1531         if (!object) {
    1532             exit(EXIT_FAILURE);
    1533         }
    1534 
    1535         if (!object->p4_id == -32) {
     1527        warpSkyCellMapRow *object;
     1528
     1529        object = warpSkyCellMapRowAlloc(-32, "a string", "a string", "a string", -32, "a string"    );
     1530
     1531        if (!object) {
     1532            exit(EXIT_FAILURE);
     1533        }
     1534
     1535        if (!object->warp_id == -32) {
    15361536            psFree(object);
    15371537            exit(EXIT_FAILURE);
     
    15491549            exit(EXIT_FAILURE);
    15501550        }
    1551         if (!object->p3_version == -32) {
     1551        if (!object->cam_version == -32) {
    15521552            psFree(object);
    15531553            exit(EXIT_FAILURE);
     
    15621562
    15631563    {
    1564         p4SkyfileRow    *object;
    1565 
    1566         object = p4SkyfileRowAlloc(-32, "a string", "a string", "a string", 64.64, 64.64    );
    1567 
    1568         if (!object) {
    1569             exit(EXIT_FAILURE);
    1570         }
    1571 
    1572         if (!object->p4_id == -32) {
     1564        warpSkyfileRow  *object;
     1565
     1566        object = warpSkyfileRowAlloc(-32, "a string", "a string", "a string", 64.64, 64.64    );
     1567
     1568        if (!object) {
     1569            exit(EXIT_FAILURE);
     1570        }
     1571
     1572        if (!object->warp_id == -32) {
    15731573            psFree(object);
    15741574            exit(EXIT_FAILURE);
     
    15991599
    16001600    {
    1601         p5RunRow        *object;
    1602 
    1603         object = p5RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string"    );
    1604 
    1605         if (!object) {
    1606             exit(EXIT_FAILURE);
    1607         }
    1608 
    1609         if (!object->p5_id == -32) {
     1601        diffRunRow      *object;
     1602
     1603        object = diffRunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string"    );
     1604
     1605        if (!object) {
     1606            exit(EXIT_FAILURE);
     1607        }
     1608
     1609        if (!object->diff_id == -32) {
    16101610            psFree(object);
    16111611            exit(EXIT_FAILURE);
     
    16391639
    16401640    {
    1641         p5InputSkyfileRow *object;
    1642 
    1643         object = p5InputSkyfileRowAlloc(-32, -32, "a string", "a string", "a string", true    );
    1644 
    1645         if (!object) {
    1646             exit(EXIT_FAILURE);
    1647         }
    1648 
    1649         if (!object->p5_id == -32) {
    1650             psFree(object);
    1651             exit(EXIT_FAILURE);
    1652         }
    1653         if (!object->p4_id == -32) {
     1641        diffInputSkyfileRow *object;
     1642
     1643        object = diffInputSkyfileRowAlloc(-32, -32, "a string", "a string", "a string", true    );
     1644
     1645        if (!object) {
     1646            exit(EXIT_FAILURE);
     1647        }
     1648
     1649        if (!object->diff_id == -32) {
     1650            psFree(object);
     1651            exit(EXIT_FAILURE);
     1652        }
     1653        if (!object->warp_id == -32) {
    16541654            psFree(object);
    16551655            exit(EXIT_FAILURE);
     
    16761676
    16771677    {
    1678         p5DiffSkyfileRow *object;
    1679 
    1680         object = p5DiffSkyfileRowAlloc(-32, "a string", 64.64, 64.64    );
    1681 
    1682         if (!object) {
    1683             exit(EXIT_FAILURE);
    1684         }
    1685 
    1686         if (!object->p5_id == -32) {
     1678        diffSkyfileRow *object;
     1679
     1680        object = diffSkyfileRowAlloc(-32, "a string", 64.64, 64.64    );
     1681
     1682        if (!object) {
     1683            exit(EXIT_FAILURE);
     1684        }
     1685
     1686        if (!object->diff_id == -32) {
    16871687            psFree(object);
    16881688            exit(EXIT_FAILURE);
     
    17051705
    17061706    {
    1707         p6RunRow        *object;
    1708 
    1709         object = p6RunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string"    );
    1710 
    1711         if (!object) {
    1712             exit(EXIT_FAILURE);
    1713         }
    1714 
    1715         if (!object->p6_id == -32) {
     1707        stackRunRow     *object;
     1708
     1709        object = stackRunRowAlloc(-32, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string"    );
     1710
     1711        if (!object) {
     1712            exit(EXIT_FAILURE);
     1713        }
     1714
     1715        if (!object->stack_id == -32) {
    17161716            psFree(object);
    17171717            exit(EXIT_FAILURE);
     
    17451745
    17461746    {
    1747         p6InputSkyfileRow *object;
    1748 
    1749         object = p6InputSkyfileRowAlloc(-32, -32    );
    1750 
    1751         if (!object) {
    1752             exit(EXIT_FAILURE);
    1753         }
    1754 
    1755         if (!object->p6_id == -32) {
    1756             psFree(object);
    1757             exit(EXIT_FAILURE);
    1758         }
    1759         if (!object->p4_id == -32) {
    1760             psFree(object);
    1761             exit(EXIT_FAILURE);
    1762         }
    1763 
    1764         psFree(object);
    1765     }
    1766 
    1767     {
    1768         p6SumSkyfileRow *object;
    1769 
    1770         object = p6SumSkyfileRowAlloc(-32, "a string", 64.64, 64.64    );
    1771 
    1772         if (!object) {
    1773             exit(EXIT_FAILURE);
    1774         }
    1775 
    1776         if (!object->p6_id == -32) {
     1747        stackInputSkyfileRow *object;
     1748
     1749        object = stackInputSkyfileRowAlloc(-32, -32    );
     1750
     1751        if (!object) {
     1752            exit(EXIT_FAILURE);
     1753        }
     1754
     1755        if (!object->stack_id == -32) {
     1756            psFree(object);
     1757            exit(EXIT_FAILURE);
     1758        }
     1759        if (!object->warp_id == -32) {
     1760            psFree(object);
     1761            exit(EXIT_FAILURE);
     1762        }
     1763
     1764        psFree(object);
     1765    }
     1766
     1767    {
     1768        stackSumSkyfileRow *object;
     1769
     1770        object = stackSumSkyfileRowAlloc(-32, "a string", 64.64, 64.64    );
     1771
     1772        if (!object) {
     1773            exit(EXIT_FAILURE);
     1774        }
     1775
     1776        if (!object->stack_id == -32) {
    17771777            psFree(object);
    17781778            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.