diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2008-11-08 18:44:39 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2008-11-08 18:44:39 (GMT) |
commit | 1411b2f26b3d46b402c4774770fb5356cd47ef95 (patch) | |
tree | 080187f8a151cf82a630512856d2315e712cedf9 /generic/tkArgv.c | |
parent | 4f2679372f637fcd2f0d997b9d97165a6b558f12 (diff) | |
download | tk-1411b2f26b3d46b402c4774770fb5356cd47ef95.zip tk-1411b2f26b3d46b402c4774770fb5356cd47ef95.tar.gz tk-1411b2f26b3d46b402c4774770fb5356cd47ef95.tar.bz2 |
Lots of small changes to make code more pretty and C89-like.
Diffstat (limited to 'generic/tkArgv.c')
-rw-r--r-- | generic/tkArgv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkArgv.c b/generic/tkArgv.c index 2935183..8ad8331 100644 --- a/generic/tkArgv.c +++ b/generic/tkArgv.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkArgv.c,v 1.16 2008/10/28 22:33:06 nijtmans Exp $ + * RCS: @(#) $Id: tkArgv.c,v 1.17 2008/11/08 18:44:39 dkf Exp $ */ #include "tkInt.h" @@ -231,7 +231,7 @@ Tk_ParseArgv( typedef int (ArgvFunc)(char *, const char *, const char *); ArgvFunc *handlerProc = (ArgvFunc *) infoPtr->src; - if ((*handlerProc)(infoPtr->dst, infoPtr->key, argv[srcIndex])) { + if (handlerProc(infoPtr->dst, infoPtr->key, argv[srcIndex])) { srcIndex++; argc--; } @@ -242,8 +242,8 @@ Tk_ParseArgv( const char **); ArgvGenFunc *handlerProc = (ArgvGenFunc *) infoPtr->src; - argc = (*handlerProc)(infoPtr->dst, interp, infoPtr->key, - argc, argv+srcIndex); + argc = handlerProc(infoPtr->dst, interp, infoPtr->key, argc, + argv+srcIndex); if (argc < 0) { return TCL_ERROR; } |