亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? history.tcl

?? genesis 2000 v9.1軟件下載
?? TCL
字號:
# history.tcl --## Implementation of the history command.## SCCS: @(#) history.tcl 1.7 97/08/07 16:45:50## Copyright (c) 1997 Sun Microsystems, Inc.## See the file "license.terms" for information on usage and redistribution# of this file, and for a DISCLAIMER OF ALL WARRANTIES.## The tcl::history array holds the history list and# some additional bookkeeping variables.## nextid	the index used for the next history list item.# keep		the max size of the history list# oldest	the index of the oldest item in the history.namespace eval tcl {    variable history    if ![info exists history] {	array set history {	    nextid	0	    keep	20	    oldest	-20	}    }}# history --##	This is the main history command.  See the man page for its interface.#	This does argument checking and calls helper procedures in the#	history namespace.proc history {args} {    set len [llength $args]    if {$len == 0} {	return [tcl::HistInfo]    }    set key [lindex $args 0]    set options "add, change, clear, event, info, keep, nextid, or redo"    switch -glob -- $key {	a* { # history add	    if {$len > 3} {		return -code error "wrong # args: should be \"history add event ?exec?\""	    }	    if {![string match $key* add]} {		return -code error "bad option \"$key\": must be $options"	    }	    if {$len == 3} {		set arg [lindex $args 2]		if {! ([string match e* $arg] && [string match $arg* exec])} {		    return -code error "bad argument \"$arg\": should be \"exec\""		}	    }	    return [tcl::HistAdd [lindex $args 1] [lindex $args 2]]	}	ch* { # history change	    if {($len > 3) || ($len < 2)} {		return -code error "wrong # args: should be \"history change newValue ?event?\""	    }	    if {![string match $key* change]} {		return -code error "bad option \"$key\": must be $options"	    }	    if {$len == 2} {		set event 0	    } else {		set event [lindex $args 2]	    }	    return [tcl::HistChange [lindex $args 1] $event]	}	cl* { # history clear	    if {($len > 1)} {		return -code error "wrong # args: should be \"history clear\""	    }	    if {![string match $key* clear]} {		return -code error "bad option \"$key\": must be $options"	    }	    return [tcl::HistClear]	}	e* { # history event	    if {$len > 2} {		return -code error "wrong # args: should be \"history event ?event?\""	    }	    if {![string match $key* event]} {		return -code error "bad option \"$key\": must be $options"	    }	    if {$len == 1} {		set event -1	    } else {		set event [lindex $args 1]	    }	    return [tcl::HistEvent $event]	}	i* { # history info	    if {$len > 2} {		return -code error "wrong # args: should be \"history info ?count?\""	    }	    if {![string match $key* info]} {		return -code error "bad option \"$key\": must be $options"	    }	    return [tcl::HistInfo [lindex $args 1]]	}	k* { # history keep	    if {$len > 2} {		return -code error "wrong # args: should be \"history keep ?count?\""	    }	    if {$len == 1} {		return [tcl::HistKeep]	    } else {		set limit [lindex $args 1]		if {[catch {expr $limit}] || ($limit < 0)} {		    return -code error "illegal keep count \"$limit\""		}		return [tcl::HistKeep $limit]	    }	}	n* { # history nextid	    if {$len > 1} {		return -code error "wrong # args: should be \"history nextid\""	    }	    if {![string match $key* nextid]} {		return -code error "bad option \"$key\": must be $options"	    }	    return [expr $tcl::history(nextid) + 1]	}	r* { # history redo	    if {$len > 2} {		return -code error "wrong # args: should be \"history redo ?event?\""	    }	    if {![string match $key* redo]} {		return -code error "bad option \"$key\": must be $options"	    }	    return [tcl::HistRedo [lindex $args 1]]	}	default {	    return -code error "bad option \"$key\": must be $options"	}    }}# tcl::HistAdd --##	Add an item to the history, and optionally eval it at the global scope## Parameters:#	command		the command to add#	exec		(optional) a substring of "exec" causes the#			command to be evaled.# Results:# 	If executing, then the results of the command are returned## Side Effects:#	Adds to the history list proc tcl::HistAdd {command {exec {}}} {    variable history    set i [incr history(nextid)]    set history($i) $command    set j [incr history(oldest)]    if {[info exists history($j)]} {unset history($j)}    if {[string match e* $exec]} {	return [uplevel #0 $command]    } else {	return {}    }}# tcl::HistKeep --##	Set or query the limit on the length of the history list## Parameters:#	limit	(optional) the length of the history list## Results:#	If no limit is specified, the current limit is returned## Side Effects:#	Updates history(keep) if a limit is specified proc tcl::HistKeep {{limit {}}} {    variable history    if {[string length $limit] == 0} {	return $history(keep)    } else {	set oldold $history(oldest)	set history(oldest) [expr $history(nextid) - $limit]	for {} {$oldold <= $history(oldest)} {incr oldold} {	    if {[info exists history($oldold)]} {unset history($oldold)}	}	set history(keep) $limit    }}# tcl::HistClear --##	Erase the history list## Parameters:#	none## Results:#	none## Side Effects:#	Resets the history array, except for the keep limit proc tcl::HistClear {} {    variable history    set keep $history(keep)    unset history    array set history [list \	nextid	0	\	keep	$keep	\	oldest	-$keep	\    ]}# tcl::HistInfo --##	Return a pretty-printed version of the history list## Parameters:#	num	(optional) the length of the history list to return## Results:#	A formatted history list proc tcl::HistInfo {{num {}}} {    variable history    if {$num == {}} {	set num [expr $history(keep) + 1]    }    set result {}    set newline ""    for {set i [expr $history(nextid) - $num + 1]} \	    {$i <= $history(nextid)} {incr i} {	if ![info exists history($i)] {	    continue	}	set cmd [string trimright $history($i) \ \n]	regsub -all \n $cmd "\n\t" cmd	append result $newline[format "%6d  %s" $i $cmd]	set newline \n    }    return $result}# tcl::HistRedo --##	Fetch the previous or specified event, execute it, and then#	replace the current history item with that event.## Parameters:#	event	(optional) index of history item to redo.  Defaults to -1,#		which means the previous event.## Results:#	Those of the command being redone.## Side Effects:#	Replaces the current history list item with the one being redone. proc tcl::HistRedo {{event -1}} {    variable history    if {[string length $event] == 0} {	set event -1    }    set i [HistIndex $event]    if {$i == $history(nextid)} {	return -code error "cannot redo the current event"    }    set cmd $history($i)    HistChange $cmd 0    uplevel #0 $cmd}# tcl::HistIndex --##	Map from an event specifier to an index in the history list.## Parameters:#	event	index of history item to redo.#		If this is a positive number, it is used directly.#		If it is a negative number, then it counts back to a previous#		event, where -1 is the most recent event.#		A string can be matched, either by being the prefix of#		a command or by matching a command with string match.## Results:#	The index into history, or an error if the index didn't match. proc tcl::HistIndex {event} {    variable history    if {[catch {expr $event}]} {	for {set i $history(nextid)} {[info exists history($i)]} {incr i -1} {	    if {[string match $event* $history($i)]} {		return $i;	    }	    if {[string match $event $history($i)]} {		return $i;	    }	}	return -code error "no event matches \"$event\""    } elseif {$event <= 0} {	set i [expr $history(nextid) + $event]    } else {	set i $event    }    if {$i <= $history(oldest)} {	return -code error "event \"$event\" is too far in the past"    }    if {$i > $history(nextid)} {	return -code error "event \"$event\" hasn't occured yet"    }    return $i}# tcl::HistEvent --##	Map from an event specifier to the value in the history list.## Parameters:#	event	index of history item to redo.  See index for a#		description of possible event patterns.## Results:#	The value from the history list. proc tcl::HistEvent {event} {    variable history    set i [HistIndex $event]    if {[info exists history($i)]} {	return [string trimright $history($i) \ \n]    } else {	return "";    }}# tcl::HistChange --##	Replace a value in the history list.## Parameters:#	cmd	The new value to put into the history list.#	event	(optional) index of history item to redo.  See index for a#		description of possible event patterns.  This defaults#		to 0, which specifies the current event.## Side Effects:#	Changes the history list. proc tcl::HistChange {cmd {event 0}} {    variable history    set i [HistIndex $event]    set history($i) $cmd}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产盗摄一区二区| 久久久亚洲高清| 欧洲一区二区三区在线| 色香蕉久久蜜桃| 91行情网站电视在线观看高清版| av中文字幕亚洲| 精品国精品国产| 日韩精品资源二区在线| 日韩情涩欧美日韩视频| 精品国产制服丝袜高跟| 久久―日本道色综合久久| 久久九九久久九九| 国产精品麻豆欧美日韩ww| 中文字幕在线不卡| 洋洋av久久久久久久一区| 亚洲精品中文在线观看| 夜夜嗨av一区二区三区 | 亚洲成a人片在线观看中文| 一区二区高清视频在线观看| 亚洲一区二区综合| 三级欧美在线一区| 精品亚洲国产成人av制服丝袜 | 国产真实乱偷精品视频免| 国产在线精品视频| 国产91精品久久久久久久网曝门| 成人中文字幕在线| 在线精品国精品国产尤物884a| 欧美日韩日本视频| 精品剧情在线观看| 国产精品久久久久永久免费观看 | 欧美激情艳妇裸体舞| 国产精品久久久久影院| 亚洲午夜久久久久久久久电影网 | 亚洲欧美自拍偷拍| 亚洲无线码一区二区三区| 日韩成人免费在线| 懂色中文一区二区在线播放| 色欧美片视频在线观看在线视频| 7777精品伊人久久久大香线蕉完整版 | 在线91免费看| 亚洲mv大片欧洲mv大片精品| 日韩电影免费一区| 成人听书哪个软件好| 欧美色偷偷大香| 国产网站一区二区三区| 亚洲乱码国产乱码精品精98午夜 | 久久精品男人天堂av| 亚洲日本免费电影| 蜜臀av一区二区| 成人国产精品免费观看| 在线播放91灌醉迷j高跟美女| 久久综合一区二区| 一区二区三区四区乱视频| 精品中文字幕一区二区小辣椒| 不卡大黄网站免费看| 日韩亚洲欧美中文三级| 亚洲日本欧美天堂| 国产剧情一区二区三区| 精品视频在线视频| 中文字幕欧美三区| 日本不卡一二三区黄网| 色综合一区二区| 久久久久国色av免费看影院| 亚洲一区二区三区爽爽爽爽爽| 懂色一区二区三区免费观看| 欧美一二三四区在线| 亚洲精品国产精华液| 国产一区视频导航| 91精品久久久久久久99蜜桃 | 国产传媒欧美日韩成人| 欧美精品一卡二卡| 亚洲人xxxx| 成人一区二区三区视频| 日韩视频永久免费| 亚洲电影你懂得| 99免费精品视频| 久久久99免费| 久久66热偷产精品| 91精品国产乱码| 亚洲国产一区二区视频| 99re66热这里只有精品3直播| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 国产成人亚洲综合色影视| 日韩一区二区免费视频| 亚洲成人av一区| 久久久影视传媒| 日韩一区欧美二区| 欧美日韩黄视频| 一区二区三区小说| 91香蕉视频污| 中文字幕佐山爱一区二区免费| 国产一区日韩二区欧美三区| 日韩精品一区二区三区四区视频 | 在线观看av不卡| 中文字幕一区不卡| 波多野结衣亚洲一区| 国产午夜久久久久| 国产精品18久久久久久久久 | 国产精品成人午夜| 成人午夜免费电影| 中文子幕无线码一区tr| 国产成人亚洲综合a∨婷婷| 欧美xxx久久| 久久不见久久见免费视频7 | 青青草精品视频| 欧美丰满少妇xxxxx高潮对白| 亚洲成人免费在线观看| 欧美日韩视频在线观看一区二区三区 | 午夜影院在线观看欧美| 欧美日韩美少妇| 日韩黄色一级片| 日韩精品一区二区三区中文精品| 欧美aaaaa成人免费观看视频| 欧美精品在线观看一区二区| 日韩av电影一区| 日韩一区二区不卡| 国产在线精品不卡| 国产性色一区二区| 成人国产电影网| 亚洲欧美日韩一区二区| 欧美色涩在线第一页| 日韩和的一区二区| 精品免费一区二区三区| 国产成人av电影免费在线观看| 亚洲国产精品黑人久久久| 99国产麻豆精品| 亚洲国产精品一区二区www| 亚洲精品自拍动漫在线| 欧洲生活片亚洲生活在线观看| 午夜精品福利一区二区蜜股av| 欧美一区二区三区成人| 国产一区二区在线免费观看| 国产日韩欧美一区二区三区乱码| 成av人片一区二区| 亚洲一区二区影院| 精品va天堂亚洲国产| 成人精品亚洲人成在线| 一区二区三区在线免费播放| 欧美日韩国产综合一区二区| 麻豆一区二区三区| 国产欧美一区二区精品性| 在线看不卡av| 美国十次综合导航| 中文字幕在线观看一区| 欧美日韩国产一级片| 国产精品一区二区果冻传媒| 亚洲靠逼com| 欧美xxxxx裸体时装秀| 99久久精品一区| 日韩精品一级中文字幕精品视频免费观看| 亚洲精品一线二线三线| 色偷偷久久一区二区三区| 久久成人免费电影| 亚洲国产一区二区a毛片| 精品粉嫩超白一线天av| 欧美在线免费播放| 国产精品456露脸| 天天色综合天天| 成人欧美一区二区三区小说| 欧美一级艳片视频免费观看| gogo大胆日本视频一区| 精品在线播放免费| 亚洲国产精品久久人人爱| 久久精品欧美日韩精品 | 亚洲自拍偷拍综合| 久久久99精品久久| 欧美一区二区三区啪啪| 91蝌蚪国产九色| 国产精品综合av一区二区国产馆| 亚洲五码中文字幕| 国产精品乱码一区二区三区软件| 日韩一级在线观看| 91精品福利视频| 丁香亚洲综合激情啪啪综合| 麻豆中文一区二区| 亚洲一区二区三区四区在线 | 一区二区三区中文字幕| 国产亚洲欧美一级| 欧美一区三区二区| 欧美专区亚洲专区| av电影天堂一区二区在线| 国产经典欧美精品| 欧美性猛交xxxxxxxx| 国产成a人无v码亚洲福利| 麻豆精品视频在线观看视频| 亚洲一二三四在线观看| 亚洲视频在线观看一区| 国产欧美一区二区精品仙草咪| 精品免费一区二区三区| 欧美一区二区在线视频| 欧美日韩一区二区欧美激情| 一本大道综合伊人精品热热| 国产91丝袜在线播放九色| 国产精品一区二区果冻传媒| 老司机一区二区| 久久精品国产久精国产| 日本不卡不码高清免费观看| 日韩精品一二三四| 日韩影视精彩在线| 免费精品视频在线|