nroff applet

Ralf Friedl Ralf.Friedl at online.de
Tue Jul 29 11:20:41 UTC 2008


Ivana Varekova wrote:
> #define ADD(x, y) ((x&y)?x : x + y)
>   
 From your usage it seems that you want this to mean "OR"

#define OR(x, y) ((x) | (y))

or just omit the define and use the operator directly

+		case V('S', 'H'):
+			f->flags |= FLAG_break;
+			f->flags |= FLAG_bold;
+			f->flags |= FLAG_ind_reset;
+			f->flags |= FLAG_skip;
+			f->flags |= FLAG_cont;


or shorter:

+		case V('S', 'H'):
+			f->flags |= FLAG_break | FLAG_bold | FLAG_ind_reset | FLAG_skip | FLAG_cont;

Regards
Ralf Friedl



More information about the busybox mailing list