blob: 99792233fe4419dc1a75bada83c619747b72cee1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
# -*- tcl -*- log.pcx
# Syntax of the commands provided by package log.
# For use by TclDevKit's static syntax checker.
# See http://www.activestate.com/solutions/tcl/
# See http://aspn.activestate.com/ASPN/docs/Tcl_Dev_Kit/4.0/Checker.html#pcx_api
# for the documentation describing the format of the code contained in this file
#
package require pcx
pcx::register log
pcx::tcldep 1.2 needs tcl 8.2
namespace eval ::log {}
#pcx::message FOO {... text ...} type
#pcx::scan <VERSION> <NAME> <RULE>
pcx::check 1.2 std ::log::levels \
{checkSimpleArgs 0 0 {}}
pcx::check 1.2 std ::log::log \
{checkSimpleArgs 2 2 {
log::checkLogLevel
checkWord
}}
pcx::check 1.2 std ::log::logError \
{checkSimpleArgs 1 1 {
checkWord
}}
pcx::check 1.2 std ::log::logMsg \
{checkSimpleArgs 1 1 {
checkWord
}}
pcx::check 1.2 std ::log::logarray \
{checkSimpleArgs 2 3 {
log::checkLogLevel
checkVarNameRdAll
checkWord
}}
pcx::check 1.2 std ::log::loghex \
{checkSimpleArgs 3 3 {
log::checkLogLevel
checkWord
checkWord
}}
pcx::check 1.2 std ::log::lv2channel \
{checkSimpleArgs 1 1 {
log::checkLogLevel
}}
pcx::check 1.2 std ::log::lv2cmd \
{checkSimpleArgs 1 1 {
log::checkLogLevel
}}
pcx::check 1.2 std ::log::lv2color \
{checkSimpleArgs 1 1 {
log::checkLogLevel
}}
pcx::check 1.2 std ::log::lv2longform \
{checkSimpleArgs 1 1 {
log::checkLogLevel
}}
pcx::check 1.2 std ::log::lv2priority \
{checkSimpleArgs 1 1 {
log::checkLogLevel
}}
pcx::check 1.2 std ::log::lvChannel \
{checkSimpleArgs 2 2 {
log::checkLogLevel
checkChannelID
}}
pcx::check 1.2 std ::log::lvChannelForall \
{checkSimpleArgs 1 1 {
checkChannelID
}}
pcx::check 1.2 std ::log::lvCmd \
{checkSimpleArgs 2 2 {
log::checkLogLevel
checkList
}}
pcx::check 1.2 std ::log::lvCmdForall \
{checkSimpleArgs 1 1 {
checkList
}}
pcx::check 1.2 std ::log::lvColor \
{checkSimpleArgs 2 2 {
log::checkLogLevel
checkWord
}}
pcx::check 1.2 std ::log::lvColorForall \
{checkSimpleArgs 1 1 {
checkWord
}}
pcx::check 1.2 std ::log::lvCompare \
{checkSimpleArgs 2 2 {
log::checkLogLevel
log::checkLogLevel
}}
pcx::check 1.2 std ::log::lvIsSuppressed \
{checkSimpleArgs 1 1 {
log::checkLogLevel
}}
pcx::check 1.2 std ::log::lvSuppress \
{checkSimpleArgs 1 2 {
log::checkLogLevel
checkBoolean
}}
pcx::check 1.2 std ::log::lvSuppressLE \
{checkSimpleArgs 1 2 {
log::checkLogLevel
checkBoolean
}}
# Initialization via pcx::init.
# Use a ::log::init procedure for non-standard initialization.
proc log::checkLogLevel {t i} {
return [checkKeyword 0 \
{emergency alert critical error warning notice info debug} \
$t $i]
}
pcx::complete
|