824N/A * (c) Copyright 1988-1994 Adobe Systems Incorporated. 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 * 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 * Adobe, PostScript, and Display PostScript are trademarks of Adobe Systems 824N/A * Incorporated which may be registered in certain jurisdictions 824N/A * Author: Adobe Systems Incorporated 824N/A/* Xlib does not like UNIX defined to any value under VMS. */ 824N/A /* Note: there's no way to determine whether the new context id was obtained 824N/A ** as a result of a fork operation or from another application. so, it must 824N/A ** be assumed that the application is the creator of the new context. 824N/A ** Otherwise, it would have called the XDPSContextFromSharedID. 824N/A /* Output currently goes only to creator! */ 824N/A /* We may block indefinitely if the context is frozen or it 824N/A somehow needs more input. */ 824N/A /* Someone could conceivably change the event delivery mode in the 824N/A middle of this...best to check every time */ 824N/A /* update space's name map. 824N/A space->lastNameIndex is the highest index known to be known to the 824N/A c->lastNameIndex is the highest index sent so far to the context 824N/A /* ASSERT: safe to call with chain */ 824N/A /* No local buffering */ 824N/A}
/* DPSinnerProcWriteData */ 824N/A /* First make sure context isn't frozen, try to unfreeze. */ 824N/A /* Okay if context is PSRUNNING, since the EOF will 824N/A be handled at the next PSNEEDSINPUT */ 824N/A /* Remove events from Xlib Qs before sending the reset request. */ 824N/A /* +++ report error? */;
824N/A else /* Didn't become zombie. */ 824N/A /* Be optmistic for the first try. Assume the app set up a status mask 824N/A correctly, we should get a status event without asking the 824N/A /* Optimism failed. App probably didn't set up a status mask. 824N/A Ask the server for status. */ 824N/A /* Don't free the space's wh out from under it */ 824N/A /* let procAwaitReturnValues generate error */ 824N/A}
/* DPSServicePostScript */ 824N/A char *
buf =
"bogus error output from context";
824N/A char *
msg =
"%% DPS Client Library Warning:\n ";
824N/A char *
msg =
"%% DPS Client Library Fatal Internal Error:\n ";
824N/A "%sRecursive wait for return values, display 0x%x.%s",
824N/A if (s ==
NIL)
/* Create new space record. */ 824N/A if (s ==
NIL)
/* Create new space record. */ 824N/A char *
msg =
"assertion failure or DPSCantHappen";
824N/A /* Fatal proc shouldn't return, but client can override and do anything. */ 824N/A/* Procedures for delayed event dispatching */ 824N/A {
/* Check CSDPS first */