CVS log for src/share/misc/style
Up to [cvs.NetBSD.org] / src / share / misc
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.77: download - view: text, markup, annotated - select for diffs
Mon Jan 29 05:42:41 2024 UTC (10 months, 1 week ago) by rin
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
HEAD
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +3 -3
lines
style: One more typo, NFC
Revision 1.76: download - view: text, markup, annotated - select for diffs
Wed Jan 24 04:00:43 2024 UTC (10 months, 2 weeks ago) by rin
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +3 -3
lines
style: Fix typo, NFC
"it it" --> "it is" (across a newline)
Revision 1.75: download - view: text, markup, annotated - select for diffs
Mon Aug 7 18:01:42 2023 UTC (16 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +77 -8
lines
style(5): Advise against new struct typedefs and explain why.
Proposed on tech-kern:
https://mail-index.netbsd.org/tech-kern/2023/07/11/msg028950.html
Positive feedback to general concept, negative feedback to specifics
and phrasing of the first iteration but no objections to latest
iteration after several weeks at:
https://mail-index.netbsd.org/tech-kern/2023/07/16/msg028994.html
Revision 1.74: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:12:53 2023 UTC (19 months, 2 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +6 -8
lines
style: remove mentions of ANSI C
The distinction between traditional C and ISO C90 or later is no longer
needed in the style guide. Any old-style code is caught by the
compilers.
https://mail-index.netbsd.org/tech-userlevel/2023/04/15/msg013768.html
https://mail-index.netbsd.org/tech-userlevel/2023/04/17/msg013776.html
Revision 1.73: download - view: text, markup, annotated - select for diffs
Mon Apr 17 00:37:04 2023 UTC (19 months, 3 weeks ago) by dholland
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +4 -3
lines
share/misc/style: Don't prescribe using "extern.h" for all prototypes.
That's very 80s.
No objection (or even response, amazingly enough) on tech-userlevel in
two weeks.
Revision 1.72: download - view: text, markup, annotated - select for diffs
Sat Apr 15 12:22:37 2023 UTC (19 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +4 -4
lines
style: fix spelling of plural parentheses
Revision 1.71: download - view: text, markup, annotated - select for diffs
Fri Apr 14 16:53:13 2023 UTC (19 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +5 -5
lines
style: don't require sorting variables in functions
Sorting the variables by size would be platform-dependent and thus is
not possible.
Sorting the variables alphabetically may or may not make the code easier
to read, and the example given below that rule doesn't follow it,
otherwise the correct order would be 'eight, eleven, nine, ten,
thirteen, twelve'.
https://mail-index.netbsd.org/tech-userlevel/2023/04/11/msg013749.html
Revision 1.70: download - view: text, markup, annotated - select for diffs
Tue Apr 11 14:22:10 2023 UTC (20 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +2 -6
lines
style(5): Omit redundant proscription against .c externs in previous.
Revision 1.69: download - view: text, markup, annotated - select for diffs
Thu Mar 30 10:39:30 2023 UTC (20 months, 1 week ago) by riastradh
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +23 -4
lines
style(5): Forbid extern in .c files.
Discussed on tech-userlevel (bcc tech-kern):
https://mail-index.netbsd.org/tech-userlevel/2023/03/15/msg013727.html
Revision 1.68: download - view: text, markup, annotated - select for diffs
Tue Feb 14 18:56:10 2023 UTC (21 months, 3 weeks ago) by jschauma
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +3 -3
lines
exit with EXIT_FAILURE, not 1, as elsewhere
Revision 1.67: download - view: text, markup, annotated - select for diffs
Fri Dec 30 21:12:44 2022 UTC (23 months, 1 week ago) by jkoshy
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +6 -4
lines
Move a style recommendation closer to the syntax that it describes.
Revision 1.66: download - view: text, markup, annotated - select for diffs
Fri Dec 30 17:02:31 2022 UTC (23 months, 1 week ago) by jkoshy
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +5 -3
lines
C99: Suggest using narrow scopes for loop indices.
Revision 1.65: download - view: text, markup, annotated - select for diffs
Thu Dec 29 18:23:37 2022 UTC (23 months, 1 week ago) by jkoshy
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -3
lines
Terminate a sentence with a full stop.
Revision 1.64: download - view: text, markup, annotated - select for diffs
Thu Mar 10 23:39:12 2022 UTC (2 years, 9 months ago) by rillig
Branches: MAIN
CVS tags: netbsd-10-base,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +6 -6
lines
share/misc/style: lint no longer needs CONSTCOND in do-while-loops
Since usr.bin/xlint/lint1/tree.c 1.202 from 2021-01-31, lint recognizes
the common idiom 'do { ... } while (0)' and no longer complains about
its constant condition; see tests/usr.bin/xlint/lint1/msg_161.c.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Thu Mar 10 22:45:23 2022 UTC (2 years, 9 months ago) by rillig
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -3
lines
share/misc/style: clarify enum example code
The only purpose of the enum example is to show that enum constants are
written in uppercase.
The previous code could be mistakenly interpreted as requiring each
definition of an enum type to also define a global variable of that
type, and to make the variable name the abbreviated type name. Even if
the enum type were prefixed with 'typedef', choosing different names for
the tag and the typedef would not be necessary.
To avoid these possible misinterpretations above, remove the variable
name from the declaration.
Revision 1.62: download - view: text, markup, annotated - select for diffs
Sun Mar 28 14:28:56 2021 UTC (3 years, 8 months ago) by christos
Branches: MAIN
CVS tags: cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +22 -6
lines
Clarify and explain the rationale for parentheses in sizeof and return as
discussed.
Revision 1.61: download - view: text, markup, annotated - select for diffs
Sun Mar 28 14:16:16 2021 UTC (3 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +15 -13
lines
- EXIT_FAILURE instead of 1
- %j instead of PRI for *intmax_t
- != -1 instead of < 0 for syscalls
Revision 1.60: download - view: text, markup, annotated - select for diffs
Sun Nov 29 09:15:33 2020 UTC (4 years ago) by rillig
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -3
lines
style: fix typo
Revision 1.59: download - view: text, markup, annotated - select for diffs
Sun Aug 2 01:36:46 2020 UTC (4 years, 4 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +2 -15
lines
Remove confusing advice about macros that might expand to nothing.
Such macros should not exist; as advised earlier in the file, they
should expand to `__nothing' (literally) from <sys/cdefs.h> which
itself expands to ((void)0) precisely so that the problem this advice
sought to avoid does not arise.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun Aug 2 01:35:07 2020 UTC (4 years, 4 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +11 -10
lines
Update style around single-line braces according to discussion.
https://mail-index.netbsd.org/tech-userlevel/2020/07/12/msg012536.html
https://mail-index.netbsd.org/tech-kern/2020/07/12/msg026594.html
Retain some examples of technically unnecessary braces that likely
aid legibility from the previous commit.
Revision 1.57: download - view: text, markup, annotated - select for diffs
Sun Aug 2 00:20:21 2020 UTC (4 years, 4 months ago) by lukem
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +14 -21
lines
style: revert previous
I misintepreted the consensus.
Revision 1.56: download - view: text, markup, annotated - select for diffs
Sat Aug 1 02:45:35 2020 UTC (4 years, 4 months ago) by lukem
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +23 -16
lines
style: prefer braces for single statement control statements
Prefer to use { braces } around single statements after
control statements, instead of discouraging them.
Per discussion on tech-userlevel & tech-kern, where the significant
majority of developers who responded (including current and former
core members) prefer this new style.
Revision 1.55: download - view: text, markup, annotated - select for diffs
Sun Jul 26 09:22:15 2020 UTC (4 years, 4 months ago) by rillig
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -3
lines
style: fix typo about enum constants being capitalized
Revision 1.53.16.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:05:42 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53: +12 -2
lines
Sync with HEAD
Revision 1.54: download - view: text, markup, annotated - select for diffs
Mon Jan 28 17:29:44 2019 UTC (5 years, 10 months ago) by christos
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
netbsd-9-base,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
is-mlppp-base,
is-mlppp
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +12 -2
lines
document how we want to use __nothing
Revision 1.53: download - view: text, markup, annotated - select for diffs
Mon May 23 11:41:06 2016 UTC (8 years, 6 months ago) by salazar
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
phil-wifi-base,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
pgoyette-compat,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
netbsd-8-base,
netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: phil-wifi
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +4 -4
lines
fix spelling mistakes
Revision 1.52: download - view: text, markup, annotated - select for diffs
Sat Oct 24 15:46:09 2015 UTC (9 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +6 -3
lines
Amend variable initialization in the declarations comment.
Revision 1.49.2.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:37:53 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.49.2.1: preferred, colored; branchpoint 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49.2.1: +3 -3
lines
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.50.2.1: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:28:54 2013 UTC (11 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50: +3 -3
lines
resync from head
Revision 1.51: download - view: text, markup, annotated - select for diffs
Fri Mar 8 16:50:02 2013 UTC (11 years, 9 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9,
tls-maxphys-base,
tls-earlyentropy-base,
tls-earlyentropy,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7,
agc-symver-base,
agc-symver
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +3 -3
lines
PR/47632: Supratim Chakraborty: Spelling Mistake for Variadic functions
Revision 1.49.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 30 18:59:45 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +9 -4
lines
sync with head
Revision 1.50: download - view: text, markup, annotated - select for diffs
Wed Jun 27 22:04:02 2012 UTC (12 years, 5 months ago) by riastradh
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6
Branch point for: tls-maxphys
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +9 -4
lines
Elaborate and clarify rules about #include order.
ok christos
Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Sep 1 09:33:01 2011 UTC (13 years, 3 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus
Branch point for: yamt-pagecache
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +12 -2
lines
explain NULL casts
Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat Aug 27 17:48:11 2011 UTC (13 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +2 -3
lines
Prototyping main is silly and shouldn't be encouraged.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat Oct 30 20:12:32 2010 UTC (14 years, 1 month ago) by christos
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -3
lines
make usage dead.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Sat Apr 24 00:54:07 2010 UTC (14 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +6 -3
lines
Be explicit about sizeof(*var) being preferred over sizeof(type).
Revision 1.44.4.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:19:16 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44: +4 -4
lines
Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun Feb 15 07:01:41 2009 UTC (15 years, 9 months ago) by dholland
Branches: MAIN
CVS tags: matt-premerge-20091211,
jym-xensuspend-nbase,
jym-xensuspend-base
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +4 -4
lines
Avoid trailing whitespace. It is definitely against the style rules.
Revision 1.42.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 5 20:11:24 2008 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +6 -5
lines
Sync with HEAD.
Revision 1.42.8.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:38:09 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +4 -4
lines
Sync with wrstuden-revivesa-base-2.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue Sep 9 19:18:41 2008 UTC (16 years, 3 months ago) by jschauma
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3,
netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
mjf-devfs2-base,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2
Branch point for: jym-xensuspend
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -3
lines
move punctuation of a complete sentence into its parens
Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Jul 20 00:51:19 2008 UTC (16 years, 4 months ago) by lukem
Branches: MAIN
CVS tags: wrstuden-revivesa-base-2
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +5 -4
lines
Remove the \n from the __COPYRIGHT example; what(1) stops extracting
at them, so we lose most of the message.
Revision 1.40.4.2: download - view: text, markup, annotated - select for diffs
Sun Mar 23 00:45:37 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.40.4.1: preferred, colored; branchpoint 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.4.1: +3 -3
lines
sync with HEAD
Revision 1.42: download - view: text, markup, annotated - select for diffs
Sat Feb 16 14:22:16 2008 UTC (16 years, 9 months ago) by apb
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-pf42-base,
yamt-pf42,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-nbase,
hpcarm-cleanup-base
Branch point for: wrstuden-revivesa,
mjf-devfs2
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -3
lines
Don't mention <machine/int_fmtio.h>; code should just
include <inttypes.h> to get intmax_t, PRIdMAX, and friends.
Revision 1.40.4.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:13:20 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -3
lines
sync with HEAD
Revision 1.41: download - view: text, markup, annotated - select for diffs
Thu Sep 20 18:27:17 2007 UTC (17 years, 2 months ago) by plunky
Branches: MAIN
CVS tags: matt-armv6-base,
cube-autoconf-base,
cube-autoconf
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -3
lines
getopt uses : when an argument is expected
Revision 1.40: download - view: text, markup, annotated - select for diffs
Sat May 26 18:48:48 2007 UTC (17 years, 6 months ago) by christos
Branches: MAIN
CVS tags: matt-mips64-base,
matt-mips64,
hpcarm-cleanup
Branch point for: matt-armv6
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +5 -5
lines
Fix reversed test and missing +; from Joerg Niendorf
Revision 1.39: download - view: text, markup, annotated - select for diffs
Fri Apr 13 13:23:58 2007 UTC (17 years, 8 months ago) by darcy
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +12 -2
lines
Add entry about making include files self-sufficient.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Nov 2 22:44:41 2006 UTC (18 years, 1 month ago) by christos
Branches: MAIN
CVS tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +16 -3
lines
update brace comments to reflect current reality.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Sat Feb 25 11:07:19 2006 UTC (18 years, 9 months ago) by wiz
Branches: MAIN
CVS tags: abandoned-netbsd-4-base,
abandoned-netbsd-4
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +22 -17
lines
Mention the preferred option order in
getopt(), usage(), and man page.
Suggest describing newly added options in usage() and man page.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Aug 25 17:51:58 2005 UTC (19 years, 3 months ago) by briggs
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +21 -5
lines
Add some comments about using inttypes.h / int_fmtio.h macros.
Show use of PRIdMAX, PRIxMAX, PRId64, PRIx32, and refer to SCN*.
Inspired by comments from Roland Illig and others.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Sat Aug 20 16:17:36 2005 UTC (19 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -4
lines
Partly reverted my last change. I had forgotten that off_t is a signed
data type.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Sat Aug 20 09:03:29 2005 UTC (19 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +6 -4
lines
Don't cast unsigned values to long long. They might overflow.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat Aug 20 08:58:57 2005 UTC (19 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -3
lines
Use exit(EXIT_FAILURE) instead of exit(1).
Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Jun 10 06:35:41 2005 UTC (19 years, 6 months ago) by junyoung
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +5 -3
lines
More clarification on uintN_t.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Feb 3 00:27:55 2005 UTC (19 years, 10 months ago) by christos
Branches: MAIN
CVS tags: netbsd-3-base,
netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
netbsd-3
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +4 -4
lines
Make comment more specific.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed Feb 2 23:33:42 2005 UTC (19 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +4 -4
lines
fix accidental join that made the comment look like functions that
return ``void *'' should not be cast'ed.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Feb 1 13:43:38 2005 UTC (19 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +7 -6
lines
Add missing (void) cast to printf return.
Prefer returning from main rather than calling exit.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Jan 3 13:59:40 2005 UTC (19 years, 11 months ago) by wiz
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -2
lines
Add uint32_t as example (so that it is implicitly clear we prefer the C99 types).
Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Sep 27 21:17:31 2003 UTC (21 years, 2 months ago) by simonb
Branches: MAIN
CVS tags: netbsd-2-base,
netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1,
netbsd-2-0-base,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE,
netbsd-2-0,
netbsd-2
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -3
lines
Use uintN_t in code example instead of u_intN_t. Agrees with current
standards (and more importantly Klaus too :-).
Revision 1.26: download - view: text, markup, annotated - select for diffs
Tue Aug 5 13:26:13 2003 UTC (21 years, 4 months ago) by jmmv
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +7 -6
lines
Recommend EXIT_SUCCESS and EXIT_FAILURE for exit status, instead of directly
using 0 and 1 values, respectively.
Revision 1.20.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 14:56:46 2003 UTC (21 years, 6 months ago) by tron
Branches: netbsd-1-6
CVS tags: netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +5 -3
lines
Pull up revision 1.23 (requested by mason in ticket #1191):
Return value style update (no parentheses)
Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu Apr 17 02:59:29 2003 UTC (21 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +6 -3
lines
check strtol for ERANGE overflow too...
Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Mar 10 03:50:38 2003 UTC (21 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -4
lines
There's no need anymore to protect __COPYRIGHT() and __RCSID() with:
#ifndef __lint
...
#endif
Revision 1.23: download - view: text, markup, annotated - select for diffs
Tue Mar 4 14:22:15 2003 UTC (21 years, 9 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +5 -3
lines
Return value style update (no parentheses)
Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun Mar 2 18:25:45 2003 UTC (21 years, 9 months ago) by jhawk
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +4 -4
lines
Amend rev 1.21: there is insufficient concensus on #define<TAB>.
Permit any whitespace after #define, but mandate consistency of
TABs within a file.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun Feb 23 14:58:50 2003 UTC (21 years, 9 months ago) by jhawk
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -2
lines
Clarify that macros should be #define<TAB>; it's important to specify this
in the actual document, just not in the cvs logs (cf. rev 1.15).
Revision 1.20: download - view: text, markup, annotated - select for diffs
Tue Oct 23 18:51:05 2001 UTC (23 years, 1 month ago) by kleink
Branches: MAIN
CVS tags: netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001,
fvdl_fs64_base
Branch point for: netbsd-1-6
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -2
lines
Inspired by rev. 1.18: consistency, pull in <assert.h> for _DIAGASSERT().
Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Oct 23 18:45:13 2001 UTC (23 years, 1 month ago) by kleink
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +9 -2
lines
As discussed with Luke, add a short _DIAGASSERT(3) example.
Fixes PR lib/14324.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed Feb 21 00:04:43 2001 UTC (23 years, 9 months ago) by cgd
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -2
lines
add include of stdlib.h, for use of setprogname() & getprogname()
Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Feb 19 22:46:47 2001 UTC (23 years, 9 months ago) by cgd
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +11 -5
lines
nuke __progname, suggest setprogname() and getprogname()
Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Sep 6 14:12:45 2000 UTC (24 years, 3 months ago) by enami
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +6 -6
lines
Fix typos.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Sep 4 08:01:16 2000 UTC (24 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -4
lines
- fix spelo
- be consistent with #define<TAB> for macros
Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Mar 10 12:46:30 2000 UTC (24 years, 9 months ago) by lukem
Branches: MAIN
CVS tags: netbsd-1-5-base,
netbsd-1-5-RELEASE,
netbsd-1-5-PATCH003,
netbsd-1-5-PATCH002,
netbsd-1-5-PATCH001,
netbsd-1-5-BETA2,
netbsd-1-5-BETA,
netbsd-1-5-ALPHA2,
netbsd-1-5,
minoura-xpg4dl-base,
minoura-xpg4dl
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +9 -4
lines
add example on how to printf 64 bit quantities
Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Mar 10 12:01:15 2000 UTC (24 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3
lines
fix comment around CONSTCOND
Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Mar 2 08:51:54 2000 UTC (24 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +172 -108
lines
major overhaul:
* require ANSI not K&R for prototypes, stdargs, etc
* document current practice for
- rcsids & copyright
- header file inclusion protection
- expressions, and multi-statement macros
- enum & struct decls
- empty and large statements
- wrapping long lines, prototypes, function decls
Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Jul 3 21:47:21 1999 UTC (25 years, 5 months ago) by abs
Branches: MAIN
CVS tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
wrstuden-devbsize,
comdex-fall-1999-base,
comdex-fall-1999
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -2
lines
Fix error in example - from VaX#n8 <vax@linkdead.paranoia.com>
Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Jan 29 07:24:20 1999 UTC (25 years, 10 months ago) by scottr
Branches: MAIN
CVS tags: netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH003,
netbsd-1-4-PATCH002,
netbsd-1-4-PATCH001,
netbsd-1-4
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +8 -1
lines
Add a pointer to the indent(1) profile, and a disclaimer regarding same.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Jan 20 23:13:54 1999 UTC (25 years, 10 months ago) by lukem
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +5 -3
lines
provide a better parenthesis example. from Brian Grayson in [misc/6714]
Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Sep 1 06:51:09 1998 UTC (26 years, 3 months ago) by simonb
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -3
lines
Function type declarations are manatory now.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Feb 9 06:58:39 1998 UTC (26 years, 10 months ago) by enami
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2
lines
Make C sentense end with `;'.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Aug 30 17:43:09 1996 UTC (28 years, 3 months ago) by thorpej
Branches: MAIN
CVS tags: netbsd-1-3-base,
netbsd-1-3-RELEASE,
netbsd-1-3-PATCH003-CANDIDATE2,
netbsd-1-3-PATCH003-CANDIDATE1,
netbsd-1-3-PATCH003-CANDIDATE0,
netbsd-1-3-PATCH003,
netbsd-1-3-PATCH002,
netbsd-1-3-PATCH001,
netbsd-1-3-BETA,
netbsd-1-3
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -1
lines
RCS id police. Side effect: shows the RCS id style we prefer :-)
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Mar 31 04:58:32 1996 UTC (28 years, 8 months ago) by scottr
Branches: MAIN
CVS tags: netbsd-1-2-base,
netbsd-1-2-RELEASE,
netbsd-1-2-PATCH001,
netbsd-1-2-BETA,
netbsd-1-2
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2
lines
getopt() returns -1 when the arg list is exhausted, not EOF. Ironic
that it should show up here...
Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Apr 10 22:28:18 1995 UTC (29 years, 8 months ago) by briggs
Branches: MAIN
CVS tags: netbsd-1-1-base,
netbsd-1-1-RELEASE,
netbsd-1-1-PATCH001,
netbsd-1-1
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2
lines
Minor grammatical nit: "have too" -> "have to."
Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Dec 19 14:14:40 1994 UTC (29 years, 11 months ago) by cgd
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2
lines
s/externs.h/extern.h/
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Mar 26 03:24:54 1994 UTC (30 years, 8 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-0-base,
netbsd-1-0-RELEASE,
netbsd-1-0-PATCH1,
netbsd-1-0-PATCH06,
netbsd-1-0-PATCH05,
netbsd-1-0-PATCH04,
netbsd-1-0-PATCH03,
netbsd-1-0-PATCH02,
netbsd-1-0-PATCH0,
netbsd-1-0
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +111 -45
lines
style guide
Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Aug 6 07:30:52 1993 UTC (31 years, 4 months ago) by cgd
Branches: MAIN
overall source code style guide. it is king. revere it.
CVSweb <webmaster@jp.NetBSD.org>