/* $Id: tixError.c,v 1.1.1.1 2000/05/17 11:08:41 idiscovery Exp $ */ /* * tixError.c -- * * Implements error handlers for Tix. * * Copyright (c) 1996, Expert Interface Technologies * * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * */ #include "tixPort.h" #include "tixInt.h" int Tix_ArgcError(interp, argc, argv, prefixCount, message) Tcl_Interp * interp; int argc; char ** argv; int prefixCount; char * message; { int i; Tcl_AppendResult(interp, "wrong # of arguments, should be \"",(char*)NULL); for (i=0; inMethods-1; i++) { Tcl_AppendResult(interp, lead, cPtr->methods[i], (char*)NULL); lead = ", "; } if (cPtr->nMethods>1) { Tcl_AppendResult(interp, " or ", (char*)NULL); } if (cPtr->nMethods>0) { Tcl_AppendResult(interp, cPtr->methods[i], (char*)NULL); } return TCL_ERROR; } #endif