🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #2017

Re: Compiling PostScript code

#2017
From: Stan Chesnutt
Date: Sat, 29 Aug 1992 01:21
24 lines
1281 bytes
In article <1992Aug28.032106.28216@adobe.com> delahunt@adobe.com (Jim DeLaHunt) writes:

>Do you have a C compiler available?  Use its preprocessor to macro-
>substitute short names for long ones.  To use your example:
>
>/d /def load def
>#define def d
>
>#define MyFunctionMapper  A
>#define elvis 		  e
>/* etc.... */ 

Be careful with this approach, as the C preprocessor will perform
substitutions (macro conversions) upon PostScript strings, which are
delimited by parentheses.  You may get your text strings (incorrectly)
shortened.

C-preprocessor substitution stops at a C-string boundary, which is
the double-quote.

Stan
-- 
 -----------------------------------------------------------------------------
 Stan Chesnutt,  Adobe Systems  chesnutt@adobe.com {sun|decwrl}!adobe!chesnutt
Technical Details
Message-ID: <1992Aug29.012150.15637@adobe.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!hal.com!decwrl!adobe!chesnutt
References: <1992Aug24.023510.25470@cs.brown.edu> <1992Aug28.032106.28216@adobe.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!hal.com!decwrl!adobe!chesnutt
From: chesnutt@adobe.com (Stan Chesnutt)
Newsgroups: comp.lang.postscript
Subject: Re: Compiling PostScript code
Message-ID: <1992Aug29.012150.15637@adobe.com>
Date: 29 Aug 92 01:21:50 GMT
References: <1992Aug24.023510.25470@cs.brown.edu> <1992Aug28.032106.28216@adobe.com>
Sender: usenet@adobe.com (USENET NEWS)
Distribution: comp.lang.postscript
Organization: Tuesday Weld Fan Club
Lines: 24