RE: gsapi_ wrappers around the gs_pop_* routines
GALLWEY Martin <[email protected]>
| Newsgroups | gmane.comp.printing.ghostscript.patches |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I was wondering what the status is on this patch ? The reason for including
these functions is to have an easy way for users of the API to retrieve a
value from a postscript dictionary.
For example, I use my patched version of Ghostscript as follows:
void RenderEngine::getGhostScriptVariable ( const char * pCommand, const int
nLength, long &rVariable )
throw ( RenderException )
{
sendGhostScriptCommand ( pCommand, nLength );
gsapi_pop_integer ( mpGhostScript, &rVariable );
#ifdef DEBUG_RENDERER
fprintf ( mpFile, "\npop\n" );
#endif
}
sendGhostScriptCommand just calls gsapi_run_string_with_length to run
'pCommand', which will leave an integer on the stack, which we then pop off
and read with gsapi_pop_integer.
Thanks,
Martin
> -----Original Message-----
> From: GALLWEY Martin
> Sent: Tuesday, 27 August 2002 5:34 PM
> To: '[email protected]'
> Subject: RE: gsapi_ wrappers around the gs_pop_* routines
>
>
> Hi there,
>
> The attached patch incorporates some modifications by
> ghostgum to make it compile with MSVC7.
>
> Cheers,
>
> Marty
>
IMPORTANT NOTICE: This e-mail and any attachment to it are intended only to be read or used by the named addressee. It is confidential and may contain legally privileged information. No confidentiality or privilege is waived or lost by any mistaken transmission to you. The RTA is not responsible for any unauthorised alterations to this e-mail or attachment to it. Views expressed in this message are those of the individual sender, and are not necessarily the views of the RTA. If you receive this e-mail in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient.