version 1.28, 2003/09/18 12:46:08 |
version 1.30, 2003/11/09 01:48:01 |
|
|
/* -*- mode: C; coding: euc-japan -*- */ |
/* -*- mode: C; coding: euc-japan -*- */ |
/* $OpenXM: OpenXM/src/ox_toolkit/ox.c,v 1.27 2003/09/15 09:31:41 ohara Exp $ */ |
/* $OpenXM: OpenXM/src/ox_toolkit/ox.c,v 1.29 2003/09/18 20:30:00 ohara Exp $ */ |
|
|
/* |
/* |
This module includes functions for sending/receiveng CMO's. |
This module includes functions for sending/receiveng CMO's. |
Line 250 static cmo_polynomial_in_one_variable* receive_cmo_pol |
|
Line 250 static cmo_polynomial_in_one_variable* receive_cmo_pol |
|
return c; |
return c; |
} |
} |
|
|
|
static cmo_indeterminate* receive_cmo_indeterminate(OXFILE *oxfp) |
|
{ |
|
cmo* ob = receive_cmo(oxfp); |
|
return new_cmo_indeterminate(ob); |
|
} |
|
|
static cmo_tree* receive_cmo_tree(OXFILE *oxfp) |
static cmo_tree* receive_cmo_tree(OXFILE *oxfp) |
{ |
{ |
cmo_string* name = (cmo_string *)receive_cmo(oxfp); |
cmo_string* name = (cmo_string *)receive_cmo(oxfp); |
Line 321 cmo *receive_cmo_tag(OXFILE *oxfp, int tag) |
|
Line 327 cmo *receive_cmo_tag(OXFILE *oxfp, int tag) |
|
case CMO_POLYNOMIAL_IN_ONE_VARIABLE: |
case CMO_POLYNOMIAL_IN_ONE_VARIABLE: |
m = (cmo *)receive_cmo_polynomial_in_one_variable(oxfp); |
m = (cmo *)receive_cmo_polynomial_in_one_variable(oxfp); |
break; |
break; |
|
case CMO_INDETERMINATE: |
|
m = (cmo *)receive_cmo_indeterminate(oxfp); |
|
break; |
case CMO_TREE: |
case CMO_TREE: |
m = (cmo *)receive_cmo_tree(oxfp); |
m = (cmo *)receive_cmo_tree(oxfp); |
break; |
break; |
Line 438 int ox_flush(OXFILE *sv) |
|
Line 447 int ox_flush(OXFILE *sv) |
|
|
|
void ox_reset(OXFILE *sv) |
void ox_reset(OXFILE *sv) |
{ |
{ |
|
int tag; |
send_ox_command(oxf_control(sv), SM_control_reset_connection); |
send_ox_command(oxf_control(sv), SM_control_reset_connection); |
while(receive_ox_tag(sv) != OX_SYNC_BALL) { |
while((tag = receive_ox_tag(sv)) != OX_SYNC_BALL) { |
receive_cmo(sv); /* skipping a message. */ |
if (tag == OX_DATA) { |
|
receive_cmo(sv); /* skipping a message. */ |
|
} |
} |
} |
|
|
send_ox_tag(sv, OX_SYNC_BALL); |
send_ox_tag(sv, OX_SYNC_BALL); |