Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/usr.bin/xlint/lint1/lint1.h,v rcsdiff: /ftp/cvs/cvsroot/src/usr.bin/xlint/lint1/lint1.h,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.122 retrieving revision 1.123 diff -u -p -r1.122 -r1.123 --- src/usr.bin/xlint/lint1/lint1.h 2021/08/22 13:01:47 1.122 +++ src/usr.bin/xlint/lint1/lint1.h 2021/08/22 21:27:15 1.123 @@ -1,4 +1,4 @@ -/* $NetBSD: lint1.h,v 1.122 2021/08/22 13:01:47 rillig Exp $ */ +/* $NetBSD: lint1.h,v 1.123 2021/08/22 21:27:15 rillig Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -552,6 +552,12 @@ is_nonzero(const tnode_t *tn) return tn != NULL && tn->tn_op == CON && is_nonzero_val(tn->tn_val); } +static inline bool +is_binary(const tnode_t *tn) +{ + return modtab[tn->tn_op].m_binary; +} + static inline uint64_t bit(unsigned i) {