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

dev/misc/lc2.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Port of lc2 C/C++ source line counter
Author:Brian Marick / Ray Rizzuto
Uploader:metaljoe metaljoe plus com (John Chandler)
Type:dev/misc
Architecture:ppc-amigaos >= 4.0.0
Date:2005-08-06
Download:http://aminet.net/dev/misc/lc2.lha - View contents
Readme:http://aminet.net/dev/misc/lc2.readme
Downloads:872

This is a five minute port of the lc2 C/C++ source code line counter
to AmigaOS 4.0. The only change is the addition of a modified Makefile
for compilation of the source with GCC and the AmigaOS 4.0 SDK.

A pre-compiled binary for AmigaOS 4 is provided along with the original,
unmodified C source code and UNIX Makefile. It should be trivial to
recompile the source on other AmigaOS and compatible operating systems.

lc was created by Brian Marick.
lc2 was developed by Ray Rizzuto from the lc source code

The code used for the OS4 port was obtained from the public domain.
As such, all the source, binaries, makefiles and readmes provided in
this archive are also placed in the public domain - may they be of use
and/or interest to you!


Usage:

lc [-{] [-}] [-number] [file]

lc counts the number of lines of code, lines of comment, and blank lines
in a C or C++ program.  The output looks like this:

% lc lc.c
      Pure   Pure    Both    Total   Total   Total
      Code   Comment Cod&Com Blank   Code    Comment  Lines  Pages

lc.c  311    437     62      117     373     499      927    28


"Pure Code" means lines of code with no comments, "Pure Comment" means
lines with only comments; "Both Cod&Com" means lines containing both.
"Blank" lines contain neither code nor comments.

If no file arguments are given, input is taken from standard input.

OPTIONS

-{ or -}
These options instruct lc to count lines containing only brackets as
blank lines.

-number
The number argument tells lc how many lines fit on a page.
(Default is 56 or the equivalent of specifying argument -56)





Contents of dev/misc/lc2.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 1298    1655  78.4% -lh5- f7bc Aug  3 13:33 lc2.info
[generic]                 2065    6372  32.4% -lh5- 5940 Jul 16  2004 lc2/get.c
[generic]                29301   73872  39.7% -lh5- 8a1e Aug  3 12:36 lc2/lc
[generic]                  518     961  53.9% -lh5- a6e9 Jul 19  2004 lc2/lc.1
[generic]                  518     966  53.6% -lh5- f85f Jul 19  2004 lc2/lc.1t
[generic]                 4101   13706  29.9% -lh5- 7266 Jul 16  2004 lc2/lc.c
[generic]                 1332    4470  29.8% -lh5- 47fd Jul 16  2004 lc2/lc.h
[generic]                  276     565  48.8% -lh5- a1f5 Jul 16  2004 lc2/Makefile
[generic]                  187     300  62.3% -lh5- 76ea Aug  3 12:36 lc2/Makefile.AmigaOS
[generic]                  894    1742  51.3% -lh5- 27d2 Aug  4 14:26 lc2/Readme.AmigaOS
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        10 files   40490  104609  38.7%            Aug  6 00:24

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