bc.h (d101cdd6edd782f6ec56eef63ed91abd77a8b317) | bc.h (f4fbc49d201f81c481a33fac6ba28e19faf96260) |
---|---|
1/* 2 * ***************************************************************************** 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 * 6 * Copyright (c) 2018-2023 Gavin D. Howard and contributors. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 262 unchanged lines hidden (view full) --- 271 (UINTMAX_C(e7) << 1) | (UINTMAX_C(e8) << 0)) 272 273/** 274 * Returns true if token @a i is a token that belongs in an expression. 275 * @param i The token to test. 276 * @return True if i is an expression token, false otherwise. 277 */ 278#define BC_PARSE_EXPR(i) \ | 1/* 2 * ***************************************************************************** 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 * 6 * Copyright (c) 2018-2023 Gavin D. Howard and contributors. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 262 unchanged lines hidden (view full) --- 271 (UINTMAX_C(e7) << 1) | (UINTMAX_C(e8) << 0)) 272 273/** 274 * Returns true if token @a i is a token that belongs in an expression. 275 * @param i The token to test. 276 * @return True if i is an expression token, false otherwise. 277 */ 278#define BC_PARSE_EXPR(i) \ |
279 (bc_parse_exprs[(((i) & (uchar) ~(0x07)) >> 3)] & (1 << (7 - ((i) &0x07)))) | 279 (bc_parse_exprs[(((i) & (uchar) ~(0x07)) >> 3)] & (1 << (7 - ((i) & 0x07)))) |
280 281/** 282 * Returns the operator (by lex token) that is at the top of the operator 283 * stack. 284 * @param p The parser. 285 * @return The operator that is at the top of the operator stack, as a lex 286 * token. 287 */ --- 189 unchanged lines hidden --- | 280 281/** 282 * Returns the operator (by lex token) that is at the top of the operator 283 * stack. 284 * @param p The parser. 285 * @return The operator that is at the top of the operator stack, as a lex 286 * token. 287 */ --- 189 unchanged lines hidden --- |