[gs-devel] exit status on VMS and getting GS API working there
Forrest Cahoon
forrest.cahoon at merrillcorp.com
Fri May 3 15:52:26 PDT 2002
Duh!
To get the correct exit code on VMS, all that needs to be done is to fix
stdpre.h.
Here's a patch, that in conjunction with Russell's, makes everything work
great:
*** stdpre.h~ Thu Feb 21 16:24:54 2002
--- stdpre.h Fri May 3 17:00:49 2002
***************
*** 441,449 ****
* command line.
*/
/*#define OLD_VMS_C*/
! #if defined(VMS) && (defined(OLD_VMS_C) || !defined(__DECC))
! # define exit_OK 1
# define exit_FAILED 18
#else
# define exit_OK 0
# define exit_FAILED 1
--- 441,453 ----
* command line.
*/
/*#define OLD_VMS_C*/
! #if defined(VMS)
# define exit_FAILED 18
+ # if (defined(OLD_VMS_C) || !defined(__DECC))
+ # define exit_OK 1
+ # else
+ # define exit_OK 0
+ # endif
#else
# define exit_OK 0
# define exit_FAILED 1
Forrest Cahoon
not speaking for merrill corporation
"Russell Lang"
<gsview at ghostg To: joukj at hrem.stm.tudelft.nl (Jacob (=Jouk)
um.com.au> Jansen)
cc: gs-devel at ghostscript.com, "Forrest Cahoon"
04/25/2002 <forrest.cahoon at merrillcorp.com>
04:39 AM Subject: Re: [gs-devel] exit status on VMS and
Please respond getting GS API working there
to gsview
Jacob and Forrest,
Attached is patch to prevent gsapi_exit() from calling
exit() on VMS, and to still allow the correct return code
from main() in gs.c.
Could you please test this and let me know the results? If
the patch is correct I will submit it for official code
review.
My only concern is that it changes the default return code
from 255 to exit_FAILED. This default is rarely used, but
it may be returned from "gs -h".
Russell Lang gsview at ghostgum.com.au
Ghostgum Software Pty Ltd http://www.ghostgum.com.au/
More information about the gs-devel
mailing list