This document is the pswrap Reference Manual, a programmer's guide for the pswrap translator, specifically designed for use within the ULTRIX Worksystem Software and Display PostScript® system. Published by Adobe Systems Incorporated in 1989, it instructs developers on how to create C-callable "wrapped procedures" (or "wraps") that embed POSTSCRIPT language code.
The core function of pswrap is to facilitate efficient communication between C applications and the POSTSCRIPT interpreter. It translates definitions written in a special pswrap syntax into C source code, which can then be compiled and linked with an application. When a wrapped procedure is called from C, it sends encoded POSTSCRIPT language code to the interpreter and retrieves returned values.
Key topics covered in the manual include:
pswrap: Explains its purpose in allowing C applications to send POSTSCRIPT commands and receive data, emphasizing its efficiency for this task.pswrap Translator: Details command-line options for generating ANSI C prototypes, header files, reentrant code, and controlling string lengths in the output.defineps keyword, a C-callable procedure declaration (including optional input and output arguments), the POSTSCRIPT language code body, and an endps keyword. It also covers comments and the handling of PostScript language syntax within the wrap body.DPSContext argument.pswrap handles popping values from the PostScript operand stack, converting them to C types, and storing them in the specified memory locations.pswrap translator and a formal syntax definition for wrap declarations, including semantic restrictions and clarifications.In essence, this manual is a technical guide for C programmers developing applications that leverage the Display PostScript system by integrating PostScript language operations through pswrap-generated routines.
Site structure and layout ©2025 Majenko Technologies