AminetAminet
Search:
84476 packages online
About
Recent
Browse
Search
Upload
Setup
Services

dev/misc/loccounter.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Simple SLOC counter for C/C++
Author:ssolie at telus.net (Steven Solie)
Uploader:ssolie telus net (Steven Solie)
Type:dev/misc
Version:3.4
Architecture:ppc-amigaos
Date:2005-08-01
Download:http://aminet.net/dev/misc/loccounter.lha - View contents
Readme:http://aminet.net/dev/misc/loccounter.readme
Downloads:884

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


Contents of dev/misc/loccounter.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                72881  175444  41.5% -lh5- f589 Jul 26 18:24 loccounter/loc
[generic]                  650    1164  55.8% -lh5- 98f0 Jul 26 18:22 loccounter/LOCCounter.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         2 files   73531  176608  41.6%            Aug  1 00:06

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>