Name | Modified | Size | Downloads / Week |
---|---|---|---|
test_files | 2015-01-07 | ||
CodeCounter.zip | 2015-11-15 | 62.9 kB | |
ReadMe.md | 2015-07-04 | 1.6 kB | |
Totals: 3 Items | 64.5 kB | 6 |
CodeCounter
Recursive source code line counter.
For C, BASIC, and general web files.
CodeCounter v1.1, Windows and Linux
::
OPERATION
Run the codecounter executable from the command-line to count comments and code in source files in C, BASIC, and general web files.
The program will search for files of the specified type in the current directory and any sub-directories present.
USAGE
codecounter -b | -c | -w
-c process C source files: .c, .cpp, .h
-b process BASIC source files: .bas, .bi, .vb
-w process general web files: .html, .htm, .css, .php, .inc, .tpl, .js, .sql
AVAILABILITY
On both Windows and Linux, it's more convenient for CodeCounter to be available from any directory location via the PATH system variable (rather than copying the executable file to the directory where needed).
Windows
(Windows key + Break) > Advanced tab > Environmental Variables button > click Path line > Edit button > Variable value - append at the end of existing line info: C:\directory paths to codecounter.exe\;
Linux
Move the CodeCounter executable file to a location such as /usr/local/bin
(location must be present in $PATH)
LICENSE
GNU General Public License version 3.0 (GPL v3)
LANGUAGE
CodeCounter is coded in FreeBASIC v.1.03.0, emitted as C, and compiled with GCC v.4.6.3 / v.4.9.2 (Linux / Windows).
CREDIT
Thanks to Richard D. Clark (rdc) for his elegant directory recursion function.