![]() ![]() | ![]() |
version 1.13, 2000/02/14 09:39:12 | version 1.16, 2000/03/13 09:44:06 | ||
---|---|---|---|
|
|
||
/* -*- mode: C; coding: euc-japan -*- */ | /* -*- 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.15 2000/03/13 07:47:15 ohara Exp $ */ | ||
/* | /* | ||
Copyright (C) Katsuyoshi OHARA, 2000. | Copyright (C) Katsuyoshi OHARA, 2000. | ||
|
|
||
#include <unistd.h> | #include <unistd.h> | ||
#include <signal.h> | #include <signal.h> | ||
#include <mathlink.h> | #include <mathlink.h> | ||
#include <ox_toolkit.h> | |||
#include "ox.h" | |||
#include "parse.h" | |||
#include "serv2.h" | #include "serv2.h" | ||
static char *host = "localhost"; | static char *host = "localhost"; | ||
|
|
||
return 0; | return 0; | ||
} | } | ||
/* This function is compatible with previous version of math2ox. */ | |||
/* Parsing s and sending its cmo to an OX server. */ | /* Parsing s and sending its cmo to an OX server. */ | ||
int OX_parse(int id, char *s) | int OX_parse(int id, char *s) | ||
{ | { | ||
return OX_sendMessage(id, 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; | cmo *m; | ||
symbol *symp; | |||
int len = strlen(s); | int len = strlen(s); | ||
init_parser(s); | init_parser(s); | ||