summaryrefslogtreecommitdiff
path: root/src/include/error.h
diff options
context:
space:
mode:
authorWerner LEMBERG <wl@gnu.org>2004-02-22 09:00:35 +0000
committerWerner LEMBERG <wl@gnu.org>2004-02-22 09:00:35 +0000
commit7826478ee049cdb018360d9b9be5341adfdee1d9 (patch)
tree6b5fe4e5429278718042556dd64e6c2c6836ae1a /src/include/error.h
parentd47a56ef354bffc42ad4b236c6a81146f2856a0d (diff)
downloadgroff-git-7826478ee049cdb018360d9b9be5341adfdee1d9.tar.gz
* src/libs/libgroff/quotearg.c: New file, providing proper argument
quoting for MSVC's spawn* and exec* functions. * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around spawnvp with proper quoting for MSVC. * src/libs/libgroff/assert.cpp (program_name), src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'. * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated. * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'. * src/include/error.h (program_name): Declare as `extern "C"'. * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp. * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare spawnvp_wrapper. [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
Diffstat (limited to 'src/include/error.h')
-rw-r--r--src/include/error.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/error.h b/src/include/error.h
index e227682bf..6910e5505 100644
--- a/src/include/error.h
+++ b/src/include/error.h
@@ -1,5 +1,6 @@
// -*- C++ -*-
-/* Copyright (C) 1989, 1990, 1991, 1992, 2003 Free Software Foundation, Inc.
+/* Copyright (C) 1989, 1990, 1991, 1992, 2003, 2004
+ Free Software Foundation, Inc.
Written by James Clark (jjc@jclark.com)
This file is part of groff.
@@ -52,7 +53,7 @@ extern void warning(const char *,
const errarg &arg3 = empty_errarg);
-extern const char *program_name;
+extern "C" const char *program_name;
extern int current_lineno;
extern const char *current_filename;
extern const char *current_source_filename;