Changeset 66 for trunk/src


Ignore:
Timestamp:
Sep 25, 2005, 8:44:19 PM (19 years ago)
Author:
mmc
Message:

Cleaned up the app-fermi example so that it works the same way
across all of the various languages.

Added rpResult() function for reporting results. All programs
should all this to save out the XML before they exit. Also added
the fortran version rp_result().

Location:
trunk/src
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/fortran/rappture_fortran.c

    r49 r66  
    3232#   define rp_lib_xml              rp_lib_xml_
    3333#   define rp_quit                 rp_quit_
     34#   define rp_result               rp_result_
    3435#elif defined(COMPNAME_ADD2UNDERSCORE)
    3536#   define rp_init                 rp_init__
     
    5758#   define rp_lib_xml              rp_lib_xml__
    5859#   define rp_quit                 rp_quit__
     60#   define rp_result               rp_result__
    5961#elif defined(COMPNAME_NOCHANGE)
    6062#   define rp_init                 rp_init
     
    8284#   define rp_lib_xml              rp_lib_xml
    8385#   define rp_quit                 rp_quit
     86#   define rp_result               rp_result
    8487#elif defined(COMPNAME_UPPERCASE)
    8588#   define rp_init                 RP_INIT
     
    107110#   define rp_lib_xml              RP_LIB_XML
    108111#   define rp_quit                 RP_QUIT
     112#   define rp_result               RP_RESULT
    109113#endif
    110114
     
    275279extern "C"
    276280void rp_quit();
     281
     282extern "C"
     283void rp_result(int* handle);
    277284
    278285
     
    13081315}
    13091316
     1317void rp_result(int* handle) {
     1318    PyObject* lib = NULL;
     1319
     1320    if (rapptureStarted && handle && *handle != 0) {
     1321        lib = getObject(*handle);
     1322        if (lib) {
     1323            rpResult(lib);
     1324        }
     1325    }
     1326    rp_quit();
     1327}
     1328
    13101329int objType( char* flavor)
    13111330{
Note: See TracChangeset for help on using the changeset viewer.