=================================================================== RCS file: /home/cvs/OpenXM/doc/oxlib/test2.c,v retrieving revision 1.1 retrieving revision 1.5 diff -u -p -r1.1 -r1.5 --- OpenXM/doc/oxlib/test2.c 2000/02/08 13:25:41 1.1 +++ OpenXM/doc/oxlib/test2.c 2003/03/08 10:29:03 1.5 @@ -1,13 +1,14 @@ -/* $OpenXM$ */ +/* $OpenXM: OpenXM/doc/oxlib/test2.c,v 1.4 2003/03/08 07:49:59 takayama Exp $ */ #include -#include -#include "oxasir.h" +#include +#include -char *asir_ox_pop_string(); +char *test2_ox_pop_string(); + main() { char *s; - asir_ox_init(0); /* Use the network byte order */ + asir_ox_init(1); /* Use the network byte order */ /* Loading the file xm */ /* This part generates a core dump. I'm trying to find a reason. */ @@ -28,12 +29,12 @@ main() { asir_ox_push_cmd(SM_executeFunction); */ - s = asir_ox_pop_string(); + s = test2_ox_pop_string(); printf("%s\n",s); printf("------------------------------------------\n"); asir_ox_push_object_given_by_a_string("12345;"); - s = asir_ox_pop_string(); + s = test2_ox_pop_string(); printf("%s\n",s); } @@ -64,7 +65,7 @@ asir_ox_push_object_given_by_a_string(char *s) { asir_ox_push_cmd(SM_executeStringByLocalParser); } -char *asir_ox_pop_string() { +char *test2_ox_pop_string() { int size; char *s; int tag; @@ -84,7 +85,7 @@ char *asir_ox_pop_string() { return(s+8); } } - + debug_packet(char *p,int size) { int i; for (i=0; i