Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
e004bc16
Commit
e004bc16
authored
May 04, 2012
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: clarify check for NULL pointer style
Our code should be terse and clear.
parent
fb5c1aae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
developer.texi
doc/developer.texi
+4
-0
No files found.
doc/developer.texi
View file @
e004bc16
...
...
@@ -73,6 +73,10 @@ const char *avfilter_configuration(void)
@
}
@end example
@item
Do not check for NULL values by comparison, @samp
{
if (p)
}
and
@samp
{
if (!p)
}
are correct; @samp
{
if (p == NULL)
}
and @samp
{
if (p != NULL)
}
are not.
@item
In case of a single-statement if, no curly braces are required:
@example
if (!pic || !picref)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment