=================================================================== RCS file: /home/cvs/OpenXM/src/ox_math/mlo.c,v retrieving revision 1.5 retrieving revision 1.7 diff -u -p -r1.5 -r1.7 --- OpenXM/src/ox_math/mlo.c 2000/01/22 06:29:18 1.5 +++ OpenXM/src/ox_math/mlo.c 2000/10/10 19:58:29 1.7 @@ -1,5 +1,5 @@ /* -*- mode: C -*- */ -/* $OpenXM: OpenXM/src/ox_math/mlo.c,v 1.4 2000/01/05 06:09:11 ohara Exp $ */ +/* $OpenXM: OpenXM/src/ox_math/mlo.c,v 1.6 2000/03/10 12:38:46 ohara Exp $ */ /* Copyright (C) Katsuyoshi OHARA, 2000. @@ -13,10 +13,8 @@ #include #include #include -#include #include -#include "oxtag.h" -#include "ox.h" +#include #include "mlo.h" #include "serv2.h" @@ -59,13 +57,13 @@ cmo *receive_mlo_function() MLGetFunction(stdlink, &s, &n); fprintf(stderr, "--debug: MLO == MLTKFUNC (%s[#%d]).\n", s, n); m = new_cmo_list(); - append_cmo_list((cmo_list *)m, new_cmo_string(s)); + list_append((cmo_list *)m, new_cmo_string(s)); for (i=0; ihead; - int len = length_cmo_list((cmo_list *)c); + cell *cp = list_first((cmo_list *)c); + int len = list_length((cmo_list *)c); MLPutFunction(stdlink, "List", len); - while(cp->next != NULL) { + while(!list_endof(c, cp)) { send_mlo(cp->cmo); - cp = cp->next; + cp = list_next(cp); } }