aboutsummaryrefslogtreecommitdiffstats
path: root/man3const
diff options
authorAlejandro Colomar <alx@kernel.org>2023-10-31 01:28:55 +0100
committerAlejandro Colomar <alx@kernel.org>2023-10-31 01:37:57 +0100
commitc6d039a3a6edcffa325c584d9942fc64560c32e1 (patch)
treefe4ac58f924a952635fa4018af95db9d8f64ec62 /man3const
parent019aad50584289476a9f206adf074326e106713d (diff)
downloadman-pages-c6d039a3a6edcffa325c584d9942fc64560c32e1.tar.gz
man*/: srcfix (Use .P instead of .PP or .LP)
We're trying to "standardize" on a paragraphing macro from the three equivalent ones (P, PP, LP). We (somewhat arbitrarily) agreed on P. Scripted change: $ find man* -type f | xargs sed -i '/\.PP/s/PP/P/' $ find man* -type f | xargs sed -i '/\.LP/s/LP/P/' Suggested-by: "G. Branden Robinson" <branden@debian.org> Cc: Ingo Schwarze <schwarze@openbsd.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man3const')
-rw-r--r--man3const/EOF.3const4
-rw-r--r--man3const/EXIT_SUCCESS.3const2
-rw-r--r--man3const/NULL.3const10
3 files changed, 8 insertions, 8 deletions
diff --git a/man3const/EOF.3const b/man3const/EOF.3const
index 3f1146ea8a..f41d1d15a7 100644
--- a/man3const/EOF.3const
+++ b/man3const/EOF.3const
@@ -12,7 +12,7 @@ Standard C library
.SH SYNOPSIS
.nf
.B #include <stdio.h>
-.PP
+.P
.BR "#define EOF " "/* ... */"
.fi
.SH DESCRIPTION
@@ -20,7 +20,7 @@ Standard C library
represents the end of an input file, or an error indication.
It is a negative value, of type
.IR int .
-.PP
+.P
.B EOF
is not a character
(it can't be represented by
diff --git a/man3const/EXIT_SUCCESS.3const b/man3const/EXIT_SUCCESS.3const
index 067e0b6895..260915eb8d 100644
--- a/man3const/EXIT_SUCCESS.3const
+++ b/man3const/EXIT_SUCCESS.3const
@@ -12,7 +12,7 @@ Standard C library
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.PP
+.P
.BR "#define EXIT_SUCCESS " 0
.BR "#define EXIT_FAILURE " "/* nonzero */"
.fi
diff --git a/man3const/NULL.3const b/man3const/NULL.3const
index 3b10bd5edf..e395628a92 100644
--- a/man3const/NULL.3const
+++ b/man3const/NULL.3const
@@ -12,7 +12,7 @@ Standard C library
.SH SYNOPSIS
.nf
.B #include <stddef.h>
-.PP
+.P
.B "#define NULL ((void *) 0)"
.fi
.SH DESCRIPTION
@@ -36,12 +36,12 @@ and
.SH CAVEATS
It is undefined behavior to dereference a null pointer,
and that usually causes a segmentation fault in practice.
-.PP
+.P
It is also undefined behavior to perform pointer arithmetic on it.
-.PP
+.P
.I NULL \- NULL
is undefined behavior, according to ISO C, but is defined to be 0 in C++.
-.PP
+.P
To avoid confusing human readers of the code,
do not compare pointer variables to
.BR 0 ,
@@ -50,7 +50,7 @@ and do not assign
to them.
Instead, always use
.BR NULL .
-.PP
+.P
.B NULL
shouldn't be confused with
.BR NUL ,