diff options
author | Per Bothner <per@bothner.com> | 1994-09-16 07:35:27 +0000 |
---|---|---|
committer | Per Bothner <per@bothner.com> | 1994-09-16 07:35:27 +0000 |
commit | ddf54546c961930d2e4fb9c70ec2da94d82ccff4 (patch) | |
tree | ec8e2fd7e3210121fbae867355b3ec00b48f7ca2 /gdb | |
parent | 576f97700b15b15f404fee452f862b1949cb30de (diff) | |
download | gdb-ddf54546c961930d2e4fb9c70ec2da94d82ccff4.zip gdb-ddf54546c961930d2e4fb9c70ec2da94d82ccff4.tar.gz gdb-ddf54546c961930d2e4fb9c70ec2da94d82ccff4.tar.bz2 |
* parser-defs.h: Add comment about unary postfix operators.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/parser-defs.h | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 27a8e6c..398bd4c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -7,7 +7,8 @@ Fri Sep 16 00:14:40 1994 Per Bothner (bothner@kalessin.cygnus.com) * ch-exp.y: Get rid of some extra non-terminals, and move their rules into primitive_value. - * ch-lang.c (chill_op_print_tab): Add '->'. + * parser-defs.h: Add comment about unary postfix operators. + * ch-lang.c (chill_op_print_tab): Add '->', postfix and prefix. * expprint.c (print_subexp): Recognize unary postfix operator. Wed Sep 14 18:27:42 1994 Jason Molenda (crash@phydeaux.cygnus.com) diff --git a/gdb/parser-defs.h b/gdb/parser-defs.h index fd03a6e..f294402 100644 --- a/gdb/parser-defs.h +++ b/gdb/parser-defs.h @@ -180,6 +180,9 @@ struct op_print enum exp_opcode opcode; /* Precedence of operator. These values are used only by comparisons. */ enum precedence precedence; + + /* For a binary operator: 1 iff right associate. + For a unary operator: 1 iff postfix. */ int right_assoc; }; |