824N/A/*
824N/A * dpsprivate.h -- Private interface for the DPS client library implementation.
824N/A *
824N/A * (c) Copyright 1988-1994 Adobe Systems Incorporated.
824N/A * All rights reserved.
824N/A *
824N/A * Permission to use, copy, modify, distribute, and sublicense this software
824N/A * and its documentation for any purpose and without fee is hereby granted,
824N/A * provided that the above copyright notices appear in all copies and that
824N/A * both those copyright notices and this permission notice appear in
824N/A * supporting documentation and that the name of Adobe Systems Incorporated
824N/A * not be used in advertising or publicity pertaining to distribution of the
824N/A * software without specific, written prior permission. No trademark license
824N/A * to use the Adobe trademarks is hereby granted. If the Adobe trademark
824N/A * "Display PostScript"(tm) is used to describe this software, its
824N/A * functionality or for any other purpose, such use shall be limited to a
824N/A * statement that this software works in conjunction with the Display
824N/A * PostScript system. Proper trademark attribution to reflect Adobe's
824N/A * ownership of the trademark shall be given whenever any such reference to
824N/A * the Display PostScript system is made.
824N/A *
824N/A * ADOBE MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THE SOFTWARE FOR
824N/A * ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
824N/A * ADOBE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
824N/A * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
824N/A * NON- INFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL ADOBE BE LIABLE
824N/A * TO YOU OR ANY OTHER PARTY FOR ANY SPECIAL, INDIRECT, OR CONSEQUENTIAL
824N/A * DAMAGES OR ANY DAMAGES WHATSOEVER WHETHER IN AN ACTION OF CONTRACT,
824N/A * NEGLIGENCE, STRICT LIABILITY OR ANY OTHER ACTION ARISING OUT OF OR IN
824N/A * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ADOBE WILL NOT
824N/A * PROVIDE ANY TRAINING OR OTHER SUPPORT FOR THE SOFTWARE.
824N/A *
824N/A * Adobe, PostScript, and Display PostScript are trademarks of Adobe Systems
824N/A * Incorporated which may be registered in certain jurisdictions
824N/A *
824N/A * Author: Adobe Systems Incorporated
824N/A */
824N/A
824N/A#ifndef DPSPRIVATE_H
824N/A#define DPSPRIVATE_H
824N/A
824N/A#include "DPS/dpsconfig.h"
824N/A#include "DPS/dpsclient.h"
824N/A
824N/Atypedef enum {
824N/A dps_hiFirst, dps_loFirst
824N/A } DPSByteOrder;
824N/A
824N/Atypedef enum {
824N/A dps_ieee, dps_native
824N/A } DPSNumFormat;
824N/A
824N/Atypedef void (*DPSClientPrintProc)(
824N/A DPSContext /* cid */,
824N/A char * /* buf */,
824N/A unsigned int /* count */);
824N/A /* Call-back procedure to handle output from the PostScript server for
824N/A context with id 'cid'. Passed to DPSServicePostScript.
824N/A 'buf' contains 'count' bytes. */
824N/A
824N/Aextern void DPSInitClient(
824N/A DPSTextProc textProc,
824N/A void (* /* releaseProc */) (char *, char *));
824N/A/* Initialize the environment-specific parts of the client library */
824N/A
824N/A#ifndef DPSDefaultProgramEncoding
824N/A#define DPSDefaultProgramEncoding dps_binObjSeq
824N/A#endif /* not DPSDefaultProgramEncoding */
824N/A
824N/A#ifndef DPSDefaultByteOrder
824N/A#if SWAPBITS
824N/A#define DPSDefaultByteOrder dps_loFirst
824N/A#else /* SWAPBITS */
824N/A#define DPSDefaultByteOrder dps_hiFirst
824N/A#endif /* SWAPBITS */
824N/A#endif /* DPSDefaultByteOrder */
824N/A
824N/A#ifndef DPSDefaultNumFormat
824N/A#if IEEEFLOAT
824N/A#define DPSDefaultNumFormat dps_ieee
824N/A#else /* IEEEFLOAT */
824N/A#define DPSDefaultNumFormat dps_native
824N/A#endif /* IEEEFLOAT */
824N/A#endif /* not DPSDefaultNumFormat */
824N/A
824N/A#ifndef DPSDefaultNameEncoding
824N/A#define DPSDefaultNameEncoding dps_indexed
824N/A#endif /* not DPSDefaultNameEncoding */
824N/A
824N/Aextern void DPSCheckRaiseError(DPSContext c);
824N/A /* Checks the resynching flag in a DPSPrivContext and raises an exception
824N/A if true */
824N/A
824N/A/* system name table boundaries */
824N/A#define DPS_LAST_COMMON_SYSNAME 212
824N/A#define DPS_FIRST_AUX_SYSNAME 256
824N/A#define DPS_LAST_AUX_SYSNAME 427
824N/A
824N/Aextern char **DPSSysNames;
824N/Aextern char **DPSSysNamesAux;
824N/A
824N/A /* System name tables. DPSSysNames[index] is the string for the name.
824N/A DPSSysNamesAux[index - DPS_FIRST_AUX_SYSNAME] is the string
824N/A for an uncommon system name. */
824N/A
824N/Aextern int DPSInitialize(void);
824N/Aextern void DPSInitSysNames(void);
824N/A
824N/Aextern char *DPSSetWh(DPSContext /* ctxt */, char * /* newWh */);
824N/A /* set new window handle, returns old window handle */
824N/A
824N/Aextern void DPSOutOfMemory(void);
824N/A /*
824N/A This is called by the DPS software when it cannot allocate any more
824N/A storage from the heap (e.g., when malloc returns NIL).
824N/A
824N/A MAC ONLY
824N/A DPSOutOfMemory calls CantHappen (see dpsexcept.h) unless you
824N/A have used DPSSetOutOfMemoryProc to establish a different procedure
824N/A to be called, in which case DPSOutOfMemory calls your procedure instead.
824N/A If your procedure returns, DPSOutOfMemory returns to its caller, which
824N/A re-attempts the allocation. Note that another allocation failure will
824N/A cause DPSOutOfMemory to be called again (and again ...).
824N/A
824N/A */
824N/A
824N/A#endif /* DPSPRIVATE_H */