Changeset d1fbbf in git for Singular/countedref.cc
- Timestamp:
- Sep 10, 2012, 11:15:38 PM (11 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
- Children:
- 36ebfaa4578b6a83a5511dbbc252bdd925f2845ff768d91b15a3cda106e7c041c7889cda1828dbfe
- Parents:
- 60da76178ec79ee6647fded520f4de44f6a84da4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/countedref.cc
r60da76 rd1fbbf 183 183 } 184 184 185 /// We use the as a marker of refernce types. 185 /// We use the function pointer as a marker of reference types 186 /// for CountedRef::is_ref(leftv), see the latter for details 186 187 BOOLEAN countedref_CheckAssign(blackbox *b, leftv L, leftv R) 187 188 { … … 204 205 205 206 /// Check whether argument is already a reference type 207 /// @note We check for the function pointer @c countedref_CheckAssign here, 208 /// that we (ab-)use as a unique marker. This avoids to check a bunch of 209 /// of runtime-varying @c typ IDs for identifying reference-like types. 206 210 static BOOLEAN is_ref(leftv arg) { 207 211 int typ = arg->Typ(); … … 713 717 714 718 715 #ifdef HAVE_DYNAMIC_COUNTEDREF716 extern "C" { void mod_init() { countedref_init(); } }717 #endif718
Note: See TracChangeset
for help on using the changeset viewer.