Changeset 836138 in git
- Timestamp:
- Feb 1, 2010, 12:04:01 PM (13 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a657104b677b4c461d018cbf3204d72d34ad66a9')
- Children:
- ebee6c65be9b696d7b610a19c579045f15d11830
- Parents:
- 66a322a436b2789167c21fea3dd3bc12fa72e53a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/extra.cc
r66a322 r836138 2109 2109 else 2110 2110 #endif 2111 /*==================== changeRing ========================*/ 2112 /* The following code changes the names of the variables in the 2113 current ring to "x1", "x2", ..., "xN", where N is the number 2114 of variables in the current ring. 2115 The purpose of this rewriting is to eliminate indexed variables, 2116 as they may cause problems when generating scripts for Magma, 2117 Maple, or Macaulay2. */ 2118 if(strcmp(sys_cmd,"changeRing")==0) 2119 { 2120 int varN = currRing->N; 2121 char h[10]; 2122 for (int i = 1; i <= varN; i++) 2123 { 2124 omFree(currRing->names[i - 1]); 2125 sprintf(h, "x%d", i); 2126 currRing->names[i - 1] = omStrDup(h); 2127 } 2128 rComplete(currRing); 2129 res->rtyp = INT_CMD; 2130 res->data = 0; 2131 return FALSE; 2132 } 2133 else 2111 2134 /*==================== generic debug ==================================*/ 2112 2135 #ifdef PDEBUG
Note: See TracChangeset
for help on using the changeset viewer.