version 1.50, 2009/01/04 10:02:00 |
version 1.52, 2009/01/05 02:14:00 |
|
|
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* |
* |
* $OpenXM: OpenXM_contrib2/asir2000/builtin/dp-supp.c,v 1.49 2009/01/04 05:44:51 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/builtin/dp-supp.c,v 1.51 2009/01/05 01:47:30 noro Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
#include "base.h" |
#include "base.h" |
Line 1727 int create_order_spec(VL vl,Obj obj,struct order_spec |
|
Line 1727 int create_order_spec(VL vl,Obj obj,struct order_spec |
|
if ( v->len < 2 ) error("create_order_spec : invalid argument"); |
if ( v->len < 2 ) error("create_order_spec : invalid argument"); |
create_order_spec(0,(Obj)bv[1],&spec); |
create_order_spec(0,(Obj)bv[1],&spec); |
spec->id += 256; spec->obj = obj; |
spec->id += 256; spec->obj = obj; |
spec->istop = bv[0]==0; |
spec->ispot = (bv[0]!=0); |
*specp = spec; |
*specp = spec; |
return 1; |
return 1; |
} else |
} else |
Line 2202 void homogenize_order(struct order_spec *old,int n,str |
|
Line 2202 void homogenize_order(struct order_spec *old,int n,str |
|
new->id = old->id; new->nv = n+1; |
new->id = old->id; new->nv = n+1; |
new->ord.block.order_pair = l; |
new->ord.block.order_pair = l; |
new->ord.block.length = length+1; |
new->ord.block.length = length+1; |
new->istop = old->istop; |
new->ispot = old->ispot; |
break; |
break; |
case 2: case 258: |
case 2: case 258: |
nv = old->nv; row = old->ord.matrix.row; |
nv = old->nv; row = old->ord.matrix.row; |
Line 2216 void homogenize_order(struct order_spec *old,int n,str |
|
Line 2216 void homogenize_order(struct order_spec *old,int n,str |
|
} |
} |
new->id = old->id; new->nv = nv+1; |
new->id = old->id; new->nv = nv+1; |
new->ord.matrix.row = row+1; new->ord.matrix.matrix = newm; |
new->ord.matrix.row = row+1; new->ord.matrix.matrix = newm; |
new->istop = old->istop; |
new->ispot = old->ispot; |
break; |
break; |
case 3: case 259: |
case 3: case 259: |
onv = old->nv; |
onv = old->nv; |
Line 2256 void homogenize_order(struct order_spec *old,int n,str |
|
Line 2256 void homogenize_order(struct order_spec *old,int n,str |
|
new->nv = nnv; |
new->nv = nnv; |
new->ord.composite.length = nlen; |
new->ord.composite.length = nlen; |
new->ord.composite.w_or_b = nwb; |
new->ord.composite.w_or_b = nwb; |
new->istop = old->istop; |
new->ispot = old->ispot; |
print_composite_order_spec(new); |
print_composite_order_spec(new); |
break; |
break; |
case 256: /* simple module order */ |
case 256: /* simple module order */ |
Line 2277 void homogenize_order(struct order_spec *old,int n,str |
|
Line 2277 void homogenize_order(struct order_spec *old,int n,str |
|
default: |
default: |
error("homogenize_order : invalid input"); |
error("homogenize_order : invalid input"); |
} |
} |
new->istop = old->istop; |
new->ispot = old->ispot; |
break; |
break; |
default: |
default: |
error("homogenize_order : invalid input"); |
error("homogenize_order : invalid input"); |