Mercurial > geeqie.yaz
diff src/editors.h @ 1400:67573155210c
Add helper macros EDITOR_ERRORS() and EDITOR_ERRORS_BUT_SKIPPED() to clean up the code a bit. Minor tidy up.
author | zas_ |
---|---|
date | Sun, 08 Mar 2009 15:30:15 +0000 |
parents | a0bd58a6535f |
children | 03384485676d |
line wrap: on
line diff
--- a/src/editors.h Sun Mar 08 15:02:18 2009 +0000 +++ b/src/editors.h Sun Mar 08 15:30:15 2009 +0000 @@ -34,6 +34,8 @@ #define EDITOR_ERROR_MASK 0xffff0000 +#define EDITOR_ERRORS(flags) ((flags) & EDITOR_ERROR_MASK) +#define EDITOR_ERRORS_BUT_SKIPPED(flags) (((flags) & EDITOR_ERROR_MASK) && !((flags) & EDITOR_ERROR_SKIPPED)) /* return values from callback function */ enum {