https://github.com/sirwumpus/iocccsize
IOCCC Source Size Tool (original author)
https://github.com/sirwumpus/iocccsize
c ioccc rules
Last synced: 23 days ago
JSON representation
IOCCC Source Size Tool (original author)
- Host: GitHub
- URL: https://github.com/sirwumpus/iocccsize
- Owner: SirWumpus
- License: unlicense
- Created: 2021-01-06T13:24:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-13T10:58:26.000Z (10 months ago)
- Last Synced: 2025-04-28T11:23:16.314Z (23 days ago)
- Topics: c, ioccc, rules
- Language: C
- Homepage: https://www.ioccc.org/
- Size: 114 KB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
iocccsize
=========The original IOCCC source code rule size checking tool.
```
usage: iocccsize [-ihV][-v level] prog.c
iocccsize [-ihV][-v level] < prog.c-i ignored for backward compatibility
-h print usage message in stderr and exit
-v level turn on some debugging to stderr
-V print version and exitThe IOCCC net count rule 2b is written to stdout; with -v1, net count (2b),
gross count (2a), number of keywords counted as 1 byte. With -v2 or -v3
write source to stdout and tool diagnostics to stderr.Exit Codes
0 source code passes rules 2a and 2b.
1 source code fails rule 2a and/or 2b.
2 usage -h
3 version -V
4 command line argument error
5+ some other internal error
```History
-------Following my [IOCCC 1991 Best Utility](https://github.com/SirWumpus/ioccc-ae) win I needed something to help with applying the IOCCC Rule 2 Size Limit during the development of my [1992](https://github.com/SirWumpus/ioccc-am) and [1993](https://github.com/SirWumpus/ioccc-am) submissions (combined with some `sed(1)` transformations). The tool kept being refined over the years as I kepted submitted entries to the IOCCC.
Sometime around 2012 or 2013 I was in contact with one of the IOCCC judges, [Landon Court Noll](https://github.com/lcn2), proposing Rule 2 Size Limit changes and mentioned I had this tool I used to help prepare my entries. Landon perked up to the idea of including the tool as part of the contest to help contestants (and judges) apply the Rule 2 Size Limit. The `iocccsize` tool first appeared in IOCCC 2014.
The IOCCC has now moved to retool its submission process by integrating a version of this tool into [mkiocccentry](https://github.com/ioccc-src/mkiocccentry) with changes made to turn the core into a library function `rule_count()`.