# -*- tcl -*- crc16.pcx
# Syntax of the commands provided by package crc16.

# 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 crc16
pcx::tcldep   1.1.1 needs tcl 8.2

namespace eval ::crc16 {}

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

pcx::check 1.1.1 std ::crc::crc \
    {checkConstrained {checkSimpleArgs 1 -1 {
	{checkSwitches 1 {
	    {-channel  {checkSetConstraint fn checkChannelID}}
	    {-chunksize checkInt}
	    {-filename {checkSetConstraint fn checkFileName}}
	    {-format    checkWord}
	    {-impl      checkProcName}
	    {-seed      checkWord}
	    --
	} {checkConstraint {
	    {fn  {checkSimpleArgs 0 0 {}}}
	    {!fn {checkSimpleArgs 1 1 checkWord}}
	} {}}}
    }}}
pcx::check 1.1.1 std ::crc::crc-32 \
    {checkConstrained {checkSimpleArgs 1 -1 {
	{checkSwitches 1 {
	    {-channel  {checkSetConstraint fn checkChannelID}}
	    {-chunksize checkInt}
	    {-filename {checkSetConstraint fn checkFileName}}
	    {-format    checkWord}
	    {-seed      checkWord}
	    --
	} {checkConstraint {
	    {fn  {checkSimpleArgs 0 0 {}}}
	    {!fn {checkSimpleArgs 1 1 checkWord}}
	} {}}}
    }}}
pcx::check 1.1.1 std ::crc::crc-ccitt \
    {checkConstrained {checkSimpleArgs 1 -1 {
	{checkSwitches 1 {
	    {-channel  {checkSetConstraint fn checkChannelID}}
	    {-chunksize checkInt}
	    {-filename {checkSetConstraint fn checkFileName}}
	    {-format    checkWord}
	    {-seed      checkWord}
	    --
	} {checkConstraint {
	    {fn  {checkSimpleArgs 0 0 {}}}
	    {!fn {checkSimpleArgs 1 1 checkWord}}
	} {}}}
    }}}
pcx::check 1.1.1 std ::crc::crc16 \
    {checkConstrained {checkSimpleArgs 1 -1 {
	{checkSwitches 1 {
	    {-channel  {checkSetConstraint fn checkChannelID}}
	    {-chunksize checkInt}
	    {-filename {checkSetConstraint fn checkFileName}}
	    {-format    checkWord}
	    {-seed      checkWord}
	    --
	} {checkConstraint {
	    {fn  {checkSimpleArgs 0 0 {}}}
	    {!fn {checkSimpleArgs 1 1 checkWord}}
	} {}}}
    }}}
pcx::check 1.1.1 std ::crc::xmodem \
    {checkConstrained {checkSimpleArgs 1 -1 {
	{checkSwitches 1 {
	    {-channel  {checkSetConstraint fn checkChannelID}}
	    {-chunksize checkInt}
	    {-filename {checkSetConstraint fn checkFileName}}
	    {-format    checkWord}
	    {-seed      checkWord}
	    --
	} {checkConstraint {
	    {fn  {checkSimpleArgs 0 0 {}}}
	    {!fn {checkSimpleArgs 1 1 checkWord}}
	} {}}}
    }}}

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