aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2016-12-01 16:10:45 -0500
committerSimon Marchi <simon.marchi@ericsson.com>2016-12-01 16:10:45 -0500
commit77a179e77b38161e461f5e37512f0b3fc3582181 (patch)
tree30f3b1c6be9b3d0c8999eb87e8e0a7f33e6c225c /gdb/ChangeLog
parentSimplify ui-out level code (diff)
downloadbinutils-gdb-77a179e77b38161e461f5e37512f0b3fc3582181.tar.gz
binutils-gdb-77a179e77b38161e461f5e37512f0b3fc3582181.tar.bz2
binutils-gdb-77a179e77b38161e461f5e37512f0b3fc3582181.zip
ui_out_table: Replace boolean flag with enum
This patch is just a little cleanup, it replaces the body_flag field of ui_out_table with an enum. It expresses more explicitly the intent of the field (check that state == TABLE_STATE_HEADERS conveys more what we want to do than checking for !body_flag). New in v2: - Remove unnecessary ui_out_table_state::. gdb/ChangeLog: * ui-out.c (enum ui_out_table_state): New enum. (struct ui_out_table) <body_flag>: Remove field. <state>: New field. (ui_out_table_begin): Replace usages of body_flag with state. (ui_out_table_body): Likewise. (ui_out_table_end): Likewise. (ui_out_table_header): Likewise. (ui_out_begin): Likewise. (verify_field): Likewise. (ui_out_new): Likewise.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog13
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8112edce336..f85da1b6766 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,18 @@
2016-12-01 Simon Marchi <simon.marchi@polymtl.ca>
+ * ui-out.c (enum ui_out_table_state): New enum.
+ (struct ui_out_table) <body_flag>: Remove field.
+ <state>: New field.
+ (ui_out_table_begin): Replace usages of body_flag with state.
+ (ui_out_table_body): Likewise.
+ (ui_out_table_end): Likewise.
+ (ui_out_table_header): Likewise.
+ (ui_out_begin): Likewise.
+ (verify_field): Likewise.
+ (ui_out_new): Likewise.
+
+2016-12-01 Simon Marchi <simon.marchi@polymtl.ca>
+
* ui-out.h (ui_out_begin_ftype): Remove level parameter.
(ui_out_end_ftype): Likewise.
* ui-out.c (struct ui_out) <level>: Replace field with a method