Lines Matching refs:mode
59 int* mode));
127 o->mode = TRF_UNKNOWN_MODE;
226 * TRF_ATTACH: -mode required
229 * access mode of attached channel. If a channel
235 if ((o->mode != TRF_UNKNOWN_MODE) ||
246 if (o->mode == TRF_UNKNOWN_MODE) {
247 Tcl_AppendResult (interp, "attach: -mode not defined", (char*) NULL);
251 } else if (o->mode == TRF_ABSORB_HASH) {
259 } else if ((o->mode == TRF_WRITE_HASH) || (o->mode == TRF_TRANSPARENT)) {
273 int mode;
274 o->rdChannel = Tcl_GetChannel (interp, (char*) o->readDestination, &mode);
279 } else if (! (mode & TCL_WRITABLE)) {
296 int mode;
298 o->wdChannel = Tcl_GetChannel (interp, (char*) o->writeDestination, &mode);
303 } else if (! (mode & TCL_WRITABLE)) {
313 Tcl_Panic ("unknown mode given to dig_opt.c::CheckOptions");
356 * -mode absorb|write|transparent
374 if (0 == strncmp (optname, "-mode", len)) {
375 return DigestMode (interp, value, &o->mode);
433 Tcl_AppendResult (interp, "unknown option '", optname, "', should be '-mode', '-matchflag', '-write-destination', '-write-type', '-read-destination' or '-read-type'", (char*) NULL);
531 * Determines the operation mode of the digest.
540 * success 'mode' is set too.
546 DigestMode (interp, modeString, mode)
549 int* mode;
556 *mode = TRF_ABSORB_HASH;
563 *mode = TRF_WRITE_HASH;
570 *mode = TRF_TRANSPARENT;
577 Tcl_AppendResult (interp, "unknown mode '", modeString, "', should be 'absorb', 'write' or 'transparent'", (char*) NULL);