Changeset d1fbbf in git for Singular/countedref.cc


Ignore:
Timestamp:
Sep 10, 2012, 11:15:38 PM (11 years ago)
Author:
Alexander Dreyer <alexander.dreyer@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
Children:
36ebfaa4578b6a83a5511dbbc252bdd925f2845ff768d91b15a3cda106e7c041c7889cda1828dbfe
Parents:
60da76178ec79ee6647fded520f4de44f6a84da4
Message:
Making autoloading of 'reference' and 'shared' customizable
new Added configure option
chg Explained more generic CountedRef::is_ref(leftv)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/countedref.cc

    r60da76 rd1fbbf  
    183183}
    184184
    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
    186187BOOLEAN countedref_CheckAssign(blackbox *b, leftv L, leftv R)
    187188{
     
    204205
    205206  /// 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.
    206210  static BOOLEAN is_ref(leftv arg) {
    207211    int typ = arg->Typ();
     
    713717
    714718
    715 #ifdef HAVE_DYNAMIC_COUNTEDREF
    716 extern "C" { void mod_init() { countedref_init(); } }
    717 #endif
    718 
Note: See TracChangeset for help on using the changeset viewer.