![]() | Logo by Alkaron (anonymous IP: 216.73.216.105,2523) | |||||||||||||
| ||||||||||||||
Audio (352) Datatype (51) Demo (214) Development (629) Document (24) Driver (103) Emulation (156) Game (1065) Graphics (519) Library (123) Network (243) Office (73) Utility (962) Video (75) Total files: 4589 Full index file Recent index file
Amigans.net Aminet IntuitionBase Hyperion Entertainment A-Eon Amiga Future
Support the site
|
This is a simple source lines of code (SLOC) counter for C and C++.
It counts only lines of source code and skips all comments and white
space. The counter is also capable of counting rcsdiff/diff files
and will output the total added and deleted LOC.
loc FILE/M/A,TOTAL/S,DIFF=DIFFERENCE/S,QUICK/S
FILE - one or more source files or patterns
TOTAL - display only the final totals
DIFF - count a difference file output from rcsdiff/diff
QUICK - output only the total to stdout useful for scripting
History:
3.4 - Now uses buffered I/O exclusively
- Fixed exception catching
- Removed const_casts thanks to new dos.library headers
- Compiled with latest SDK
3.2 - Fixed difference counting blank lines
- Fixed broken LOC counting of // lines
3.1 - Fixed long standing bug in eatWhite()
- Disabled sync_with_stdio() due to GCC 3.4.1 bug
- Changed line buffer into a vector
- Replaced a few explicit loops with algorithms
3.0 - Initial OS4 release
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright © 2004-2026 by Björn Hagström All Rights Reserved |