From 913c1d9a7940002d185a11d0eb0a759cc863e208 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Sat, 27 Aug 2022 12:38:00 +0300 Subject: constants: drop macro for error handling This is last patch on the way to get rid of errprint_*() macros and handle errors by yourself. For more context see other patches under the same topic specified below. TOPIC=drop_errprint --- src/constants.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src') diff --git a/src/constants.h b/src/constants.h index 6501f3c..cdc0464 100644 --- a/src/constants.h +++ b/src/constants.h @@ -26,18 +26,6 @@ #define GPGKEY_FILE ".gpg-key" #define STD_TEXT_EDITOR "vi" -#define errprint_r(RET, ...) \ - do { \ - fprintf(stderr, "Error: " __VA_ARGS__); \ - return RET; \ - } while(0) - -#define errprint_ptr(PTR, RETVAL, ...) \ - do { \ - fprintf(stderr, "Error: " __VA_ARGS__); \ - *PTR = RETVAL; \ - } while(0) - #ifdef DEBUG #define dbgprint(...) fprintf(stderr, "Debug: " __VA_ARGS__) #else -- cgit v1.2.3-18-g5258