Changeset 894939e in git
- Timestamp:
- Feb 11, 2020, 4:31:35 PM (4 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 024d099551e83f0d1d860e67ed16ddf4577dce4c645c77cc0cd67244418581efcd97abbb9c96ea3a
- Parents:
- 99fc84ca6907a6183c70b8fd1bce8b7695bf27ca
- Location:
- Singular
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ipassign.cc
r99fc84c r894939e 164 164 jjMINPOLY_red((idhdl)&(L->m[i])); 165 165 } 166 break; 166 167 } 167 168 default: … … 1114 1115 * assign a = b 1115 1116 */ 1116 static BOOLEAN jiAssign_1(leftv l, leftv r, BOOLEAN toplevel )1117 static BOOLEAN jiAssign_1(leftv l, leftv r, BOOLEAN toplevel, BOOLEAN is_qring=FALSE) 1117 1118 { 1118 1119 int rt=r->Typ(); … … 1199 1200 #endif 1200 1201 return (bb==NULL) || bb->blackbox_Assign(l,r); 1202 } 1203 if ((is_qring) 1204 &&(lt==RING_CMD) 1205 &&(rt==RING_CMD)) 1206 { 1207 Warn("qring .. = <ring>; is misleading in >>%s<<",my_yylinebuf); 1201 1208 } 1202 1209 int start=0; … … 1835 1842 int lt=l->Typ(); 1836 1843 int rt=NONE; 1844 int is_qring=FALSE; 1837 1845 BOOLEAN b=FALSE; 1838 1846 if (l->rtyp==ALIAS_CMD) … … 1844 1852 { 1845 1853 atKillAll((idhdl)l->data); 1854 is_qring=hasFlag((idhdl)l->data,FLAG_QRING_DEF); 1846 1855 IDFLAG((idhdl)l->data)=0; 1847 1856 l->attribute=NULL; … … 1929 1938 &&((lt==rt)||(lt!=LIST_CMD))) 1930 1939 { 1931 b=jiAssign_1(l,r,toplevel );1940 b=jiAssign_1(l,r,toplevel,is_qring); 1932 1941 if (l->rtyp==IDHDL) 1933 1942 { -
Singular/ipid.h
r99fc84c r894939e 102 102 void *idrecDataInit(int t); 103 103 104 #define FLAG_STD 0 105 #define FLAG_TWOSTD 3 106 #define FLAG_QRING 4 104 #define FLAG_STD 0 105 #define FLAG_TWOSTD 3 106 #define FLAG_QRING 4 107 #define FLAG_QRING_DEF 5 107 108 #define hasFlag(A,F) Sy_inset((F),(A)->flag) 108 109 #define setFlag(A,F) (A)->flag|=Sy_bit(F) -
Singular/ipshell.cc
r99fc84c r894939e 1126 1126 { 1127 1127 BOOLEAN res=FALSE; 1128 BOOLEAN is_qring=FALSE; 1128 1129 const char *id = name->name; 1129 1130 … … 1145 1146 } 1146 1147 } 1147 if (t==QRING_CMD) t=RING_CMD; // qring is always RING_CMD 1148 if (t==QRING_CMD) 1149 { 1150 t=RING_CMD; // qring is always RING_CMD 1151 is_qring=TRUE; 1152 } 1148 1153 1149 1154 if (TEST_V_ALLWARN … … 1162 1167 sy->rtyp=IDHDL; 1163 1168 currid=sy->name=IDID((idhdl)sy->data); 1169 if (is_qring) 1170 { 1171 IDFLAG((idhdl)sy->data)=sy->flag=Sy_bit(FLAG_QRING_DEF); 1172 } 1164 1173 // name->name=NULL; /* used in enterid */ 1165 1174 //sy->e = NULL;
Note: See TracChangeset
for help on using the changeset viewer.