aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-02-22 13:43:41 +0100
committerMattias Andrée <m@maandree.se>2026-02-22 13:43:41 +0100
commit2194438fc14bb3f595209b55fb16d74fbf4637b1 (patch)
tree82916c9da6cc5bdfdcfd16e6c1a402b85342f348
parentUpdate e-mail (diff)
downloadloc-2194438fc14bb3f595209b55fb16d74fbf4637b1.tar.gz
loc-2194438fc14bb3f595209b55fb16d74fbf4637b1.tar.bz2
loc-2194438fc14bb3f595209b55fb16d74fbf4637b1.tar.xz
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--README6
-rw-r--r--config.mk4
-rw-r--r--loc.18
3 files changed, 9 insertions, 9 deletions
diff --git a/README b/README
index 5ac0881..a645897 100644
--- a/README
+++ b/README
@@ -11,12 +11,12 @@ DESCRIPTION
standard input is read.
If more than one file is specified, each successfully
- line counted file will have its of lines of code output on
- the format
+ processed file will have its line count output in the
+ format
"%s:%*s%zu\n", <file>, <some positive integer>, "", <#lines of code>
- The total for all processed files, is printed on the last
+ The total for all processed files is printed on the last
line with the format
"%zu\n", <#total lines of code>
diff --git a/config.mk b/config.mk
index aa81003..bc78e3e 100644
--- a/config.mk
+++ b/config.mk
@@ -1,8 +1,8 @@
PREFIX = /usr
MANPREFIX = $(PREFIX)/share/man
-CC = cc
+CC = c99
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700
-CFLAGS = -std=c99 -Wall -O2
+CFLAGS =
LDFLAGS = -s
diff --git a/loc.1 b/loc.1
index efbfd2e..af23da4 100644
--- a/loc.1
+++ b/loc.1
@@ -1,4 +1,4 @@
-.TH LOC 1 "loc"
+.TH LOC 1 LOC
.SH NAME
loc - count number of lines of code
.SH SYNOPSIS
@@ -17,14 +17,14 @@ or if a file is not specified, the standard input is read.
.PP
If more than one
.I file
-is specified, each successfully line counted file will have
-its of lines of code output on the format
+is specified, each successfully processed file will have its
+line count output in the format
.nf
\fB"%s:%*s%zu\n"\fP, <\fIfile\fP>, <\fIsome positive integer\fP>, \fB""\fP, <\fI#lines of code\fP>
.fi
.PP
-The total for all processed files, is printed on the last
+The total for all processed files is printed on the last
line with the format
.nf