aboutsummaryrefslogtreecommitdiffstats
path: root/rdps.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-06-29 09:45:06 +0000
committerGuy Harris <guy@alum.mit.edu>2002-06-29 09:45:06 +0000
commit7dc9756921325232a4eb99837bebbdfa4cd2689d (patch)
treeaa8897ea19a81bdeee140299bffdbd5e5733990c /rdps.c
parent6b2bdd3a6ef97b19ac83e816c38da0fd36cf213f (diff)
Have "print_line()" take an indentation argument, and do blank
padding when printing text and use "putline" when printing PostScript. Eliminate "hexdump", as it's just a special case of "putline". Have "proto_tree_print_node()" just call "print_line()". Get rid of "print_ps_hex()" - the font used for the hex dump and the protocol tree are the same, so there's no need to switch fonts. svn path=/trunk/; revision=5798
Diffstat (limited to 'rdps.c')
-rw-r--r--rdps.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/rdps.c b/rdps.c
index 6df44a9324..02c17f432a 100644
--- a/rdps.c
+++ b/rdps.c
@@ -1,11 +1,9 @@
/* rdps.c
*
- *
- * $Id: rdps.c,v 1.3 1999/07/21 17:40:34 gram Exp $
+ * $Id: rdps.c,v 1.4 2002/06/29 09:45:06 guy Exp $
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
- *
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -24,9 +22,8 @@
/* takes the file listed as the first argument and creates the file listed
as the second argument. It takes a PostScript file and creates a C program
-with 3 functions:
+with 2 functions:
print_ps_preamble()
- print_ps_hex()
print_ps_finale()
*/
@@ -83,11 +80,6 @@ int main(int argc, char **argv)
start_code(output, "preamble");
continue;
}
- else if (strcmp(buf, "% ---- ethereal hex start ---- %\n") == 0) {
- state = hex;
- start_code(output, "hex");
- continue;
- }
else if (strcmp(buf, "% ---- ethereal finale start ---- %\n") == 0) {
state = finale;
start_code(output, "finale");