2 |
|
|
3 |
// <groff_src_dir>/src/libs/libdriver/input.cpp |
// <groff_src_dir>/src/libs/libdriver/input.cpp |
4 |
|
|
5 |
/* Copyright (C) 1989, 1990, 1991, 1992, 2001, 2002, 2003, 2004 |
/* Copyright (C) 1989, 1990, 1991, 1992, 2001, 2002, 2003, 2004, 2005 |
6 |
Free Software Foundation, Inc. |
Free Software Foundation, Inc. |
7 |
|
|
8 |
Written by James Clark (jjc@jclark.com) |
Written by James Clark (jjc@jclark.com) |
9 |
Major rewrite 2001 by Bernd Warken (bwarken@mayn.de) |
Major rewrite 2001 by Bernd Warken (bwarken@mayn.de) |
10 |
|
|
11 |
Last update: 15 Dec 2004 |
Last update: 21 Jan 2005 |
12 |
|
|
13 |
This file is part of groff, the GNU roff text processing system. |
This file is part of groff, the GNU roff text processing system. |
14 |
|
|
608 |
delete current_env->col; |
delete current_env->col; |
609 |
delete current_env->fill; |
delete current_env->fill; |
610 |
delete current_env; |
delete current_env; |
611 |
|
current_env = 0; |
612 |
} |
} |
613 |
|
|
614 |
////////////////////////////////////////////////////////////////////// |
////////////////////////////////////////////////////////////////////// |
1521 |
char *str_arg = get_extended_arg(); // includes line skip |
char *str_arg = get_extended_arg(); // includes line skip |
1522 |
if (npages <= 0) |
if (npages <= 0) |
1523 |
error("`x X' command invalid before first `p' command"); |
error("`x X' command invalid before first `p' command"); |
1524 |
else if (str_arg != NULL && (strncmp(str_arg, "devtag:", |
else if (str_arg && (strncmp(str_arg, "devtag:", |
1525 |
strlen("devtag:")) == 0)) |
strlen("devtag:")) == 0)) |
1526 |
pr->devtag(str_arg, current_env); |
pr->devtag(str_arg, current_env); |
1527 |
else |
else |
1528 |
pr->special(str_arg, current_env); |
pr->special(str_arg, current_env); |
1827 |
if (npages > 0) |
if (npages > 0) |
1828 |
pr->end_page(current_env->vpos); |
pr->end_page(current_env->vpos); |
1829 |
delete pr; |
delete pr; |
1830 |
|
pr = 0; |
1831 |
fclose(current_file); |
fclose(current_file); |
1832 |
// If `stopped' is not `true' here then there wasn't any `x stop'. |
// If `stopped' is not `true' here then there wasn't any `x stop'. |
1833 |
if (!stopped) |
if (!stopped) |