=================================================================== RCS file: /home/cvs/OpenXM/src/ox_toolkit/testclient.c,v retrieving revision 1.10 retrieving revision 1.13 diff -u -p -r1.10 -r1.13 --- OpenXM/src/ox_toolkit/testclient.c 2003/01/13 12:03:12 1.10 +++ OpenXM/src/ox_toolkit/testclient.c 2003/09/15 09:31:42 1.13 @@ -1,5 +1,5 @@ /* -*- mode: C -*- */ -/* $OpenXM: OpenXM/src/ox_toolkit/testclient.c,v 1.9 2003/01/11 11:42:32 ohara Exp $ */ +/* $OpenXM: OpenXM/src/ox_toolkit/testclient.c,v 1.12 2003/03/23 20:17:35 ohara Exp $ */ /* A sample implementation of an OpenXM client with OpenXM C library */ @@ -37,7 +37,7 @@ int dumpx(OXFILE *oxfp, int n) static int size = SIZE_CMDLINE; static char cmdline[SIZE_CMDLINE]; -static int prompt() +static void prompt() { fprintf(stdout, "> "); fgets(cmdline, size, stdin); @@ -47,20 +47,16 @@ static int prompt() #define VERSION 0x11121500 #define ID_STRING "v0.11121500" -int test_0() +void test_0() { cmo* c = NULL; -#ifdef DEBUG ox_printf("testclient:: calling ox_mathcap().\n"); - c = ox_mathcap(sv); - ox_printf("testclient:: cmo received.(%p)\n", c); -#else c = (cmo *)ox_mathcap(sv); -#endif + ox_printf("testclient:: cmo received.(%p)\n", c); print_cmo(c); mathcap_init(VERSION, ID_STRING, "testclient", NULL, NULL); - send_ox_cmo(sv, oxf_cmo_mathcap(sv)); + send_ox_cmo(sv, (cmo *)oxf_cmo_mathcap(sv)); ox_reset(sv); send_ox_cmo(sv, (cmo *)new_cmo_string("N[ArcTan[1]]")); @@ -72,12 +68,12 @@ int test_0() print_cmo(c); } -int test_1() +void test_1() { cmo *c, *m; mathcap_init(1000, "test!", "testclient", NULL, NULL); - m = oxf_cmo_mathcap(sv); + m = (cmo *)oxf_cmo_mathcap(sv); ox_printf("testclient:: test cmo_mathcap.\n"); send_ox_cmo(sv, m); send_ox_command(sv, SM_popCMO); @@ -101,7 +97,7 @@ int main(int argc, char* argv[]) int code; char *server = "ox_sm1"; - ox_stderr_init(NULL); + ox_stderr_init(stderr); if (argc>1) { server = argv[1];