case kUnknownOption_Err: Tcl_SetResult(interp, "unknown option was passed to command", TCL_STATIC); theResult = TCL_ERROR; break;
SetResultFromErrorCode(Tcl_Interp* interp, int inErrorCode){	int theResult;	switch(inErrorCode)	{		case kSignatureMismatch_Err:			Tcl_SetResult(interp, "filemap database signature is incorrect", TCL_STATIC);			theResult = TCL_ERROR;			break;		case kUnknownVersion_Err:			Tcl_SetResult(interp, "filemap database version is unknown", TCL_STATIC);			theResult = TCL_ERROR;			break;			case kKeyNotFound_Err:			Tcl_SetResult(interp, "key could not be found in filemap database", TCL_STATIC);			theResult = TCL_ERROR;			break;		case kUnknownNodeKind_Err:			Tcl_SetResult(				interp,				"unknown node kind in database (database is corrupted?)",				TCL_STATIC);			theResult = TCL_ERROR;			break;		case kNameTooLong_Err:			Tcl_SetResult(				interp,				"key subpart or value string too long (the maximum length is NAME_MAX)",				TCL_STATIC);			theResult = TCL_ERROR;			break;		case kEOFWhileLoadingDB_Err:			Tcl_SetResult(				interp,				"unexpected EOF while loading database (database is corrupted?)",				TCL_STATIC);			theResult = TCL_ERROR;			break;		case 0:			Tcl_SetResult(interp, "", TCL_STATIC);			theResult = TCL_OK;			break;				default:			Tcl_SetResult(interp, strerror(inErrorCode), TCL_VOLATILE);			theResult = TCL_ERROR;	}		return theResult;}