comparison 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
comparison
equal deleted inserted replaced
1399:7dfa34e4de15 1400:67573155210c
32 #define EDITOR_ERROR_STATUS 0x00400000 32 #define EDITOR_ERROR_STATUS 0x00400000
33 #define EDITOR_ERROR_SKIPPED 0x00800000 33 #define EDITOR_ERROR_SKIPPED 0x00800000
34 34
35 #define EDITOR_ERROR_MASK 0xffff0000 35 #define EDITOR_ERROR_MASK 0xffff0000
36 36
37 #define EDITOR_ERRORS(flags) ((flags) & EDITOR_ERROR_MASK)
38 #define EDITOR_ERRORS_BUT_SKIPPED(flags) (((flags) & EDITOR_ERROR_MASK) && !((flags) & EDITOR_ERROR_SKIPPED))
37 39
38 /* return values from callback function */ 40 /* return values from callback function */
39 enum { 41 enum {
40 EDITOR_CB_CONTINUE = 0, /* continue multiple editor execution on remaining files*/ 42 EDITOR_CB_CONTINUE = 0, /* continue multiple editor execution on remaining files*/
41 EDITOR_CB_SKIP, /* skip the remaining files */ 43 EDITOR_CB_SKIP, /* skip the remaining files */