-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow dt_cg_arglist() to handle the NULL case
Even if an argument is empty, we might want to call dt_cg_arglist() to construct a pointer to a tuple. Callers can use the following pseudo-code to accomplish this: dt_node_t noargs = { dnp->dn_ctfp, dtp->dt_type_void, }; ... if (dnp->dn_aggtup == NULL) dnp->dn_aggtup = &noargs; dt_cg_arglist(aid, dnp->dn_aggtup, dlp, drp); ... <use dnp->dn_aggtup->dn_reg> ... if (dnp->aggtup == &noargs) dnp->aggtup = NULL; ... <dnp->dn_aggtup->dn_reg is not used anympre> ... Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com> Reviewed-by: Eugene Loh <eugene.loh@oracle.com>
- Loading branch information
Showing
4 changed files
with
22 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters