Changeset 28e58fd for src/libcfa/interpose.c
- Timestamp:
- Aug 25, 2017, 10:38:34 AM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 800d275
- Parents:
- af08051 (diff), 3eab308c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/interpose.c
raf08051 r28e58fd 49 49 50 50 union { generic_fptr_t fptr; void* ptr; } originalFunc; 51 51 52 52 #if defined( _GNU_SOURCE ) 53 53 if ( version ) { … … 59 59 originalFunc.ptr = dlsym( library, symbol ); 60 60 #endif // _GNU_SOURCE 61 61 62 62 error = dlerror(); 63 if ( error ) abortf( "interpose_symbol : internal error, %s\n", error ); 63 if ( error ) abortf( "interpose_symbol : internal error, %s\n", error ); 64 64 65 65 return originalFunc.fptr; … … 74 74 forall(dtype T) 75 75 static inline void assign_ptr( T** symbol_ptr, const char * symbol_name, const char * version) { 76 union { 76 union { 77 77 generic_fptr_t gp; 78 T* tp; 78 T* tp; 79 79 } u; 80 80
Note:
See TracChangeset
for help on using the changeset viewer.