=================================================================== RCS file: /home/cvs/OpenXM/src/kan96xx/Kan/kanExport0.c,v retrieving revision 1.7 retrieving revision 1.10 diff -u -p -r1.7 -r1.10 --- OpenXM/src/kan96xx/Kan/kanExport0.c 2001/05/04 01:06:23 1.7 +++ OpenXM/src/kan96xx/Kan/kanExport0.c 2002/11/04 10:53:55 1.10 @@ -1,4 +1,4 @@ -/* $OpenXM: OpenXM/src/kan96xx/Kan/kanExport0.c,v 1.6 2001/04/12 06:48:25 takayama Exp $ */ +/* $OpenXM: OpenXM/src/kan96xx/Kan/kanExport0.c,v 1.9 2002/09/08 10:49:49 takayama Exp $ */ #include #include "datatype.h" #include "stackm.h" @@ -1537,6 +1537,7 @@ int KsetUpRing(ob1,ob2,ob3,ob4,ob5) newRingp->schreyer = 0; newRingp->gbListTower = NULL; newRingp->outputOrder = outputVars; + newRingp->weightedHomogenization = 0; if (ob5.tag != Sarray || (getoaSize(ob5) % 2) != 0) { errorKan1("%s\n","[(keyword) value (keyword) value ....] should be given."); @@ -1583,6 +1584,11 @@ int KsetUpRing(ob1,ob2,ob3,ob4,ob5) errorKan1("%s\n","A name should be given. (ringName)"); } ringName = KopString(getoa(ob5,i+1)); + } else if (strcmp(KopString(getoa(ob5,i)),"weightedHomogenization") == 0) { + if (getoa(ob5,i+1).tag != Sinteger) { + errorKan1("%s\n","A integer should be given. (weightedHomogenization)"); + } + newRingp->weightedHomogenization = KopInteger(getoa(ob5,i+1)); } else { errorKan1("%s\n","Unknown keyword to set_up_ring@"); } @@ -2675,6 +2681,7 @@ errorKan1(str,message) extern int GotoP; extern int ErrorMessageMode; char tmpc[1024]; + cancelAlarm(); if (ErrorMessageMode == 1 || ErrorMessageMode == 2) { sprintf(tmpc,"\nERROR(kanExport[0|1].c): "); if (strlen(message) < 900) { @@ -2694,7 +2701,11 @@ errorKan1(str,message) } stdOperandStack(); contextControl(CCRESTORE); /* fprintf(stderr,"Now. Long jump!\n"); */ +#if defined(__CYGWIN__) + siglongjmp(EnvOfStackMachine,1); +#else longjmp(EnvOfStackMachine,1); +#endif } warningKan(str)