Changeset 6a6dccc in git for Singular/sing_dld.cc
- Timestamp:
- Jul 2, 1997, 6:44:17 PM (27 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- b182edc0a08ed317e024336ca2822ed7b57bf61b
- Parents:
- 52810913e91e34d44e466f459d28b0a87d286a5a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/sing_dld.cc
r528109 r6a6dccc 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: sing_dld.cc,v 1. 3 1997-04-02 15:07:51Singular Exp $ */4 /* $Id: sing_dld.cc,v 1.4 1997-07-02 16:44:16 Singular Exp $ */ 5 5 6 6 /* … … 42 42 #endif 43 43 44 BOOLEAN dlLoad(const char * fn, const char *pn , proc1 &p)44 BOOLEAN dlLoad(const char * fn, const char *pn) 45 45 { 46 typedef void (*PROC)(void); 47 PROC p1; 46 48 #ifdef linux 47 49 #ifdef __ELF__ … … 50 52 if (h!=NULL) 51 53 { 52 p1=( proc1)dlsym(h,pn);54 p1=(PROC)dlsym(h,pn); 53 55 char *s; 54 56 if((s=dlerror())==NULL) 55 57 { 58 p1(); 56 59 return FALSE; 57 60 } … … 78 81 if (dld_function_executable_p(pn)) 79 82 { 80 p = (proc1) dld_get_func (pn); 83 p1 = (PROC) dld_get_func (pn); 84 p1(); 81 85 return FALSE; 82 86 } … … 92 96 shl_t hdl=shl_load(fn, 93 97 BIND_IMMEDIATE|BIND_NOSTART|BIND_NONFATAL|BIND_VERBOSE,0L); 94 int i=shl_findsym(&hdl,pn,TYPE_PROCEDURE,&p );98 int i=shl_findsym(&hdl,pn,TYPE_PROCEDURE,&p1); 95 99 if (i==0) 100 { 101 p1(); 96 102 return FALSE; 103 } 97 104 else 98 105 {
Note: See TracChangeset
for help on using the changeset viewer.