=================================================================== RCS file: /home/cvs/OpenXM/src/ox_math/math2ox.c,v retrieving revision 1.13 retrieving revision 1.15 diff -u -p -r1.13 -r1.15 --- OpenXM/src/ox_math/math2ox.c 2000/02/14 09:39:12 1.13 +++ OpenXM/src/ox_math/math2ox.c 2000/03/13 07:47:15 1.15 @@ -1,5 +1,5 @@ /* -*- mode: C; coding: euc-japan -*- */ -/* $OpenXM: OpenXM/src/ox_math/math2ox.c,v 1.12 2000/01/22 06:29:17 ohara Exp $ */ +/* $OpenXM: OpenXM/src/ox_math/math2ox.c,v 1.14 2000/03/10 12:38:46 ohara Exp $ */ /* Copyright (C) Katsuyoshi OHARA, 2000. @@ -20,9 +20,7 @@ #include #include #include - -#include "ox.h" -#include "parse.h" +#include #include "serv2.h" static char *host = "localhost"; @@ -80,11 +78,18 @@ int OX_reset(int id) return 0; } +/* This function is compatible with previous version of math2ox. */ /* Parsing s and sending its cmo to an OX server. */ int OX_parse(int id, char *s) { + return OX_sendMessage(int id, char *s); +} + +/* After creating an OX message by parsing a string s, + the function send the message to the OX server id. */ +int OX_sendMessage(int id, char *s) +{ cmo *m; - symbol *symp; int len = strlen(s); init_parser(s);