*--------------------------------------------------------------
*/
-static int
-ExprParseString(interp, string, valuePtr)
- Tcl_Interp *interp; /* Where to store error message. */
- char *string; /* String to turn into value. */
- Value *valuePtr; /* Where to store value information.
+static int
+ExprParseString (
+ Tcl_Interp *interp, /* Where to store error message. */
+ char *string, /* String to turn into value. */
+ Value *valuePtr /* Where to store value information.
* Caller must have initialized pv field. */
+)
{
register char c;
*----------------------------------------------------------------------
*/
-static int
-ExprLex(interp, infoPtr, valuePtr)
- Tcl_Interp *interp; /* Interpreter to use for error
+static int
+ExprLex (
+ Tcl_Interp *interp, /* Interpreter to use for error
* reporting. */
- register ExprInfo *infoPtr; /* Describes the state of the parse. */
- register Value *valuePtr; /* Where to store value, if that is
+ register ExprInfo *infoPtr, /* Describes the state of the parse. */
+ register Value *valuePtr /* Where to store value, if that is
* what's parsed from string. Caller
* must have initialized pv field
* correctly. */
+)
{
register char *p, c;
char *var, *term;
*----------------------------------------------------------------------
*/
-static int
-ExprGetValue(interp, infoPtr, prec, valuePtr)
- Tcl_Interp *interp; /* Interpreter to use for error
+static int
+ExprGetValue (
+ Tcl_Interp *interp, /* Interpreter to use for error
* reporting. */
- register ExprInfo *infoPtr; /* Describes the state of the parse
+ register ExprInfo *infoPtr, /* Describes the state of the parse
* just before the value (i.e. ExprLex
* will be called to get first token
* of value). */
- int prec; /* Treat any un-parenthesized operator
+ int prec, /* Treat any un-parenthesized operator
* with precedence <= this as the end
* of the expression. */
- Value *valuePtr; /* Where to store the value of the
+ Value *valuePtr /* Where to store the value of the
* expression. Caller must have
* initialized pv field. */
+)
{
Interp *iPtr = (Interp *) interp;
Value value2; /* Second operand for current
*--------------------------------------------------------------
*/
-static void
-ExprMakeString(valuePtr)
- register Value *valuePtr; /* Value to be converted. */
+static void
+ExprMakeString (
+ register Value *valuePtr /* Value to be converted. */
+)
{
int shortfall;
*--------------------------------------------------------------
*/
-static int
-ExprTopLevel(interp, string, valuePtr)
- Tcl_Interp *interp; /* Context in which to evaluate the
+static int
+ExprTopLevel (
+ Tcl_Interp *interp, /* Context in which to evaluate the
* expression. */
- char *string; /* Expression to evaluate. */
- Value *valuePtr; /* Where to store result. Should
+ char *string, /* Expression to evaluate. */
+ Value *valuePtr /* Where to store result. Should
* not be initialized by caller. */
+)
{
ExprInfo info;
int result;
*--------------------------------------------------------------
*/
-int
-Tcl_ExprLong(interp, string, ptr)
- Tcl_Interp *interp; /* Context in which to evaluate the
+int
+Tcl_ExprLong (
+ Tcl_Interp *interp, /* Context in which to evaluate the
* expression. */
- char *string; /* Expression to evaluate. */
- long *ptr; /* Where to store result. */
+ char *string, /* Expression to evaluate. */
+ long *ptr /* Where to store result. */
+)
{
Value value;
int result;
return result;
}
-int
-Tcl_ExprDouble(interp, string, ptr)
- Tcl_Interp *interp; /* Context in which to evaluate the
+int
+Tcl_ExprDouble (
+ Tcl_Interp *interp, /* Context in which to evaluate the
* expression. */
- char *string; /* Expression to evaluate. */
- double *ptr; /* Where to store result. */
+ char *string, /* Expression to evaluate. */
+ double *ptr /* Where to store result. */
+)
{
Value value;
int result;
return result;
}
-int
-Tcl_ExprBoolean(interp, string, ptr)
- Tcl_Interp *interp; /* Context in which to evaluate the
+int
+Tcl_ExprBoolean (
+ Tcl_Interp *interp, /* Context in which to evaluate the
* expression. */
- char *string; /* Expression to evaluate. */
- int *ptr; /* Where to store 0/1 result. */
+ char *string, /* Expression to evaluate. */
+ int *ptr /* Where to store 0/1 result. */
+)
{
Value value;
int result;
*--------------------------------------------------------------
*/
-int
-Tcl_ExprString(interp, string)
- Tcl_Interp *interp; /* Context in which to evaluate the
+int
+Tcl_ExprString (
+ Tcl_Interp *interp, /* Context in which to evaluate the
* expression. */
- char *string; /* Expression to evaluate. */
+ char *string /* Expression to evaluate. */
+)
{
Value value;
int result;