summaryrefslogtreecommitdiff
path: root/libstdc++-v3/src/debug.cc
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-19 12:11:50 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-19 12:11:50 +0000
commit0d4d45dc36200b0b221e9d26211f28fbe36cebd0 (patch)
tree7af3000bc5a4af098e7b0a51525e9a5103e1b7b1 /libstdc++-v3/src/debug.cc
parent698d81ad3d737d882aab66d64cf53bf741d09546 (diff)
downloadgcc-0d4d45dc36200b0b221e9d26211f28fbe36cebd0.tar.gz
2004-01-19 Paolo Carlini <pcarlini@suse.de>
* src/debug.cc: Trivial formatting change. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76147 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/src/debug.cc')
-rw-r--r--libstdc++-v3/src/debug.cc94
1 files changed, 47 insertions, 47 deletions
diff --git a/libstdc++-v3/src/debug.cc b/libstdc++-v3/src/debug.cc
index a78bdec2df3..22791741fb6 100644
--- a/libstdc++-v3/src/debug.cc
+++ b/libstdc++-v3/src/debug.cc
@@ -585,56 +585,56 @@ namespace __gnu_debug
continue;
}
- ++__start;
- assert(*__start);
- if (*__start == '%')
- {
- _M_print_word("%");
- ++__start;
- continue;
- }
-
- // Get the parameter number
- assert(*__start >= '1' && *__start <= '9');
- size_t param = *__start - '0';
- --param;
- assert(param < _M_num_parameters);
-
- // '.' separates the parameter number from the field
- // name, if there is one.
- ++__start;
- if (*__start != '.')
- {
- assert(*__start == ';');
++__start;
- buf[0] = '\0';
- if (_M_parameters[param]._M_kind == _Parameter::__integer)
- {
- _M_format_word(buf, bufsize, "%ld",
- _M_parameters[param]._M_variant._M_integer._M_value);
- _M_print_word(buf);
- }
- else if (_M_parameters[param]._M_kind == _Parameter::__string)
- _M_print_string(_M_parameters[param]._M_variant._M_string._M_value);
- continue;
- }
-
- // Extract the field name we want
- enum { max_field_len = 16 };
- char field[max_field_len];
- int field_idx = 0;
- ++__start;
- while (*__start != ';')
- {
assert(*__start);
- assert(field_idx < max_field_len-1);
- field[field_idx++] = *__start++;
- }
- ++__start;
- field[field_idx] = 0;
+ if (*__start == '%')
+ {
+ _M_print_word("%");
+ ++__start;
+ continue;
+ }
+
+ // Get the parameter number
+ assert(*__start >= '1' && *__start <= '9');
+ size_t param = *__start - '0';
+ --param;
+ assert(param < _M_num_parameters);
- _M_parameters[param]._M_print_field(this, field);
- }
+ // '.' separates the parameter number from the field
+ // name, if there is one.
+ ++__start;
+ if (*__start != '.')
+ {
+ assert(*__start == ';');
+ ++__start;
+ buf[0] = '\0';
+ if (_M_parameters[param]._M_kind == _Parameter::__integer)
+ {
+ _M_format_word(buf, bufsize, "%ld",
+ _M_parameters[param]._M_variant._M_integer._M_value);
+ _M_print_word(buf);
+ }
+ else if (_M_parameters[param]._M_kind == _Parameter::__string)
+ _M_print_string(_M_parameters[param]._M_variant._M_string._M_value);
+ continue;
+ }
+
+ // Extract the field name we want
+ enum { max_field_len = 16 };
+ char field[max_field_len];
+ int field_idx = 0;
+ ++__start;
+ while (*__start != ';')
+ {
+ assert(*__start);
+ assert(field_idx < max_field_len-1);
+ field[field_idx++] = *__start++;
+ }
+ ++__start;
+ field[field_idx] = 0;
+
+ _M_parameters[param]._M_print_field(this, field);
+ }
}
// Instantiations.