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:
Fred Gleason 2024-08-08 11:00:56 -04:00
parent 8d80d0cc1b
commit a5bed2d101
2 changed files with 19 additions and 0 deletions

View File

@ -175,6 +175,23 @@ all, followed by an underscore. For example, the class 'MyClass' might use
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:
When embedding SQL statements in code, the following guidelines should be
followed:

View File

@ -24838,3 +24838,5 @@
of glob wildcards when in dropbox mode.
2024-08-07 Fred Gleason <fredg@paravelsystems.com>
* Incremented the package version to 4.3.0int2.
2024-08-08 Fred Gleason <fredg@paravelsystems.com>
* Added a 'NULL POINTERS' section to 'CODINGSTYLE'.