diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-02-02 10:28:51 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-02-02 10:28:51 +0000 |
commit | 93426174ef725b5f1ca71aca87e678feee8807cc (patch) | |
tree | bd35b0fe3c687155d3553e5f21454581459c42c5 /print.h | |
parent | 26c2759ebc8c83676acaaaeabfd836a7f0144ce4 (diff) |
Writing the raw data of a TCP stream to a file isn't printing it, so
don't use the print mechanism for that - do the writing directly in the
"follow stream" code.
Use "size_t" for character counts.
Make the "hexchars" array static and const, as it's not written to, and
there's probably no point in copying it to the stack (unless that
improves cache locality).
There's no need to explain why we're subtracting the number of bytes
actually read, rather than the number of bytes asked for, from the data
length.
Note an issue with printing lines.
svn path=/trunk/; revision=13240
Diffstat (limited to 'print.h')
-rw-r--r-- | print.h | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -41,8 +41,6 @@ typedef struct print_stream_ops { gboolean (*print_preamble)(struct print_stream *self, gchar *filename); gboolean (*print_line)(struct print_stream *self, int indent, const char *line); - gboolean (*print_raw)(struct print_stream *self, - const unsigned char *buf, int len); gboolean (*print_bookmark)(struct print_stream *self, const gchar *name, const gchar *title); gboolean (*new_page)(struct print_stream *self); @@ -62,7 +60,6 @@ extern print_stream_t *print_stream_ps_stdio_new(FILE *fh); extern gboolean print_preamble(print_stream_t *self, gchar *filename); extern gboolean print_line(print_stream_t *self, int indent, const char *line); -extern gboolean print_raw(print_stream_t *self, const unsigned char *buf, int len); extern gboolean print_bookmark(print_stream_t *self, const gchar *name, const gchar *title); extern gboolean new_page(print_stream_t *self); |