changeset 2:d561f123f9a6 tip

working version
author Sean Halle <seanhalle@yahoo.com>
date Sat, 29 Mar 2014 06:10:50 -0700
parents c6fc793f68a5
children
files PR_defs__turn_on_and_off.h main.c
diffstat 2 files changed, 4 insertions(+), 10 deletions(-) [+]
line diff
     1.1 --- a/PR_defs__turn_on_and_off.h	Tue Sep 24 08:42:31 2013 -0700
     1.2 +++ b/PR_defs__turn_on_and_off.h	Sat Mar 29 06:10:50 2014 -0700
     1.3 @@ -19,14 +19,6 @@
     1.4   * has only a single thread and animates Slvs one at a time
     1.5   */
     1.6  //#define DEBUG__TURN_ON_SEQUENTIAL_MODE
     1.7 -   //check for sequential mode and redefine num cores to be 1 so that lang
     1.8 -   // code doesn't have to do special #ifdef for sequential mode
     1.9 -#ifdef DEBUG__TURN_ON_SEQUENTIAL_MODE
    1.10 -   #ifdef NUM_CORES
    1.11 -      #undef  NUM_CORES
    1.12 -      #define NUM_CORES 1
    1.13 -   #endif
    1.14 -#endif
    1.15  
    1.16  /*turns on the probe-instrumentation in the application -- when not
    1.17   * defined, the calls to the probe functions turn into comments
     2.1 --- a/main.c	Tue Sep 24 08:42:31 2013 -0700
     2.2 +++ b/main.c	Sat Mar 29 06:10:50 2014 -0700
     2.3 @@ -13,6 +13,8 @@
     2.4  
     2.5  #define NO_INPUT_OR_OUTPUT NULL
     2.6  
     2.7 +
     2.8 +
     2.9  /*This demonstrates the use of the proto-runtime system.  It allows multiple
    2.10   * languages to be mixed within a single sub-program.  It also allows multiple
    2.11   * sub-programs to be started, where each uses its own set of languages. The
    2.12 @@ -22,8 +24,8 @@
    2.13  int main( int argc, char **argv )
    2.14   { PRProcess *testProcess1, *testProcess2;
    2.15   
    2.16 -   DEBUG__printf2(TRUE, "arguments: %s | %s", argv[0], argv[1] );
    2.17 -   
    2.18 +   DEBUG__printf(TRUE, "arguments: %s | %s", argv[0], argv[1] );
    2.19 +  
    2.20        //A proto-runtime based language sits on top of the proto-runtime. So, 
    2.21        // first start the proto-runtime system, then create processes (which
    2.22        // start languages inside themselves)