diff options
author | wlemb <wlemb> | 2004-02-29 00:07:06 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2004-02-29 00:07:06 +0000 |
commit | cf49e6d5f5c047f7c37c7fb09e3a06a5adbb696e (patch) | |
tree | a03f65f4af4967e7217a31a6ea3226f2a51582c2 /src/libs/libgroff/spawnvp.c | |
parent | cf22bfa85b2e85b72bc2de8dc3353f7cec1e3828 (diff) | |
download | groff-cf49e6d5f5c047f7c37c7fb09e3a06a5adbb696e.tar.gz |
* src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
New macros.
* src/roff/groff/pipeline.c: Declare strcasecmp.
(run_pipeline) [_WIN32]: Use function name variants which don't
start with `_'.
Fix stream handling.
* src/include/nonposix.h: Fix declaration of `system_shell_name'.
Declare `spawnvp_wrapper' and macro definitions of spawnvp only
for platforms which use the native Win32 runtime libraries.
(FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
* src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
QUOTE_ARG_REALLOC_ERROR): Fix string.
* src/preproc/html/pre-html.cpp: Remove declaration of
`spawnvp_wrapper'.
Don't use __MINGW32__.
s/DEBUG_FILE/DEBUG_FILE_DIR/.
(DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
(OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
(char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
calls to `set_redirection' and `WAIT'.
[MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
Fix calls to `set_redirection' and `save_and_redirect'.
(char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
to `set_redirection' and `save_and_redirect'.
(usage): Fix message.
(makeTempFiles, main): Use `DEBUG_FILE'.
Diffstat (limited to 'src/libs/libgroff/spawnvp.c')
-rw-r--r-- | src/libs/libgroff/spawnvp.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libs/libgroff/spawnvp.c b/src/libs/libgroff/spawnvp.c index 3022fdbd..e185ec30 100644 --- a/src/libs/libgroff/spawnvp.c +++ b/src/libs/libgroff/spawnvp.c @@ -29,12 +29,12 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ # include <process.h> #endif -#define SPAWNVP_C 1 +#define SPAWN_FUNCTION_WRAPPERS 1 /* Define the default mechanism, and messages, for error reporting * (user may substitute a preferred alternative, by defining his own - * implementation of the macros REPORT_ERROR, QUOTE_ARG_MALLOC_FAILED - * and QUOTE_ARG_REALLOC_FAILED, in a header file called 'nonposix.h'). + * implementation of the macros REPORT_ERROR and ARGV_MALLOC_ERROR, + * in the header file `nonposix.h'). */ #include "nonposix.h" @@ -42,8 +42,8 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef REPORT_ERROR # define REPORT_ERROR(WHY) fprintf(stderr, "%s:%s\n", program_name, WHY) #endif -#ifndef SPAWNVP_MALLOC_ERROR -# define SPAWNVP_MALLOC_ERROR "malloc:allocation for 'argv' failed" +#ifndef ARGV_MALLOC_ERROR +# define ARGV_MALLOC_ERROR "malloc: Allocation for 'argv' failed" #endif extern char *program_name; @@ -84,12 +84,12 @@ spawnvp_wrapper(int mode, char *path, char **argv) /* If we didn't get enough space, * then complain, and bail out gracefully. */ - REPORT_ERROR(SPAWNVP_MALLOC_ERROR); + REPORT_ERROR(ARGV_MALLOC_ERROR); exit(1); } /* Now copy the passed `argv' into our new vector, - * quoting it contents as required. */ + * quoting its contents as required. */ for (i = 0; i < argc; i++) quoted_argv[i] = quote_arg(argv[i]); |