/[groff]/groff/src/libs/libdriver/input.cpp
ViewVC logotype

Diff of /groff/src/libs/libdriver/input.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by wl, Thu Dec 16 13:09:54 2004 UTC revision 1.4 by wl, Sat Jan 22 06:13:07 2005 UTC
# Line 2  Line 2 
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    
# Line 608  void delete_current_env(void) Line 608  void delete_current_env(void)
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  //////////////////////////////////////////////////////////////////////  //////////////////////////////////////////////////////////////////////
# Line 1520  parse_x_command(void) Line 1521  parse_x_command(void)
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);
# Line 1826  do_file(const char *filename) Line 1827  do_file(const char *filename)
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)

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26