[PPL-devel] [GIT] ppl/ppl(master): Add braces.
Roberto Bagnara
roberto.bagnara at bugseng.com
Wed Aug 5 21:36:48 CEST 2020
Module: ppl/ppl
Branch: master
Commit: 71de0f2fc94ccf26026fe901a2ee574d71b686f0
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=71de0f2fc94ccf26026fe901a2ee574d71b686f0
Author: Roberto Bagnara <roberto.bagnara at bugseng.com>
Date: Wed Aug 5 21:36:21 2020 +0200
Add braces.
---
interfaces/C/ppl_c_implementation_common.cc | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/interfaces/C/ppl_c_implementation_common.cc b/interfaces/C/ppl_c_implementation_common.cc
index 4eee51add..fe95e8c8a 100644
--- a/interfaces/C/ppl_c_implementation_common.cc
+++ b/interfaces/C/ppl_c_implementation_common.cc
@@ -2555,8 +2555,9 @@ CATCH_ALL
int
ppl_io_print_variable(ppl_dimension_type var) try {
const char* f = c_variable_output_function(var);
- if (f == nullptr || puts(f) < 0)
+ if (f == nullptr || puts(f) < 0) {
return PPL_STDIO_ERROR;
+ }
return 0;
}
CATCH_ALL
@@ -2564,8 +2565,9 @@ CATCH_ALL
int
ppl_io_fprint_variable(FILE* stream, ppl_dimension_type var) try {
const char* f = c_variable_output_function(var);
- if (f == nullptr || fputs(f, stream) < 0)
+ if (f == nullptr || fputs(f, stream) < 0) {
return PPL_STDIO_ERROR;
+ }
return 0;
}
CATCH_ALL
@@ -2573,8 +2575,9 @@ CATCH_ALL
int
ppl_io_asprint_variable(char** strp, ppl_dimension_type var) try {
const char* f = c_variable_output_function(var);
- if (f == nullptr)
+ if (f == nullptr) {
return PPL_STDIO_ERROR;
+ }
*strp = strdup(f);
if (*strp == nullptr) {
return PPL_ERROR_OUT_OF_MEMORY;
More information about the PPL-devel
mailing list