aboutsummaryrefslogtreecommitdiff
path: root/gdb/expression.h
diff options
context:
space:
mode:
authorPaul N. Hilfinger <hilfinger@adacore.com>2003-09-24 08:29:42 +0000
committerPaul N. Hilfinger <hilfinger@adacore.com>2003-09-24 08:29:42 +0000
commit24daaebce8a29b276319001e01a278bb388cfa06 (patch)
tree7f3f72b67a280de7ae5ea093de5a3db18ede1453 /gdb/expression.h
parentd38eb334b68b539208df5647c1b2990e8b1a8cc3 (diff)
downloadgdb-24daaebce8a29b276319001e01a278bb388cfa06.zip
gdb-24daaebce8a29b276319001e01a278bb388cfa06.tar.gz
gdb-24daaebce8a29b276319001e01a278bb388cfa06.tar.bz2
* parser-defs.h (operator_length): Declare.
* parse.c (length_of_subexp): Use operator_length to get operator lengths and arities for operators. Move most code to new operator_length function. (operator_length): New function absorbing most code from length_of_subexp. (prefixify_subexp): Remove large case and use operator_length instead. (parse_exp_1): Use renamings: dump_prefix_expression => dump_raw_expression and dump_postfix_expression => dump_prefix_expression. * expression.h (dump_prefix_expression): Rename to ... (dump_raw_expression): New name. (dump_postfix_expression): Rename to ... (dump_prefix_expression): New name. * expprint.c (dump_subexp): Make global. Add comment. Move most existing code to dump_subexp_body. (dump_subexp_body): New function. (dump_prefix_expression): Rename to dump_raw_expression. Remove attempt to print the expression via print_expression: it can't work before the expression is prefixified. (dump_raw_expression): Renamed from dump_prefix_expression. (dump_postfix_expression): Rename to dump_prefix_expression, since that's what it does. Remove 'note' parameter, since this routine must be used on prefixified expression. (dump_prefix_expression): Renamed from dump_postfix_expression.
Diffstat (limited to 'gdb/expression.h')
-rw-r--r--gdb/expression.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/expression.h b/gdb/expression.h
index da95fcb..356725e 100644
--- a/gdb/expression.h
+++ b/gdb/expression.h
@@ -393,11 +393,7 @@ extern void print_expression (struct expression *, struct ui_file *);
extern char *op_string (enum exp_opcode);
-extern void dump_prefix_expression (struct expression *,
- struct ui_file *,
- char *);
-extern void dump_postfix_expression (struct expression *,
- struct ui_file *,
- char *);
+extern void dump_raw_expression (struct expression *, struct ui_file *, char *);
+extern void dump_prefix_expression (struct expression *, struct ui_file *);
#endif /* !defined (EXPRESSION_H) */