From ddf54546c961930d2e4fb9c70ec2da94d82ccff4 Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Fri, 16 Sep 1994 07:35:27 +0000 Subject: [PATCH] * parser-defs.h: Add comment about unary postfix operators. --- gdb/ChangeLog | 3 ++- gdb/parser-defs.h | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 27a8e6c7da5..398bd4c4e46 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 fd03a6e0649..f2944027aeb 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; }; -- 2.30.2