summaryrefslogtreecommitdiffstats
path: root/tcllib/modules/crc/sum.pcx
blob: 1168d685fa9c65361a9367335f4d4e4f69595eb5 (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
# -*- tcl -*- sum.pcx
# Syntax of the commands provided by package sum.

# 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 sum
pcx::tcldep   1.1.0 needs tcl 8.2

namespace eval ::sum {}

#pcx::message FOO {... text ...} type
#pcx::scan <VERSION> <NAME> <RULE>

pcx::check 1.1.0 std ::crc::sum \
    {checkConstrained {checkSimpleArgs 1 -1 {
	{checkSwitches 1 {
	    -bsd
	    -sysv
	    {-channel  {checkSetConstraint fn checkChannelID}}
	    {-chunksize checkInt}
	    {-filename {checkSetConstraint fn checkFileName}}
	    {-format    checkWord}
	    {-timeout   checkWholeNum}
	    --
	} {checkConstraint {
	    {fn  {checkSimpleArgs 0 0 {}}}
	    {!fn {checkSimpleArgs 1 1 checkWord}}
	} {}}}
    }}}

# Initialization via pcx::init.
# Use a ::sum::init procedure for non-standard initialization.
pcx::complete