=================================================================== RCS file: /home/cvs/OpenXM/src/kan96xx/Kan/kanExport0.c,v retrieving revision 1.15 retrieving revision 1.21 diff -u -p -r1.15 -r1.21 --- OpenXM/src/kan96xx/Kan/kanExport0.c 2003/08/18 11:59:56 1.15 +++ OpenXM/src/kan96xx/Kan/kanExport0.c 2004/02/28 13:39:42 1.21 @@ -1,4 +1,4 @@ -/* $OpenXM: OpenXM/src/kan96xx/Kan/kanExport0.c,v 1.14 2003/07/14 12:49:52 takayama Exp $ */ +/* $OpenXM: OpenXM/src/kan96xx/Kan/kanExport0.c,v 1.20 2003/12/06 02:49:22 takayama Exp $ */ #include #include "datatype.h" #include "stackm.h" @@ -19,6 +19,7 @@ int SerialCurrent = -1; /* Current Serial number of t int ReverseOutputOrder = 1; int WarningNoVectorVariable = 1; +extern int QuoteMode; /** :arithmetic **/ struct object KooAdd(ob1,ob2) @@ -142,7 +143,11 @@ struct object KooAdd(ob1,ob2) default: - warningKan("KooAdd() has not supported yet these objects.\n"); + if (QuoteMode) { + rob = addTree(ob1,ob2); + }else{ + warningKan("KooAdd() has not supported yet these objects.\n"); + } break; } return(rob); @@ -270,7 +275,11 @@ struct object KooSub(ob1,ob2) break; default: - warningKan("KooSub() has not supported yet these objects.\n"); + if (QuoteMode) { + rob = minusTree(ob1,ob2); + }else{ + warningKan("KooSub() has not supported yet these objects.\n"); + } break; } return(rob); @@ -412,7 +421,11 @@ struct object KooMult(ob1,ob2) break; default: - warningKan("KooMult() has not supported yet these objects.\n"); + if (QuoteMode) { + rob = timesTree(ob1,ob2); + }else{ + warningKan("KooMult() has not supported yet these objects.\n"); + } break; } return(rob); @@ -451,7 +464,11 @@ struct object KoNegate(obj) break; default: - warningKan("KoNegate() has not supported yet these objects.\n"); + if (QuoteMode) { + rob = unaryminusTree(obj); + }else{ + warningKan("KoNegate() has not supported yet these objects.\n"); + } break; } return(rob); @@ -653,7 +670,11 @@ struct object KooDiv(ob1,ob2) default: - warningKan("KooDiv() has not supported yet these objects.\n"); + if (QuoteMode) { + rob = divideTree(ob1,ob2); + }else{ + warningKan("KooDiv() has not supported yet these objects.\n"); + } break; } return(rob); @@ -2098,7 +2119,7 @@ struct object KstringToArgv(struct object ob) { rob = newObjectArray(wc); for (i=0; im->ringp)))); + } + }else if (strcmp(key,"ord_ws_all")==0) { + if (size != 3) errorKan1("%s\n","[(ord_ws_all) fv wv] gbext"); + obj1 = getoa(obj,1); + obj2 = getoa(obj,2); + rob = KordWsAll(obj1,obj2); }else { errorKan1("%s\n","gbext : unknown tag."); }