summaryrefslogtreecommitdiff
path: root/05/parse.b
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-01-27 18:52:39 -0500
committerpommicket <pommicket@gmail.com>2022-01-27 18:52:39 -0500
commit01b8a4d728cb714e734ce308324757bfa07f02cf (patch)
tree89eee677fdf0a845fcbd1a631b8ba0ed5d321d06 /05/parse.b
parentb5a498aa524a8ce450f6ee7120409acd2ddcf6be (diff)
switch to using mmap for output file
Diffstat (limited to '05/parse.b')
-rw-r--r--05/parse.b11
1 files changed, 1 insertions, 10 deletions
diff --git a/05/parse.b b/05/parse.b
index 91b0d74..48a5256 100644
--- a/05/parse.b
+++ b/05/parse.b
@@ -1500,7 +1500,7 @@ function type_sizeof
if c == TYPE_ARRAY goto sizeof_array
if c == TYPE_STRUCT goto sizeof_struct
- fputs(2, .str_sizeof_bad) ; @TODO
+ fputs(2, .str_sizeof_bad)
exit(1)
:str_sizeof_bad
string type_sizeof bad type.
@@ -1621,7 +1621,6 @@ function evaluate_constant_expression
c = *1expr
if c == EXPRESSION_CONSTANT_INT goto eval_constant_int
- if c == EXPRESSION_IDENTIFIER goto eval_constant_identifier
if c == EXPRESSION_UNARY_PLUS goto eval_unary_plus
if c == EXPRESSION_UNARY_MINUS goto eval_unary_minus
if c == EXPRESSION_BITWISE_NOT goto eval_bitwise_not
@@ -1666,14 +1665,6 @@ function evaluate_constant_expression
:str_eval_cast_bad_type
string Bad type for constant cast (note: floating-point casts are not supported even though they are standard).
byte 0
- :eval_constant_identifier
- ; @TODO: enum values
- fputs(2, .str_constant_identifier)
- exit(1)
- :str_constant_identifier
- string Constant identifiers not handled (see @TODO).
- byte 10
- byte 0
:eval_constant_int
expr += 8
*8p_value = *8expr