-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mpir_mem: simplify MPIR_CHKPMEM macros
Reduce the number of trivial parameters to make the MPIR_CHKPMEM macros easier to use and read. * Similar to what we did with MPIR_CHKLMEM_MALLOC, but we retain the class param for MPIR_CHKPMEM_MALLOC. * Rename MPIR_CHKPMEM_REGISTER to MPIR_CHKPMEM_ADD. * Always use MPIR_CHKPMEM_MAX (default to 10) slots. * Remove the type-cast since it adds no value. * Always use mpi_errno and goto fn_fail * Just use the "**nomem" message. * Most usages of MPIR_CHKPMEM_COMMIT is unnecessary before exiting. It only has effect if there are additional error checking.
- Loading branch information
Showing
41 changed files
with
234 additions
and
340 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
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
Oops, something went wrong.