version 1.10, 2003/01/13 12:03:12 |
version 1.12, 2003/03/23 20:17:35 |
|
|
/* -*- mode: C -*- */ |
/* -*- 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.11 2003/02/04 20:43:55 ohara Exp $ */ |
|
|
/* A sample implementation of an OpenXM client with OpenXM C library */ |
/* A sample implementation of an OpenXM client with OpenXM C library */ |
|
|
Line 50 static int prompt() |
|
Line 50 static int prompt() |
|
int test_0() |
int test_0() |
{ |
{ |
cmo* c = NULL; |
cmo* c = NULL; |
#ifdef DEBUG |
|
ox_printf("testclient:: calling ox_mathcap().\n"); |
ox_printf("testclient:: calling ox_mathcap().\n"); |
c = ox_mathcap(sv); |
c = ox_mathcap(sv); |
ox_printf("testclient:: cmo received.(%p)\n", c); |
ox_printf("testclient:: cmo received.(%p)\n", c); |
#else |
|
c = (cmo *)ox_mathcap(sv); |
|
#endif |
|
print_cmo(c); |
print_cmo(c); |
|
|
mathcap_init(VERSION, ID_STRING, "testclient", NULL, NULL); |
mathcap_init(VERSION, ID_STRING, "testclient", NULL, NULL); |
Line 101 int main(int argc, char* argv[]) |
|
Line 97 int main(int argc, char* argv[]) |
|
int code; |
int code; |
char *server = "ox_sm1"; |
char *server = "ox_sm1"; |
|
|
ox_stderr_init(NULL); |
ox_stderr_init(stderr); |
|
|
if (argc>1) { |
if (argc>1) { |
server = argv[1]; |
server = argv[1]; |