diff options
Diffstat (limited to 'gdb/ui-file.h')
-rw-r--r-- | gdb/ui-file.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gdb/ui-file.h b/gdb/ui-file.h index 7c7b00d..3df9f93 100644 --- a/gdb/ui-file.h +++ b/gdb/ui-file.h @@ -107,6 +107,23 @@ public: return false; } + /* Indicate that if the next sequence of characters overflows the + line, a newline should be inserted here rather than when it hits + the end. If INDENT is non-zero, it is a number of spaces to be + printed to indent the wrapped part on the next line. + + If the line is already overfull, we immediately print a newline and + the indentation, and disable further wrapping. + + If we don't know the width of lines, but we know the page height, + we must not wrap words, but should still keep track of newlines + that were explicitly printed. + + This routine is guaranteed to force out any output which has been + squirreled away in the wrap_buffer, so wrap_here (0) can be + used to force out output from the wrap_buffer. */ + void wrap_here (int indent); + private: /* Helper function for putstr and putstrn. Print the character C on |