Changeset 4a8d95 in git for Singular/mpsr_Get.cc
- Timestamp:
- Nov 9, 1998, 4:43:05 PM (25 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 0d67d1a21775b2276749beabac94d42e5e4915b5
- Parents:
- 4015fccbbf310b401abf655f858b2a5914c90eea
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/mpsr_Get.cc
r4015fcc r4a8d95 3 3 ****************************************/ 4 4 5 /* $Id: mpsr_Get.cc,v 1. 19 1998-10-15 11:46:03 obachman Exp $ */5 /* $Id: mpsr_Get.cc,v 1.20 1998-11-09 15:43:03 obachman Exp $ */ 6 6 /*************************************************************** 7 7 * … … 76 76 fr(NodeCheck(node, MP_MatrixDict, MP_CopMatrixDenseVector)); 77 77 78 MPT_Tree_pt tree = MPT_ GetProtoTypespec(node);78 MPT_Tree_pt tree = MPT_ProtoAnnotValue(node); 79 79 return tree != NULL && NodeCheck(tree->node, MP_CommonMetaType, 80 80 MP_ProtoDict, MP_CmtProtoIMP_Sint32); … … 85 85 fr(NodeCheck(node, MP_MatrixDict, MP_CopMatrixDenseMatrix)); 86 86 87 MPT_Tree_pt tree = MPT_ GetProtoTypespec(node);87 MPT_Tree_pt tree = MPT_ProtoAnnotValue(node); 88 88 return tree != NULL && NodeCheck(tree->node, MP_CommonMetaType, 89 89 MP_ProtoDict, MP_CmtProtoIMP_Sint32); … … 105 105 return 106 106 NodeCheck(node, MP_PolyDict, MP_CopPolyDenseDistPoly) && 107 MPT_ FindAnnot(node, MP_PolyDict, MP_AnnotPolyModuleVector) == NULL &&107 MPT_Annot(node, MP_PolyDict, MP_AnnotPolyModuleVector) == NULL && 108 108 mpsr_GetRingAnnots(node, r, mv, IsUnOrdered) == MP_Success; 109 109 } … … 117 117 return 118 118 NodeCheck(node, MP_PolyDict, MP_CopPolyDenseDistPoly) && 119 MPT_ FindAnnot(node, MP_PolyDict, MP_AnnotPolyModuleVector) != NULL &&119 MPT_Annot(node, MP_PolyDict, MP_AnnotPolyModuleVector) != NULL && 120 120 mpsr_GetRingAnnots(node, r, mv, IsUnOrdered) == MP_Success; 121 121 } … … 125 125 { 126 126 fr(NodeCheck(node, MP_PolyDict, MP_CopPolyIdeal)); 127 MPT_Tree_pt tree = MPT_ GetProtoTypespec(node);127 MPT_Tree_pt tree = MPT_ProtoAnnotValue(node); 128 128 fr(tree != NULL); 129 129 node = tree->node; … … 137 137 { 138 138 fr(NodeCheck(node, MP_PolyDict, MP_CopPolyModule)); 139 MPT_Tree_pt tree = MPT_ GetProtoTypespec(node);139 MPT_Tree_pt tree = MPT_ProtoAnnotValue(node); 140 140 fr(tree != NULL); 141 141 node = tree->node; … … 149 149 { 150 150 fr(NodeCheck(node, MP_MatrixDict, MP_CopMatrixDenseMatrix)); 151 MPT_Tree_pt tree = MPT_ GetProtoTypespec(node);151 MPT_Tree_pt tree = MPT_ProtoAnnotValue(node); 152 152 fr(tree != NULL); 153 153 node = tree->node; … … 254 254 mpsr_assume(MP_IsIdType(node->type)); 255 255 char *id; 256 MPT_Annot_pt proc_annot = MPT_ FindAnnot(node, MP_SingularDict,256 MPT_Annot_pt proc_annot = MPT_Annot(node, MP_SingularDict, 257 257 MP_AnnotSingularProcDef); 258 258 … … 330 330 { 331 331 ring r = rCopy(mlv.r); 332 r->order[0] = ringorder_ lp;332 r->order[0] = ringorder_dp; 333 333 mpsr_rSetOrdSgn(r); 334 334 mpsr_MapLeftv(mlv.lv, mlv.r, r); … … 461 461 462 462 463 if (MPT_ GetProtoTypespec(node) != NULL)463 if (MPT_ProtoAnnotValue(node) != NULL) 464 464 return mpsr_SetError(mpsr_CanNotHandlePrototype); 465 465 … … 515 515 intvec *iv; 516 516 int row = node->numchild, col = 1, *v; 517 MPT_Annot_pt annot = MPT_ FindAnnot(node, MP_MatrixDict,517 MPT_Annot_pt annot = MPT_Annot(node, MP_MatrixDict, 518 518 MP_AnnotMatrixDimension); 519 519 if (annot != NULL && … … 607 607 ring r = mlv->r; 608 608 MP_Uint32_t nmon, rank = 1; 609 MPT_Annot_pt annot = MPT_ FindAnnot(node, MP_PolyDict,609 MPT_Annot_pt annot = MPT_Annot(node, MP_PolyDict, 610 610 MP_AnnotPolyModuleRank); 611 611 if (annot != NULL && … … 636 636 matrix mp; 637 637 MP_Uint32_t nmon; 638 MPT_Annot_pt annot = MPT_ FindAnnot(node, MP_MatrixDict,638 MPT_Annot_pt annot = MPT_Annot(node, MP_MatrixDict, 639 639 MP_AnnotMatrixDimension); 640 640 if (annot != NULL && … … 727 727 failr(mpsr_mp2tok(node->dict, MP_COMMON_T(node->nvalue), &tok)); 728 728 729 if ((typespec = MPT_ GetProtoTypespec(node)) &&729 if ((typespec = MPT_ProtoAnnotValue(node)) && 730 730 MPT_IsTrueProtoTypeSpec(typespec)) 731 731 return mpsr_SetError(mpsr_CanNotHandlePrototype);
Note: See TracChangeset
for help on using the changeset viewer.