Changeset d1fbbf in git
- Timestamp:
- Sep 10, 2012, 11:15:38 PM (10 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'ad2543eab51733612ba7d118afc77edca719600e')
- Children:
- 36ebfaa4578b6a83a5511dbbc252bdd925f2845ff768d91b15a3cda106e7c041c7889cda1828dbfe
- Parents:
- 60da76178ec79ee6647fded520f4de44f6a84da4
- Files:
-
- 5 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 -
Singular/countedref.h
r60da76 rd1fbbf 448 448 void countedref_shared_load(); 449 449 450 //#define SINGULAR_COUNTEDREF_AUTOLOAD451 452 450 inline void 453 451 countedref_init() 454 452 { 455 #ifdef SINGULAR_COUNTEDREF_AUTOLOAD456 453 countedref_reference_load(); 457 454 countedref_shared_load(); 458 #endif459 455 } 460 456 -
Singular/extra.cc
r60da76 rd1fbbf 2931 2931 if (strcmp(sys_cmd, "shared") == 0) 2932 2932 { 2933 #ifndef SI NGULAR_COUNTEDREF_AUTOLOAD2933 #ifndef SI_COUNTEDREF_AUTOLOAD 2934 2934 void countedref_shared_load(); 2935 2935 countedref_shared_load(); … … 2940 2940 else if (strcmp(sys_cmd, "reference") == 0) 2941 2941 { 2942 #ifndef SI NGULAR_COUNTEDREF_AUTOLOAD2942 #ifndef SI_COUNTEDREF_AUTOLOAD 2943 2943 void countedref_reference_load(); 2944 2944 countedref_reference_load(); -
Singular/tesths.cc
r60da76 rd1fbbf 170 170 pyobject_setup(); 171 171 #endif 172 #ifdef SI_COUNTEDREF_AUTOLOAD 172 173 countedref_init(); 174 #endif 173 175 #ifdef HAVE_FANS 174 176 bbcone_setup(); -
configure.ac
r60da76 rd1fbbf 132 132 AM_CONDITIONAL(WANT_DEBUG, test x"${ENABLE_DEBUG}" == xyes) 133 133 134 AC_ARG_ENABLE(countedref, AS_HELP_STRING([--enable-countedref], [Enable autoloading of reference counted types]), 135 [if test "x$enableval" = "xyes"; then 136 ENABLE_COUNTEDREF_AUTOLOAD=yes 137 fi], ENABLE_COUNTEDREF_AUTOLOAD=no) 138 139 if test x"${ENABLE_COUNTEDREF_AUTOLOAD}" == xyes; then 140 AC_DEFINE([SI_COUNTEDREF_AUTOLOAD],1,[Enable autoloading of reference counted types]) 141 AC_SUBST(SI_COUNTEDREF_AUTOLOAD) 142 fi 143 134 144 AC_CONFIG_SUBDIRS([findexec]) 135 145 AC_CONFIG_SUBDIRS([omalloc])
Note: See TracChangeset
for help on using the changeset viewer.