Skip to content

halcompile: man page array ranges end at size-1 (#4714) - #4729

Open
tzuohann wants to merge 1 commit into
LinuxCNC:masterfrom
tzuohann:halcompile-doc-range-4714
Open

tzuohann wants to merge 1 commit into
LinuxCNC:masterfrom
tzuohann:halcompile-doc-range-4714

Conversation

@tzuohann

Copy link
Copy Markdown
Contributor

Fixes #4714.

Pin and param arrays sized by personality were documented one too long (MM=00..personality). BsAtHome's one-liner from #4714, applied to pins and params, prints (size)-1:

  • demux: MM=00..(personality)-1
  • logic: MM=00..(personality & 0xff)-1

A pin or param declared [32:personality] runs 00..personality-1, but the
man page printed MM=00..personality. Print the bound as (size)-1, with the
size in parentheses so expressions such as personality & 0xff (logic)
read correctly. One-liner from BsAtHome in LinuxCNC#4714, applied to pins and params.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[minor] hacompile doc, periodic off by one on pin ranges

2 participants