/* Portions Copyright (C) 2001 artofcode LLC. Portions Copyright (C) 1996, 2001 Artifex Software Inc. Portions Copyright (C) 1988, 2000 Aladdin Enterprises. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of that license. Refer to licensing information at http://www.artifex.com/ or contact Artifex Software, Inc., 101 Lucas Valley Road #110, San Rafael, CA 94903, (415)492-9861, for further information. */ /*$Id: dwmain.c 11973 2010-12-22 19:16:02Z robin $ */ /* dwmain.c */ /* Windows version of the main program command-line interpreter for PCL interpreters */ #include "string_.h" #include "gdebug.h" #include "gscdefs.h" #include "gsio.h" #include "gstypes.h" #include "gserrors.h" #include "gsmemory.h" #include "plalloc.h" #include "gsmalloc.h" #include "gsmchunk.h" #include "gsstruct.h" #include "gxalloc.h" #include "gsalloc.h" #include "gsargs.h" #include "gp.h" #include "gsdevice.h" #include "gxdevice.h" #include "gsparam.h" #include "gslib.h" #include "pjtop.h" #include "plparse.h" #include "plplatf.h" #include "plmain.h" #include "pltop.h" #include "pltoputl.h" #include "plapi.h" #include "gslibctx.h" #if defined(DEBUG) && defined(ALLOW_VD_TRACE) #include "dwtrace.h" #include "vdtrace.h" #endif /* includes for Windows and the display procedures */ #include #include "dwimg.h" #include "dwres.h" /* includes for the display device */ #include "gdevdevn.h" #include "gsequivc.h" #include "gdevdsp.h" #include "gdevdsp2.h" /* Define the usage message. */ /* Copied from plmain.c */ static const char *pl_usage = "\ Usage: %s [option* file]+...\n\ Options: -dNOPAUSE -E[#] -h -L -K -l -Z...\n\ -sDEVICE= -gx -r[x] -d{First|Last}Page=<#>\n\ -sOutputFile= (-s