Mercurial > octave
comparison liboctave/util/oct-shlib.cc @ 21202:f7121e111991
maint: indent #ifdef blocks in liboctave and src directories.
* Array-C.cc, Array-b.cc, Array-ch.cc, Array-d.cc, Array-f.cc, Array-fC.cc,
Array-i.cc, Array-idx-vec.cc, Array-s.cc, Array-str.cc, Array-util.cc,
Array-voidp.cc, Array.cc, CColVector.cc, CDiagMatrix.cc, CMatrix.cc,
CNDArray.cc, CRowVector.cc, CSparse.cc, CSparse.h, DiagArray2.cc, MArray-C.cc,
MArray-d.cc, MArray-f.cc, MArray-fC.cc, MArray-i.cc, MArray-s.cc, MArray.cc,
MDiagArray2.cc, MSparse-C.cc, MSparse-d.cc, MSparse.h, MatrixType.cc,
PermMatrix.cc, Range.cc, Sparse-C.cc, Sparse-b.cc, Sparse-d.cc, Sparse.cc,
boolMatrix.cc, boolNDArray.cc, boolSparse.cc, chMatrix.cc, chNDArray.cc,
dColVector.cc, dDiagMatrix.cc, dMatrix.cc, dNDArray.cc, dRowVector.cc,
dSparse.cc, dSparse.h, dim-vector.cc, fCColVector.cc, fCDiagMatrix.cc,
fCMatrix.cc, fCNDArray.cc, fCRowVector.cc, fColVector.cc, fDiagMatrix.cc,
fMatrix.cc, fNDArray.cc, fRowVector.cc, idx-vector.cc, int16NDArray.cc,
int32NDArray.cc, int64NDArray.cc, int8NDArray.cc, intNDArray.cc,
uint16NDArray.cc, uint32NDArray.cc, uint64NDArray.cc, uint8NDArray.cc,
blaswrap.c, cquit.c, f77-extern.cc, f77-fcn.c, f77-fcn.h, lo-error.c, quit.cc,
quit.h, CmplxAEPBAL.cc, CmplxCHOL.cc, CmplxGEPBAL.cc, CmplxHESS.cc, CmplxLU.cc,
CmplxQR.cc, CmplxQRP.cc, CmplxSCHUR.cc, CmplxSVD.cc, CollocWt.cc, DASPK.cc,
DASRT.cc, DASSL.cc, EIG.cc, LSODE.cc, ODES.cc, Quad.cc, base-lu.cc, base-qr.cc,
dbleAEPBAL.cc, dbleCHOL.cc, dbleGEPBAL.cc, dbleHESS.cc, dbleLU.cc, dbleQR.cc,
dbleQRP.cc, dbleSCHUR.cc, dbleSVD.cc, eigs-base.cc, fCmplxAEPBAL.cc,
fCmplxCHOL.cc, fCmplxGEPBAL.cc, fCmplxHESS.cc, fCmplxLU.cc, fCmplxQR.cc,
fCmplxQRP.cc, fCmplxSCHUR.cc, fCmplxSVD.cc, fEIG.cc, floatAEPBAL.cc,
floatCHOL.cc, floatGEPBAL.cc, floatHESS.cc, floatLU.cc, floatQR.cc,
floatQRP.cc, floatSCHUR.cc, floatSVD.cc, lo-mappers.cc, lo-specfun.cc,
oct-convn.cc, oct-fftw.cc, oct-fftw.h, oct-norm.cc, oct-rand.cc,
oct-spparms.cc, randgamma.c, randmtzig.c, randpoisson.c, sparse-chol.cc,
sparse-dmsolve.cc, sparse-lu.cc, sparse-qr.cc, mx-defs.h, dir-ops.cc,
file-ops.cc, file-stat.cc, lo-sysdep.cc, mach-info.cc, oct-env.cc,
oct-group.cc, oct-openmp.h, oct-passwd.cc, oct-syscalls.cc, oct-time.cc,
oct-uname.cc, pathlen.h, sysdir.h, syswait.h, cmd-edit.cc, cmd-hist.cc,
data-conv.cc, f2c-main.c, glob-match.cc, lo-array-errwarn.cc,
lo-array-gripes.cc, lo-cutils.c, lo-cutils.h, lo-ieee.cc, lo-math.h,
lo-regexp.cc, lo-utils.cc, oct-base64.cc, oct-glob.cc, oct-inttypes.cc,
oct-inttypes.h, oct-locbuf.cc, oct-mutex.cc, oct-refcount.h, oct-rl-edit.c,
oct-rl-hist.c, oct-shlib.cc, oct-sort.cc, pathsearch.cc, singleton-cleanup.cc,
sparse-sort.cc, sparse-util.cc, statdefs.h, str-vec.cc, unwind-prot.cc,
url-transfer.cc, display-available.h, main-cli.cc, main-gui.cc, main.in.cc,
mkoctfile.in.cc, octave-config.in.cc, shared-fcns.h:
indent #ifdef blocks in liboctave and src directories.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 06 Feb 2016 06:40:13 -0800 |
parents | 7cac4e7458f2 |
children | f7d1050b9b53 |
comparison
equal
deleted
inserted
replaced
21201:88b41a4711e2 | 21202:f7121e111991 |
---|---|
20 <http://www.gnu.org/licenses/>. | 20 <http://www.gnu.org/licenses/>. |
21 | 21 |
22 */ | 22 */ |
23 | 23 |
24 #ifdef HAVE_CONFIG_H | 24 #ifdef HAVE_CONFIG_H |
25 #include <config.h> | 25 # include <config.h> |
26 #endif | 26 #endif |
27 | 27 |
28 #include <map> | 28 #include <map> |
29 | 29 |
30 #if defined (HAVE_SHL_LOAD_API) | 30 #if defined (HAVE_SHL_LOAD_API) |
31 #include <cerrno> | 31 # include <cerrno> |
32 #include <cstring> | 32 # include <cstring> |
33 #endif | 33 #endif |
34 | 34 |
35 #if defined (HAVE_DYLD_API) | 35 #if defined (HAVE_DYLD_API) |
36 #include <mach-o/dyld.h> | 36 # include <mach-o/dyld.h> |
37 #endif | 37 #endif |
38 | 38 |
39 extern "C" | 39 extern "C" |
40 { | 40 { |
41 #if defined (HAVE_DLOPEN_API) | 41 #if defined (HAVE_DLOPEN_API) |
42 #if defined (HAVE_DLFCN_H) | 42 # if defined (HAVE_DLFCN_H) |
43 #include <dlfcn.h> | 43 # include <dlfcn.h> |
44 #else | 44 # else |
45 extern void *dlopen (const char *, int); | 45 extern void *dlopen (const char *, int); |
46 extern const char *dlerror (void); | 46 extern const char *dlerror (void); |
47 extern void *dlsym (void *, const char *); | 47 extern void *dlsym (void *, const char *); |
48 extern int dlclose (void *); | 48 extern int dlclose (void *); |
49 #endif | 49 # endif |
50 #elif defined (HAVE_SHL_LOAD_API) | 50 #elif defined (HAVE_SHL_LOAD_API) |
51 #include <dl.h> | 51 # include <dl.h> |
52 #elif defined (HAVE_LOADLIBRARY_API) | 52 #elif defined (HAVE_LOADLIBRARY_API) |
53 #define WIN32_LEAN_AND_MEAN | 53 # define WIN32_LEAN_AND_MEAN |
54 #include <windows.h> | 54 # include <windows.h> |
55 #endif | 55 #endif |
56 } | 56 } |
57 | 57 |
58 #include "file-stat.h" | 58 #include "file-stat.h" |
59 #include "lo-error.h" | 59 #include "lo-error.h" |
189 | 189 |
190 // Use RTLD_NOW to resolve all symbols before dlopen returns. | 190 // Use RTLD_NOW to resolve all symbols before dlopen returns. |
191 // By using this option, dlopen will detect errors and Octave | 191 // By using this option, dlopen will detect errors and Octave |
192 // won't exit if there are unresolved symbols in the file we are | 192 // won't exit if there are unresolved symbols in the file we are |
193 // loading, and we may even get a useful diagnostic. | 193 // loading, and we may even get a useful diagnostic. |
194 #if defined (RTLD_NOW) | 194 # if defined (RTLD_NOW) |
195 flags |= RTLD_NOW; | 195 flags |= RTLD_NOW; |
196 #endif | 196 # endif |
197 | 197 |
198 // Use RTLD_GLOBAL to export symbols from loaded objects so they are | 198 // Use RTLD_GLOBAL to export symbols from loaded objects so they are |
199 // available to other subsequently loaded libraries. | 199 // available to other subsequently loaded libraries. |
200 #if defined (RTLD_GLOBAL) | 200 # if defined (RTLD_GLOBAL) |
201 flags |= RTLD_GLOBAL; | 201 flags |= RTLD_GLOBAL; |
202 #endif | 202 # endif |
203 | 203 |
204 library = dlopen (file.c_str (), flags); | 204 library = dlopen (file.c_str (), flags); |
205 | 205 |
206 if (! library) | 206 if (! library) |
207 { | 207 { |