/[groff]/groff/src/devices/grohtml/output.cpp
ViewVC logotype

Diff of /groff/src/devices/grohtml/output.cpp

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

revision 1.2 by wl, Tue Oct 12 21:39:31 2004 UTC revision 1.3 by wl, Tue May 3 10:05:32 2005 UTC
# Line 1  Line 1 
1  // -*- C++ -*-  // -*- C++ -*-
2  /* Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.  /* Copyright (C) 2000, 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
3   *   *
4   *  Gaius Mulley (gaius@glam.ac.uk) wrote output.cpp   *  Gaius Mulley (gaius@glam.ac.uk) wrote output.cpp
5   *  but it owes a huge amount of ideas and raw code from   *  but it owes a huge amount of ideas and raw code from
# Line 67  Foundation, 59 Temple Place - Suite 330, Line 67  Foundation, 59 Temple Place - Suite 330,
67  word::word (const char *w, int n)  word::word (const char *w, int n)
68    : next(0)    : next(0)
69  {  {
70    s = (char *)malloc(n+1);    s = new char[n+1];
71    strncpy(s, w, n);    strncpy(s, w, n);
72    s[n] = (char)0;    s[n] = (char)0;
73  }  }
# Line 78  word::word (const char *w, int n) Line 78  word::word (const char *w, int n)
78    
79  word::~word ()  word::~word ()
80  {  {
81    free(s);    a_delete s;
82  }  }
83    
84  /*  /*

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

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