mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-12-13 16:16:36 +01:00
2024-08-08 Fred Gleason <fredg@paravelsystems.com>
* Added a 'NULL POINTERS' section to 'CODINGSTYLE'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
17
CODINGSTYLE
17
CODINGSTYLE
@@ -175,6 +175,23 @@ all, followed by an underscore. For example, the class 'MyClass' might use
|
|||||||
single word.
|
single word.
|
||||||
|
|
||||||
|
|
||||||
|
NULL POINTERS
|
||||||
|
Null pointers should always be represented by using the 'NULL' keyword,
|
||||||
|
rather than 0.
|
||||||
|
|
||||||
|
Good:
|
||||||
|
int *foo=NULL;
|
||||||
|
if(foo==NULL) {
|
||||||
|
printf("The foo variable is null!\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
Bad:
|
||||||
|
int *foo=0;
|
||||||
|
if(foo==0) {
|
||||||
|
printf("The foo variable is null!\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
SQL STATEMENTS:
|
SQL STATEMENTS:
|
||||||
When embedding SQL statements in code, the following guidelines should be
|
When embedding SQL statements in code, the following guidelines should be
|
||||||
followed:
|
followed:
|
||||||
|
|||||||
@@ -24838,3 +24838,5 @@
|
|||||||
of glob wildcards when in dropbox mode.
|
of glob wildcards when in dropbox mode.
|
||||||
2024-08-07 Fred Gleason <fredg@paravelsystems.com>
|
2024-08-07 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Incremented the package version to 4.3.0int2.
|
* Incremented the package version to 4.3.0int2.
|
||||||
|
2024-08-08 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Added a 'NULL POINTERS' section to 'CODINGSTYLE'.
|
||||||
|
|||||||
Reference in New Issue
Block a user