Changeset dcf88ff in git
- Timestamp:
- Dec 11, 2012, 7:28:54 PM (10 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'cdfcdb8287f66bc6070028082cbbc6eff10e609b')
- Children:
- 3e7db4d961b4509d248e12d8e96e2bed08d9cfe8
- Parents:
- e7cccf3b8b35aa52ffffb9f6d1a54ae569d3466fbd8204a951e445d6081f81d1727da65972ead678
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/countedref.cc
re7cccf3 rdcf88ff 696 696 void countedref_reference_load() 697 697 { 698 int tok; 699 if (blackboxIsCmd("reference", tok) == ROOT_DECL) 700 return; 701 698 702 blackbox *bbx = (blackbox*)omAlloc0(sizeof(blackbox)); 699 703 bbx->blackbox_CheckAssign = countedref_CheckAssign; … … 716 720 void countedref_shared_load() 717 721 { 722 int tok; 723 if (blackboxIsCmd("shared", tok) == ROOT_DECL) 724 return; 725 718 726 blackbox *bbxshared = (blackbox*)omAlloc0(sizeof(blackbox)); 719 727 bbxshared->blackbox_String = countedref_String; -
Singular/extra.cc
re7cccf3 rdcf88ff 94 94 #include "walk.h" 95 95 #include <Singular/newstruct.h> 96 96 #include <Singular/pyobject_setup.h> 97 97 98 98 … … 2947 2947 else 2948 2948 2949 /*==== pyobject (or pyobject*, like pyobject.so) force loading python ===*/ 2950 if (strncmp(sys_cmd, "pyobject", 8) == 0) 2951 { 2952 res->rtyp = NONE; 2953 return pyobject_ensure(); 2954 } 2955 else 2949 2956 2950 2957 /*==================== DLL =================*/ -
Singular/pyobject_setup.cc
re7cccf3 rdcf88ff 49 49 void* pyobject_autoload(blackbox* bbx) 50 50 { 51 if (pyobject_load()) return NULL;52 return bbx->blackbox_Init(bbx);51 assume(bbx != NULL); 52 return (pyobject_load()? NULL: bbx->blackbox_Init(bbx)); 53 53 } 54 54 … … 67 67 } 68 68 69 /// Explicitely load, if not loaded already 70 BOOLEAN pyobject_ensure() { 71 72 int tok = -1; 73 blackbox* bbx = (blackboxIsCmd("pyobject", tok) == ROOT_DECL? 74 getBlackboxStuff(tok): (blackbox*)NULL); 75 if (bbx == NULL) return TRUE; 76 return (bbx->blackbox_Init == pyobject_autoload? pyobject_load(): FALSE); 77 } 78 79 80 -
Singular/pyobject_setup.h
re7cccf3 rdcf88ff 17 17 #define SINGULAR_PYOBJECT_SETUP_H 18 18 19 /// initialize blackbox support for @c pyobject; functionilty os autoloaded on demand 19 20 void pyobject_setup(); 20 21 22 /// force leading of pyobject functionality 23 BOOLEAN pyobject_ensure(); 24 21 25 #endif -
configure.ac
re7cccf3 rdcf88ff 63 63 64 64 AX_PYTHON_DEFAULT() 65 AC_ARG_WITH( 66 python, 67 AS_HELP_STRING([--with-python@<:@=PYTHON@:>@], 68 [absolute path name of Python executable] 69 ), 70 [AX_PYTHON_WITH()], 71 [with_python="yes";AX_PYTHON_WITH()] 72 ) 65 AX_PYTHON_WITH_VERSION([2.4]) 73 66 74 AX_PYTHON_VERSION_ENSURE([2.4])75 AX_PYTHON_LSPEC()76 AX_PYTHON_CSPEC()77 67 78 68 AC_FUNC_ERROR_AT_LINE
Note: See TracChangeset
for help on using the changeset viewer.