Commit Graph

25 Commits

Author SHA1 Message Date
lukem
08b87159f0 check strtol for ERANGE overflow too... 2003-04-17 02:59:29 +00:00
lukem
6cbbfe4c9f There's no need anymore to protect __COPYRIGHT() and __RCSID() with:
#ifndef __lint
	...
	#endif
2003-03-10 03:50:38 +00:00
fvdl
1d6960703b Return value style update (no parentheses) 2003-03-04 14:22:15 +00:00
jhawk
dcbacd486c Amend rev 1.21: there is insufficient concensus on #define<TAB>.
Permit any whitespace after #define, but mandate consistency of
TABs within a file.
2003-03-02 18:25:45 +00:00
jhawk
e470466271 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).
2003-02-23 14:58:50 +00:00
kleink
7ff4c19dee Inspired by rev. 1.18: consistency, pull in <assert.h> for _DIAGASSERT(). 2001-10-23 18:51:05 +00:00
kleink
04b133da92 As discussed with Luke, add a short _DIAGASSERT(3) example.
Fixes PR lib/14324.
2001-10-23 18:45:13 +00:00
cgd
00f68ab5c7 add include of stdlib.h, for use of setprogname() & getprogname() 2001-02-21 00:04:43 +00:00
cgd
2c1f7a6ee8 nuke __progname, suggest setprogname() and getprogname() 2001-02-19 22:46:47 +00:00
enami
04235cdc87 Fix typos. 2000-09-06 14:12:45 +00:00
lukem
dc53b5b17e - fix spelo
- be consistent with #define<TAB> for macros
2000-09-04 08:01:16 +00:00
lukem
6243e0b38d add example on how to printf 64 bit quantities 2000-03-10 12:46:30 +00:00
lukem
aa6dfe707c fix comment around CONSTCOND 2000-03-10 12:01:15 +00:00
lukem
d56d7ced69 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
2000-03-02 08:51:54 +00:00
abs
cd59a419b6 Fix error in example - from VaX#n8 <vax@linkdead.paranoia.com> 1999-07-03 21:47:21 +00:00
scottr
c9b4ff15c2 Add a pointer to the indent(1) profile, and a disclaimer regarding same. 1999-01-29 07:24:20 +00:00
lukem
5bd0869181 provide a better parenthesis example. from Brian Grayson in [misc/6714] 1999-01-20 23:13:54 +00:00
simonb
2a571c069b Function type declarations are manatory now. 1998-09-01 06:51:09 +00:00
enami
85da38999e Make C sentense end with `;'. 1998-02-09 06:58:39 +00:00
thorpej
7faf595cd3 RCS id police. Side effect: shows the RCS id style we prefer :-) 1996-08-30 17:43:09 +00:00
scottr
755cc6f914 getopt() returns -1 when the arg list is exhausted, not EOF. Ironic
that it should show up here...
1996-03-31 04:58:32 +00:00
briggs
6598f884fb Minor grammatical nit: "have too" -> "have to." 1995-04-10 22:28:18 +00:00
cgd
3d5d33d3c1 s/externs.h/extern.h/ 1994-12-19 14:14:40 +00:00
cgd
c9621c279c style guide 1994-03-26 03:24:50 +00:00
cgd
8f94dcc594 overall source code style guide. it is king. revere it. 1993-08-06 07:30:52 +00:00