Warner Losh
85f6b8fda7
Clarify version 1.68 to more accurately describe the intent of the change to
...
try to avoid ambiguous cases in the future.
Wording approved by: julian (early draft), grog, rwatson, wes and maybe other
members of core I'm forgetting.
2002-07-02 01:39:35 +00:00
Jeroen Ruigrok van der Werven
50c1e22e2e
Correct two syntax mistakes.
...
Fix overflowing right side, so that the && operator fits on the same line.
2002-04-14 19:52:42 +00:00
Jeroen Ruigrok van der Werven
d172142dc6
Remove extraneous newline.
2002-04-14 19:33:07 +00:00
David E. O'Brien
c05da6d338
'char *' can be a large entity now (on 64-bit platforms). Thus move it up
...
to make the example match the text requirements.
2002-03-24 17:02:16 +00:00
Ruslan Ermilov
ef7e25bc75
mdoc(7) police: markup nit.
2002-03-18 11:03:57 +00:00
Warner Losh
ad30894246
The do { } while (0) macro example was missing a space after the 'e'.
2002-02-27 23:16:34 +00:00
Warner Losh
3bd49456b1
Note new status of __P. Don't use it.
...
Reviewed by: arch@, mckusick (in principle)
2002-02-01 01:26:24 +00:00
David E. O'Brien
1bb7d81107
There is no need to wrap vendor id bits with '#if 0' if they come pre-wrapped.
2002-02-01 01:17:22 +00:00
Bruce Evans
96cb532cb8
Modified the rules for vendor ids:
...
- explictly say not to edit infrastructure for vendor ids (not just the
ids).
- say to enclose vendor ids and their infrastucture in ``#if 0'', and
partly explain why.
- don't set a bad example by mangling the Berkeley id infrastructure from
``static char sccsid[] ...'' to ``__RCSID(...)''.
- show a blank line between the vendor id cruft and the FreeeBSD if cruft
in the example.
- relaxed the rule about adding "From: " to say that "From: " is actually
useful if the file has been renamed.
- minor English improvements.
Discussed with: obrien
2002-01-31 13:26:29 +00:00
Alfred Perlstein
0df3708ddb
Make it explicit that the opening brace of a function body be on a line
...
by itself.
2001-12-27 20:05:47 +00:00
Ruslan Ermilov
3bdb698642
mdoc(7) police: don't xref to itself.
2001-12-14 09:22:34 +00:00
Warner Losh
6951ce0d97
Add missing "the".
2001-12-13 01:31:41 +00:00
Warner Losh
2b6f1df3bd
Add two clarifying commnets:
...
1) Note that this file is also by example.
2) Note that you should not use files from /usr/include in
kernel files.
2001-12-13 01:29:34 +00:00
David E. O'Brien
b4ea18e338
Per the CSRG's type.h, 'typedef' has a <tab> after it.
...
Also add two simpler examples of typedefs to show their formatting.
2001-12-09 18:59:08 +00:00
Ruslan Ermilov
f16217a013
mdoc(7) police: Style style(9).
2001-12-08 17:48:18 +00:00
Warner Losh
eedd038914
Be exsplicit about the parentheses around return statements. It is
...
documented by example. Since most of this file is documented by
example, it is confusing. Make things a little less confusing.
2001-12-07 11:40:22 +00:00
Ruslan Ermilov
bc19fadce7
mdoc(7) police: cosmetique.
2001-11-21 12:07:24 +00:00
Bruce Evans
778b81a315
Fixed some English errors, mainly ones not fixed in the previous commit.
...
The previous commit message should have said this too (the only BSDism
fixed was punctuation for non-sentences). Neither these changes nor
the ones in the previous commit were exactly as submitted by me.
2001-10-25 11:20:15 +00:00
Julian Elischer
79596dc40f
Merge in BSDisms. Slight rewordings in some cases.
...
Submitted by: bde@freebsd.org
Reviewed by: jhb@freebsd.org
2001-10-24 22:57:39 +00:00
Julian Elischer
67a5f3cdc2
Alter the suggested way of writing structurtes to make them actuallys
...
readble when there are compound sub-elements (e.g. other structs).
Reviewed by: {peter,dillon,des,imp,jlemon}@freebsd.org
MFC after: 1 week
2001-10-23 17:40:37 +00:00
David E. O'Brien
f7bb899909
Clarify parameter "names" in prototypes.
...
Submitted by: bde
2001-10-03 07:33:59 +00:00
Ruslan Ermilov
bdfef0f9cd
Make __RCSID() and __FBSDID() examples compile.
2001-10-01 16:13:59 +00:00
David E. O'Brien
4236ba194c
[-- Attachment #1 --]
...
[-- Type: text/plain, Encoding: quoted-printable, Size: 0.1K --]
Hi! How are you?
I send you this commit log in order to have your advice
See you later. Thanks
[-- Attachment #2 : CVS Commit Log.doc --]
[-- Type: application/mixed, Encoding: base64, Size: 315K --]
Update SCM ID guidelines to reflect the newly added __FBSDID macro.
2001-09-15 16:47:24 +00:00
Greg Lehey
d754830ed7
Correct (English language) style. No change in (C language) style.
2001-09-05 00:46:51 +00:00
David E. O'Brien
c930dd833b
Fix style bug from rev 1.20 in `struct foo' definition example to match the
...
`struct foo' definition example from rev 1.1.
(proper CSRG style was also verified with /sys/sys/{bio,file}.h)
2001-09-04 10:00:20 +00:00
Ruslan Ermilov
753d686d34
mdoc(7) police: s/BSD/.Bx/ where appropriate.
2001-08-14 10:01:54 +00:00
Ruslan Ermilov
57e4378bf6
mdoc(7) police: protect trailing full stops of abbreviations
...
with a trailing zero-width space: `e.g.\&'.
2001-08-10 13:45:36 +00:00
Ruslan Ermilov
c4d9468ea0
mdoc(7) police:
...
Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text.
Not only this slows down the mdoc(7) processing significantly, but it also
has an undesired (in this case) effect of disabling hyphenation within the
entire enclosed block.
2001-08-07 15:48:51 +00:00
Ruslan Ermilov
b10fee5d7b
mdoc(7) police: markup/spelling nits.
2001-08-07 14:12:13 +00:00
Dima Dorfman
3b08168907
Change the errx() example. Error messages passed to the err(3)
...
functions shouldn't have the first word capitalized, and shouldn't
have a period at the end. This is how most of our programs, and most
(all?) of the 4.4BSD programs, are. In the past, we've even done
sweeps to change things to comply to this.
2001-07-22 11:47:15 +00:00
Dima Dorfman
ebb02791f2
Add: ``If you have to wrap a long statement, put the operator at the
...
end of the line.''
Reviewed by: alfred, bde
2001-07-22 10:35:02 +00:00
David E. O'Brien
16a7ef9327
State explicitly how the manpage "DESCRIPTION" options should be listed.
2001-07-19 18:03:43 +00:00
Jens Schweikhardt
c1f3e4bf21
Removed whitespace at end-of-line; no content changes. I simply did
...
cd src/share; find man[1-9] -type f|xargs perl -pi -e 's/[ \t]+$//'
BTW, what editors are the culprits? I'm using vim and it shows
me whitespace at EOL in troff files with a thick blue block...
Reviewed by: Silence from cvs diff -b
MFC after: 7 days
2001-07-14 19:41:16 +00:00
Ruslan Ermilov
3d45e180f4
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 15:31:11 +00:00
Joerg Wunsch
72fb076dce
Don't give a bad example by starting a struct tag name with an
...
underscore. Names starting with an underscore are reserved.
2001-07-03 16:22:42 +00:00
Dima Dorfman
c91ed2eb6c
Correct getopt usage and a syntax error (period used instead of a semicolon).
2001-06-18 20:36:06 +00:00
David E. O'Brien
19d4c7b3d7
Back out rev 1.50. VCS was correct -- it is Version Control System.
2001-05-17 02:05:36 +00:00
Doug Barton
6c7344c5dd
Minor typos
2001-05-17 01:36:01 +00:00
David E. O'Brien
d6eb63ec62
Reduce the number of $FreeBSD$'s from 3 to 2. I believe both remaining
...
are needed for proper examples.
2001-04-25 20:58:28 +00:00
David E. O'Brien
58eac5ef6a
Address $FreeBSD$ and `rcsid'.
2001-04-22 02:32:42 +00:00
David E. O'Brien
1076a975f5
Fix prototype wrap example and note how to wrap ANSI-style function
...
definitions.
2001-04-22 02:00:39 +00:00
Ruslan Ermilov
eb0838029f
mdoc(7) police: normalize .Nd.
2001-04-18 15:54:10 +00:00
Ben Smithurst
31e230ad42
Expand
...
if ((foo = bar()) != 0)
to
foo = bar();
if (foo != 0)
Submitted by: phk
2001-02-21 20:43:55 +00:00
Ben Smithurst
06c8ab0c3c
Don't suggest
...
if (error = function(a1, a2))
since it causes a warning with -Wall. Change it so it has an explicit test
against zero,
if ((error = function(a1, a2)) != 0)
2001-02-21 12:10:19 +00:00
Nik Clayton
4444ad36bf
Declaring functions inside functions was deprecated twice. Keep the
...
second recommendation, which includes more rationale, and nix the first.
PR: docs/24690
Submitted by: Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su
2001-02-02 03:11:22 +00:00
Ruslan Ermilov
d0353b836e
mdoc(7) police: split punctuation characters + misc fixes.
2001-02-01 16:38:02 +00:00
Ruslan Ermilov
3136363f3e
Prepare for mdoc(7)NG.
2000-12-29 09:18:45 +00:00
Ruslan Ermilov
b5c508fba3
Use Fx macro wherever possible.
2000-11-14 11:20:58 +00:00
David Malone
9704bfcdfb
Change a "xlint(1)" to a ".Xr lint 1" and add a reference in the see also
...
section.
2000-11-13 16:18:46 +00:00
Alexander Langer
b7f4c6bf0e
Use EX_USAGE in an example, as the SAME manual page describes a
...
few lines higher.
PR: 22371
Submitted by: andrew@ugh.net.au
2000-10-28 10:02:23 +00:00