1 # $NetBSD: cond-token-number.mk,v 1.5 2020/11/15 14:58:14 rillig Exp $
3 # Tests for number tokens in .if conditions.
5 # TODO: Add introduction.
11 # Even though -0 is a number and would be accepted by strtod, it is not
12 # accepted by the condition parser.
14 # See the ch_isdigit call in CondParser_String.
21 # Even though +0 is a number and would be accepted by strtod, it is not
22 # accepted by the condition parser.
24 # See the ch_isdigit call in CondParser_String.
31 # Even though -1 is a number and would be accepted by strtod, it is not
32 # accepted by the condition parser.
34 # See the ch_isdigit call in CondParser_String.
41 # Even though +1 is a number and would be accepted by strtod, it is not
42 # accepted by the condition parser.
44 # See the ch_isdigit call in CondParser_String.
51 # When the number comes from a variable expression though, it may be signed.
52 # XXX: This is inconsistent.
57 # When the number comes from a variable expression though, it may be signed.
58 # XXX: This is inconsistent.
63 # Hexadecimal numbers are accepted.
72 # This is not a hexadecimal number, even though it has an x.
73 # It is interpreted as a string instead, effectively meaning defined(3x4).
79 # Ensure that parsing continues until here.
80 .info End of the tests.