Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > DKU > DKU__Test_App
comparison main.c @ 2:d561f123f9a6
working version
| author | Sean Halle <seanhalle@yahoo.com> |
|---|---|
| date | Sat, 29 Mar 2014 06:10:50 -0700 |
| parents | c6fc793f68a5 |
| children |
comparison
equal
deleted
inserted
replaced
| 0:aad19ed8cb57 | 1:5d99279922df |
|---|---|
| 11 #include "DKU__Test_App/DKU__Test_App.h" | 11 #include "DKU__Test_App/DKU__Test_App.h" |
| 12 #include <PR__include/PR__WL.h> //declares PR__create_process -- else get integer return value | 12 #include <PR__include/PR__WL.h> //declares PR__create_process -- else get integer return value |
| 13 | 13 |
| 14 #define NO_INPUT_OR_OUTPUT NULL | 14 #define NO_INPUT_OR_OUTPUT NULL |
| 15 | 15 |
| 16 | |
| 17 | |
| 16 /*This demonstrates the use of the proto-runtime system. It allows multiple | 18 /*This demonstrates the use of the proto-runtime system. It allows multiple |
| 17 * languages to be mixed within a single sub-program. It also allows multiple | 19 * languages to be mixed within a single sub-program. It also allows multiple |
| 18 * sub-programs to be started, where each uses its own set of languages. The | 20 * sub-programs to be started, where each uses its own set of languages. The |
| 19 * running sub-programs can then communicate with each other. | 21 * running sub-programs can then communicate with each other. |
| 20 * | 22 * |
| 21 */ | 23 */ |
| 22 int main( int argc, char **argv ) | 24 int main( int argc, char **argv ) |
| 23 { PRProcess *testProcess1, *testProcess2; | 25 { PRProcess *testProcess1, *testProcess2; |
| 24 | 26 |
| 25 DEBUG__printf2(TRUE, "arguments: %s | %s", argv[0], argv[1] ); | 27 DEBUG__printf(TRUE, "arguments: %s | %s", argv[0], argv[1] ); |
| 26 | 28 |
| 27 //A proto-runtime based language sits on top of the proto-runtime. So, | 29 //A proto-runtime based language sits on top of the proto-runtime. So, |
| 28 // first start the proto-runtime system, then create processes (which | 30 // first start the proto-runtime system, then create processes (which |
| 29 // start languages inside themselves) | 31 // start languages inside themselves) |
| 30 PR__start(); | 32 PR__start(); |
| 31 | 33 |
