X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput.c;h=ba620e061314f493f5138a6add50117405345ce4;hb=25f3bb47d1dab6a32c0ba30db8583413dd17d93b;hp=f318cb86d72bca8f948dab87728c90fc63cf4b0b;hpb=ad5de775736ca47cc973cef22b5046f167385354;p=pspp diff --git a/src/output.c b/src/output.c index f318cb86d7..ba620e0613 100644 --- a/src/output.c +++ b/src/output.c @@ -14,8 +14,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ #include #include "output.h" @@ -25,7 +25,6 @@ #include #include #include "alloc.h" -#include "devind.h" #include "error.h" #include "filename.h" #include "htmlP.h" @@ -34,6 +33,9 @@ #include "settings.h" #include "str.h" +#include "gettext.h" +#define _(msgid) gettext (msgid) + /* FIXME? Should the output configuration format be changed to drivername:classname:devicetype:options, where devicetype is zero or more of screen, printer, listing? */ @@ -228,7 +230,6 @@ outp_init (void) extern struct outp_class epsf_class; #endif extern struct outp_class html_class; - extern struct outp_class devind_class; char def[] = "default"; @@ -239,7 +240,6 @@ outp_init (void) add_class (&epsf_class); add_class (&postscript_class); #endif - add_class (&devind_class); add_class (&ascii_class); add_name (def, &def[strlen (def)], OUTP_S_INIT_FILE); @@ -292,8 +292,8 @@ outp_read_devices (void) if (init_fn == NULL) { - msg (IE, _("Cannot find output initialization file. Use `-vv' to view " - "search path.")); + msg (IE, _("Cannot find output initialization file. " + "Use `-vvvvv' to view search path.")); goto exit; } @@ -455,8 +455,13 @@ outp_done (void) free(n); n = next; } + outp_class_list = NULL; + free (outp_title); + outp_title = NULL; + free (outp_subtitle); + outp_subtitle = NULL; return 1; } @@ -903,7 +908,7 @@ outp_match_keyword (const char *s, struct outp_option *tab, *++cp = 0; info->initial = xstrdup (s); - info->options = xmalloc (sizeof *info->options * (cp - s)); + info->options = xnmalloc (cp - s, sizeof *info->options); memcpy (info->options, ptr, sizeof *info->options * (cp - s)); }