Trailing whitespace trimmed. Perhaps running "perl util/spacewhack.pl in your
own CVS tree will help minimize CVS conflicts. Maybe not. Blame Graff for getting me to trim all trailing whitespace.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<!--
|
||||
- Copyright (C) 1999, 2000 Internet Software Consortium.
|
||||
-
|
||||
-
|
||||
- Permission to use, copy, modify, and distribute this software for any
|
||||
- purpose with or without fee is hereby granted, provided that the above
|
||||
- copyright notice and this permission notice appear in all copies.
|
||||
-
|
||||
-
|
||||
- THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
|
||||
- DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
|
||||
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
|
||||
@@ -15,7 +15,7 @@
|
||||
- WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
-->
|
||||
|
||||
<!-- $Id: coding.html,v 1.12 2000/07/27 09:42:06 tale Exp $ -->
|
||||
<!-- $Id: coding.html,v 1.13 2000/08/01 01:18:21 tale Exp $ -->
|
||||
|
||||
<H2>C Language</H2>
|
||||
|
||||
@@ -109,11 +109,11 @@ declare any functions.<P>
|
||||
<PRE><CODE>
|
||||
/*
|
||||
* Copyright (C) 1998 Internet Software Consortium.
|
||||
*
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
* copyright notice and this permission notice appear in all copies.
|
||||
*
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
|
||||
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
|
||||
@@ -430,7 +430,7 @@ Bad:
|
||||
|
||||
<H4>The Ternary Operator</H4>
|
||||
The ?: operator should mostly be avoided. It is tolerated when
|
||||
deciding what value to pass as a parameter to a function, such as
|
||||
deciding what value to pass as a parameter to a function, such as
|
||||
frequently happens with printf, and also when a simple (non-compound)
|
||||
value is being used in assignment or as part of a calculation.
|
||||
In particular, using the ternary operator to specify a return value is
|
||||
@@ -539,7 +539,7 @@ unquoted. E.g., <CODE>isc_log_write(... "open: %s: %s", filename,
|
||||
isc_result_totext(result));</CODE><P>
|
||||
|
||||
Function names, line numbers, memory addresses, and other references
|
||||
to program internals may be used in debugging messages and in
|
||||
to program internals may be used in debugging messages and in
|
||||
messages to report programming errors detected at runtime.
|
||||
They may not be used in messages that indicate errors in the
|
||||
program's inputs or operation.<P>
|
||||
|
||||
Reference in New Issue
Block a user