=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/builtin/strobj.c,v retrieving revision 1.56 retrieving revision 1.60 diff -u -p -r1.56 -r1.60 --- OpenXM_contrib2/asir2000/builtin/strobj.c 2005/09/13 06:40:45 1.56 +++ OpenXM_contrib2/asir2000/builtin/strobj.c 2005/09/22 00:23:18 1.60 @@ -45,7 +45,7 @@ * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. * - * $OpenXM: OpenXM_contrib2/asir2000/builtin/strobj.c,v 1.55 2005/07/26 01:33:46 noro Exp $ + * $OpenXM: OpenXM_contrib2/asir2000/builtin/strobj.c,v 1.59 2005/09/21 23:39:32 noro Exp $ */ #include "ca.h" #include "parse.h" @@ -79,6 +79,7 @@ void Pquotetotex_env(); void Pflatten_quote(); void Pquote_to_funargs(),Pfunargs_to_quote(),Pget_function_name(); void Pquote_unify(); +void do_assign(NODE arg); void fnodetotex_tb(FNODE f,TB tb); char *symbol_name(char *name); char *conv_rule(char *name); @@ -109,7 +110,7 @@ struct ftab str_tab[] = { {"quotetotex_env",Pquotetotex_env,-99999999}, {"flatten_quote",Pflatten_quote,2}, {"quote_to_funargs",Pquote_to_funargs,1}, - {"quote_unify",Pquote_unify,2}, + {"quote_unify",Pquote_unify,2,0x2}, {"funargs_to_quote",Pfunargs_to_quote,1}, {"get_function_name",Pget_function_name,1}, {0,0,0}, @@ -507,15 +508,16 @@ void Pwrite_to_tb(NODE arg,Q *rp) *rp = 0; } -void Pquote_unify(NODE arg,LIST *rp) +void Pquote_unify(NODE arg,Q *rp) { NODE r; int ret; ret = quote_unify((Obj)ARG0(arg),(Obj)ARG1(arg),&r); - if ( ret ) - MKLIST(*rp,r); - else + if ( ret ) { + do_assign(r); + *rp = ONE; + } else *rp = 0; }