summaryrefslogtreecommitdiff
path: root/src/roff/troff/node.cpp
diff options
context:
space:
mode:
authorwl <wl>2006-04-26 07:41:33 +0000
committerwl <wl>2006-04-26 07:41:33 +0000
commite9528020816c5851858269137f2c03e25d64e42b (patch)
tree71d816753247abb5ea3ead517a7d932b64a07351 /src/roff/troff/node.cpp
parentcf3ec9f52d60771ec212fd3b367d61fae0cb5556 (diff)
downloadgroff-e9528020816c5851858269137f2c03e25d64e42b.tar.gz
Surround the (pseudo) file name for the .pso request with `<' and
`>'. * src/roff/troff/node.cpp (real_output_file, troff_output_file): Add second parameter to `really_put_filename' and `put_filename'. (troff_output_file::really_put_filename): Emit `<' and `>' around filename if second argument is set. * src/roff/troff/node.h: Updated. * src/roff/troff/input.cpp (file_iterator::file_iterator, file_iterator::set_location): Update to changes in node.cpp.
Diffstat (limited to 'src/roff/troff/node.cpp')
-rw-r--r--src/roff/troff/node.cpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp
index 069cda5a..a84bbb50 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -694,7 +694,7 @@ class real_output_file : public output_file {
vunits before, vunits after, hunits width) = 0;
virtual void really_begin_page(int pageno, vunits page_length) = 0;
virtual void really_copy_file(hunits x, vunits y, const char *filename);
- virtual void really_put_filename(const char *filename);
+ virtual void really_put_filename(const char *, int);
virtual void really_on();
virtual void really_off();
public:
@@ -705,7 +705,7 @@ public:
void transparent_char(unsigned char);
void print_line(hunits x, vunits y, node *n, vunits before, vunits after, hunits width);
void begin_page(int pageno, vunits page_length);
- void put_filename(const char *filename);
+ void put_filename(const char *, int);
void on();
void off();
int is_on();
@@ -794,7 +794,7 @@ public:
void really_print_line(hunits x, vunits y, node *n, vunits before, vunits after, hunits width);
void really_begin_page(int pageno, vunits page_length);
void really_copy_file(hunits x, vunits y, const char *filename);
- void really_put_filename(const char *filename);
+ void really_put_filename(const char *, int);
void really_on();
void really_off();
void draw(char, hvpair *, int, font_size, color *, color *);
@@ -1470,11 +1470,15 @@ void troff_output_file::really_off()
flush_tbuf();
}
-void troff_output_file::really_put_filename(const char *filename)
+void troff_output_file::really_put_filename(const char *filename, int po)
{
flush_tbuf();
put("F ");
+ if (po)
+ put("<");
put(filename);
+ if (po)
+ put(">");
put('\n');
}
@@ -1588,7 +1592,7 @@ void output_file::trailer(vunits)
{
}
-void output_file::put_filename(const char *)
+void output_file::put_filename(const char *, int)
{
}
@@ -1694,12 +1698,12 @@ void real_output_file::really_copy_file(hunits, vunits, const char *)
// do nothing
}
-void real_output_file::put_filename(const char *filename)
+void real_output_file::put_filename(const char *filename, int po)
{
- really_put_filename(filename);
+ really_put_filename(filename, po);
}
-void real_output_file::really_put_filename(const char *)
+void real_output_file::really_put_filename(const char *, int)
{
}