Thread (4 messages) flat view 4 messages, 3 authors, 2021-01-08

Re: [PATCH iproute2 v2 1/1] build: Fix link errors on some systems

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2021-01-08 16:19:12

On Fri, 8 Jan 2021 14:08:57 +0100
Petr Machata [off-list ref] wrote:
Stephen Hemminger [off-list ref] writes:
quoted
On Thu,  7 Jan 2021 09:13:34 +0200
Roi Dayan [off-list ref] wrote:
 
quoted
+#define _IS_JSON_CONTEXT(type) ((type & PRINT_JSON || type & PRINT_ANY) && is_json_context())
+#define _IS_FP_CONTEXT(type) (!is_json_context() && (type & PRINT_FP || type & PRINT_ANY))  
You could fold the comparisons? and why are the two options doing comparison in different order?

#define _IS_JSON_CONTEXT(type) (is_json_context() && (type & (PRINT_JSON | PRINT_ANY))
#define _IS_FP_CONTEXT(type)   (!is_json_context() && (type & (PRINT_FP || PRINT_ANY))  
(s/||/|/)
Agree.
This was just an email edit, never tried
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help