Note that declarations in the middle of a block aren't supported by all

compilers, and thus shouldn't be used.

svn path=/trunk/; revision=12029
This commit is contained in:
Guy Harris 2004-09-17 09:32:53 +00:00
parent 6bc5ac3949
commit 7baddd7b91
1 changed files with 10 additions and 0 deletions

View File

@ -214,6 +214,16 @@ as some compilers will reject the first of those statements. Instead,
initialize the array at the point at which it's first declared, so that
the size is known.
Don't put declarations in the middle of a block; put them before all
code. Not all compilers support declarations in the middle of code,
such as
int i;
i = foo();
int j;
For #define names and enum member names, prefix the names with a tag so
as to avoid collisions with other names - this might be more of an issue
on Windows, as it appears to #define names such as DELETE and