X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/blobdiff_plain/f1d92a2564f181cebcabbd0f8c04fe8966bc17ff..HEAD:/src/tcl/tclget.c?ds=inline diff --git a/src/tcl/tclget.c b/src/tcl/tclget.c index 175f406..480b072 100644 --- a/src/tcl/tclget.c +++ b/src/tcl/tclget.c @@ -40,12 +40,13 @@ static char rcsid[] = "$Header: /user6/ouster/tcl/RCS/tclGet.c,v 1.11 92/02/29 1 *---------------------------------------------------------------------- */ -int -Tcl_GetInt(interp, string, intPtr) - Tcl_Interp *interp; /* Interpreter to use for error reporting. */ - char *string; /* String containing a (possibly signed) +int +Tcl_GetInt ( + Tcl_Interp *interp, /* Interpreter to use for error reporting. */ + char *string, /* String containing a (possibly signed) * integer in a form acceptable to strtol. */ - int *intPtr; /* Place to store converted result. */ + int *intPtr /* Place to store converted result. */ +) { char *end; int i; @@ -83,12 +84,13 @@ Tcl_GetInt(interp, string, intPtr) *---------------------------------------------------------------------- */ -int -Tcl_GetDouble(interp, string, doublePtr) - Tcl_Interp *interp; /* Interpreter to use for error reporting. */ - char *string; /* String containing a floating-point number +int +Tcl_GetDouble ( + Tcl_Interp *interp, /* Interpreter to use for error reporting. */ + char *string, /* String containing a floating-point number * in a form acceptable to strtod. */ - double *doublePtr; /* Place to store converted result. */ + double *doublePtr /* Place to store converted result. */ +) { char *end; double d; @@ -126,14 +128,15 @@ Tcl_GetDouble(interp, string, doublePtr) *---------------------------------------------------------------------- */ -int -Tcl_GetBoolean(interp, string, boolPtr) - Tcl_Interp *interp; /* Interpreter to use for error reporting. */ - char *string; /* String containing a boolean number +int +Tcl_GetBoolean ( + Tcl_Interp *interp, /* Interpreter to use for error reporting. */ + char *string, /* String containing a boolean number * specified either as 1/0 or true/false or * yes/no. */ - int *boolPtr; /* Place to store converted result, which + int *boolPtr /* Place to store converted result, which * will be 0 or 1. */ +) { char c; char lowerCase[10];