Done with this admittedly crude Coccinelle semantic patch with manual
burial of dead Error * variables squashed in:
@@
identifier FUN;
expression ERR, EC;
@@
- FUN(&ERR);
- if (ERR != NULL) {
- error_report_err(ERR);
- exit(EC);
- }
+ FUN(&error_fatal);
@@
identifier FUN;
expression ARG1, ERR, EC;
@@
- FUN(ARG1, &ERR);
- if (ERR != NULL) {
- error_report_err(ERR);
- exit(EC);
- }
+ FUN(ARG1, &error_fatal);
@@
identifier FUN;
expression ARG1, ARG2, ERR, EC;
@@
- FUN(ARG1, ARG2, &ERR);
- if (ERR != NULL) {
- error_report_err(ERR);
- exit(EC);
- }
+ FUN(ARG1, ARG2, &error_fatal);
@@
identifier FUN;
expression ARG1, ARG2, ARG3, ERR, EC;
@@
- FUN(ARG1, ARG2, ARG3, &ERR);
- if (ERR != NULL) {
- error_report_err(ERR);
- exit(EC);
- }
+ FUN(ARG1, ARG2, ARG3, &error_fatal);
@@
identifier FUN;
expression RET, ERR, EC;
@@
- RET = FUN(&ERR);
- if (ERR != NULL) {
- error_report_err(ERR);
- exit(EC);
- }
+ RET = FUN(&error_fatal);
@@
identifier FUN;
expression RET, ARG1, ERR, EC;
@@
- RET = FUN(ARG1, &ERR);
- if (ERR != NULL) {
- error_report_err(ERR);
- exit(EC);
- }
+ RET = FUN(ARG1, &error_fatal);
@@
identifier FUN;
expression RET, ARG1, ARG2, ERR, EC;
@@
- RET = FUN(ARG1, ARG2, &ERR);
- if (ERR != NULL) {
- error_report_err(ERR);
- exit(EC);
- }
+ RET = FUN(ARG1, ARG2, &error_fatal);
@@
identifier FUN;
expression RET, ARG1, ARG2, ARG3, ERR, EC;
@@
- RET = FUN(ARG1, ARG2, ARG3, &ERR);
- if (ERR != NULL) {
- error_report_err(ERR);
- exit(EC);
- }
+ RET = FUN(ARG1, ARG2, ARG3, &error_fatal);
@@
type T;
identifier FUN, RET;
expression ERR, EC;
@@
- T RET = FUN(&ERR);
- if (ERR != NULL) {
- error_report_err(ERR);
- exit(EC);
- }
+ T RET = FUN(&error_fatal);
@@
type T;
identifier FUN, RET;
expression ARG1, ERR, EC;
@@
- T RET = FUN(ARG1, &ERR);
- if (ERR != NULL) {
- error_report_err(ERR);
- exit(EC);
- }
+ T RET = FUN(ARG1, &error_fatal);
@@
type T;
identifier FUN, RET;
expression ARG1, ARG2, ERR, EC;
@@
- T RET = FUN(ARG1, ARG2, &ERR);
- if (ERR != NULL) {
- error_report_err(ERR);
- exit(EC);
- }
+ T RET = FUN(ARG1, ARG2, &error_fatal);
@@
type T;
identifier FUN, RET;
expression ARG1, ARG2, ARG3, ERR, EC;
@@
- T RET = FUN(ARG1, ARG2, ARG3, &ERR);
- if (ERR != NULL) {
- error_report_err(ERR);
- exit(EC);
- }
+ T RET = FUN(ARG1, ARG2, ARG3, &error_fatal);