Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
fc339122
Commit
fc339122
authored
Jun 19, 2020
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tal: document tal_steal(ctx, NULL) as OK.
Signed-off-by:
Rusty Russell
<
rusty@rustcorp.com.au
>
parent
57a1b0f3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ccan/tal/tal.h
ccan/tal/tal.h
+3
-2
No files found.
ccan/tal/tal.h
View file @
fc339122
...
@@ -131,10 +131,11 @@ void *tal_free(const tal_t *p);
...
@@ -131,10 +131,11 @@ void *tal_free(const tal_t *p);
/**
/**
* tal_steal - change the parent of a tal-allocated pointer.
* tal_steal - change the parent of a tal-allocated pointer.
* @ctx: The new parent.
* @ctx: The new parent.
* @ptr: The tal allocated object to move.
* @ptr: The tal allocated object to move
, or NULL
.
*
*
* This may need to perform an allocation, in which case it may fail; thus
* This may need to perform an allocation, in which case it may fail; thus
* it can return NULL, otherwise returns @ptr.
* it can return NULL, otherwise returns @ptr. If @ptr is NULL, this function does
* nothing.
*/
*/
#if HAVE_STATEMENT_EXPR
#if HAVE_STATEMENT_EXPR
/* Weird macro avoids gcc's 'warning: value computed is not used'. */
/* Weird macro avoids gcc's 'warning: value computed is not used'. */
...
...
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