Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zmap
Commits
02a38e25
Commit
02a38e25
authored
15 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
add comments about return value declaration.
parent
98ad7e8d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
web/dev/coding_notes.html
+23
-0
23 additions, 0 deletions
web/dev/coding_notes.html
with
23 additions
and
0 deletions
web/dev/coding_notes.html
+
23
−
0
View file @
02a38e25
...
...
@@ -96,6 +96,29 @@ functions and static functions:</p>
</ul>
<h3>
Function return values
</h3>
<P>
By convention the first local variable declared in a function should be the return value
which should be correctly initialised:
</p>
<pre><code>
gboolean someFunc(void)
{
gboolean result = FALSE ;
return result ;
}
</code></pre>
<p>
This helps a lot with scanning the code.
</p>
<h3>
Error handling vs. use of zMapAssert()
</h3>
<p>
A standard way to test that program state is as you expect while debugging
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment