=================================================================== RCS file: /home/cvs/OpenXM/src/ox_toolkit/ox_Xsample.c,v retrieving revision 1.5 retrieving revision 1.8 diff -u -p -r1.5 -r1.8 --- OpenXM/src/ox_toolkit/ox_Xsample.c 2003/02/04 20:43:55 1.5 +++ OpenXM/src/ox_toolkit/ox_Xsample.c 2005/07/26 12:52:05 1.8 @@ -1,7 +1,8 @@ /* -*- mode: C; coding: euc-japan -*- */ -/* $OpenXM: OpenXM/src/ox_toolkit/ox_Xsample.c,v 1.4 2003/01/11 11:42:31 ohara Exp $ */ +/* $OpenXM: OpenXM/src/ox_toolkit/ox_Xsample.c,v 1.7 2004/12/01 17:32:26 ohara Exp $ */ #include +#include #include "ox_toolkit.h" OXFILE *fd_rw; @@ -56,13 +57,12 @@ void pops(int n) } } -#define VERSION 0x11121400 -#define ID_STRING "1999/12/14 15:25:00" +#define OX_XSAMPLE_VERSION "1999/12/14 15:25:00" int sm_mathcap() { - mathcap_sysinfo_set(VERSION, ID_STRING, "ox_Xsample"); - push(mathcap_get()); + mathcap_init(OX_XSAMPLE_VERSION, "ox_Xsample"); + push(oxf_cmo_mathcap(fd_rw)); return 0; } @@ -96,7 +96,7 @@ int get_i() int get_xy(int *x, int *y) { - cmo *c = pop(); + pop(); *x = get_i(); *y = get_i(); } @@ -171,6 +171,7 @@ int receive_and_execute_sm_command() pop(); break; default: + ; } } @@ -187,6 +188,7 @@ int receive() receive_and_execute_sm_command(); break; default: + ; } return 0; }