diff options
author | dkf <dkf@noemail.net> | 2004-05-27 13:18:51 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2004-05-27 13:18:51 (GMT) |
commit | 8507a8b0ae47da0e0060f508feb5a507ab9e4b86 (patch) | |
tree | 81621affdfd50f3451faa2c5568732111932e247 /generic/tclScan.c | |
parent | f23427af2cbbb6f6e6ea6e9b8fedac9a697c5a61 (diff) | |
download | tcl-8507a8b0ae47da0e0060f508feb5a507ab9e4b86.zip tcl-8507a8b0ae47da0e0060f508feb5a507ab9e4b86.tar.gz tcl-8507a8b0ae47da0e0060f508feb5a507ab9e4b86.tar.bz2 |
Made compiling with -Wstrict-prototypes -Wmissing-prototypes much cleaner.
Also added support for [FRQ 951168] but left that switched off by default.
FossilOrigin-Name: 3c862df4ab341834a0bf1d1cb26934d12ae2e837
Diffstat (limited to 'generic/tclScan.c')
-rw-r--r-- | generic/tclScan.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/generic/tclScan.c b/generic/tclScan.c index 2ff616d..47d40bd 100644 --- a/generic/tclScan.c +++ b/generic/tclScan.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclScan.c,v 1.13 2004/04/06 22:25:54 dgp Exp $ + * RCS: @(#) $Id: tclScan.c,v 1.14 2004/05/27 13:18:53 dkf Exp $ */ #include "tclInt.h" @@ -575,9 +575,9 @@ Tcl_ScanObjCmd(dummy, interp, objc, objv) int base = 0; int underflow = 0; size_t width; - long (*fn)() = NULL; + long (*fn) _ANSI_ARGS_((char*,void*,int)) = NULL; #ifndef TCL_WIDE_INT_IS_LONG - Tcl_WideInt (*lfn)() = NULL; + Tcl_WideInt (*lfn) _ANSI_ARGS_((char*,void*,int)) = NULL; Tcl_WideInt wideValue; #endif Tcl_UniChar ch, sch; @@ -727,42 +727,42 @@ Tcl_ScanObjCmd(dummy, interp, objc, objv) case 'd': op = 'i'; base = 10; - fn = (long (*)())strtol; + fn = (long (*) _ANSI_ARGS_((char*,void*,int)))strtol; #ifndef TCL_WIDE_INT_IS_LONG - lfn = (Tcl_WideInt (*)())strtoll; + lfn = (Tcl_WideInt (*)_ANSI_ARGS_((char*,void*,int)))strtoll; #endif break; case 'i': op = 'i'; base = 0; - fn = (long (*)())strtol; + fn = (long (*)_ANSI_ARGS_((char*,void*,int)))strtol; #ifndef TCL_WIDE_INT_IS_LONG - lfn = (Tcl_WideInt (*)())strtoll; + lfn = (Tcl_WideInt (*)_ANSI_ARGS_((char*,void*,int)))strtoll; #endif break; case 'o': op = 'i'; base = 8; - fn = (long (*)())strtoul; + fn = (long (*)_ANSI_ARGS_((char*,void*,int)))strtoul; #ifndef TCL_WIDE_INT_IS_LONG - lfn = (Tcl_WideInt (*)())strtoull; + lfn = (Tcl_WideInt (*)_ANSI_ARGS_((char*,void*,int)))strtoull; #endif break; case 'x': op = 'i'; base = 16; - fn = (long (*)())strtoul; + fn = (long (*)_ANSI_ARGS_((char*,void*,int)))strtoul; #ifndef TCL_WIDE_INT_IS_LONG - lfn = (Tcl_WideInt (*)())strtoull; + lfn = (Tcl_WideInt (*)_ANSI_ARGS_((char*,void*,int)))strtoull; #endif break; case 'u': op = 'i'; base = 10; flags |= SCAN_UNSIGNED; - fn = (long (*)())strtoul; + fn = (long (*)_ANSI_ARGS_((char*,void*,int)))strtoul; #ifndef TCL_WIDE_INT_IS_LONG - lfn = (Tcl_WideInt (*)())strtoull; + lfn = (Tcl_WideInt (*)_ANSI_ARGS_((char*,void*,int)))strtoull; #endif break; |