diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-08-07 20:57:08 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-08-07 20:57:08 (GMT) |
commit | 0fe2d45ae44323638f143bf320c77a5cb6df2a01 (patch) | |
tree | 01529af3ee161f7c70fd8f14ba581054bd52155c /unix/tclLoadOSF.c | |
parent | 00acd83312b7bcc144212b7bd1a47436719b0d2c (diff) | |
download | tcl-0fe2d45ae44323638f143bf320c77a5cb6df2a01.zip tcl-0fe2d45ae44323638f143bf320c77a5cb6df2a01.tar.gz tcl-0fe2d45ae44323638f143bf320c77a5cb6df2a01.tar.bz2 |
Minor changes to improve style (C89 declarations, consistent indentation,
clarification of #endifs, reduction of unnecessary casts, use of array syntax
for reading array elements, etc.)
Diffstat (limited to 'unix/tclLoadOSF.c')
-rw-r--r-- | unix/tclLoadOSF.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/unix/tclLoadOSF.c b/unix/tclLoadOSF.c index 6515b89..6e76b55 100644 --- a/unix/tclLoadOSF.c +++ b/unix/tclLoadOSF.c @@ -35,12 +35,14 @@ #include "tclInt.h" #include <sys/types.h> #include <loader.h> - -/* Static functions defined within this file */ -static void* FindSymbol(Tcl_Interp* interp, Tcl_LoadHandle loadHandle, - const char* symbol); -static void UnloadFile(Tcl_LoadHandle handle); +/* + * Static functions defined within this file. + */ + +static void * FindSymbol(Tcl_Interp *interp, + Tcl_LoadHandle loadHandle, const char* symbol); +static void UnloadFile(Tcl_LoadHandle handle); /* *---------------------------------------------------------------------- @@ -105,7 +107,7 @@ TclpDlopen( if (lm == LDR_NULL_MODULE) { Tcl_SetObjResult(interp, Tcl_ObjPrintf( "couldn't load file \"%s\": %s", - fileName, Tcl_PosixError(interp)); + fileName, Tcl_PosixError(interp))); return TCL_ERROR; } |