Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #1222

Re: save restore problem - is it possible to use it in this way?

From ken <ken@spamcop.net>
Newsgroups comp.lang.postscript
Subject Re: save restore problem - is it possible to use it in this way?
Date 2013-01-04 16:40 +0000
Message-ID <MPG.2b511661af912eca9898a3@usenet.plus.net> (permalink)
References <7f92a7b6-e0fa-4481-b50a-9ba3aa56be07@googlegroups.com>

Show all headers | View raw


In article <7f92a7b6-e0fa-4481-b50a-9ba3aa56be07@googlegroups.com>, 
wojtulek@gmail.com says...
> 
> Hello!
> 
> I have a problem with postscript file. Probably I've found the issue, but I'm still not sure ;)
> 
> I know what I can save and restore some properties with the use of save-restore pair:
> 
> ...
> save
> ...
> restore
> ...
> 
> 
> but what about this way?
> 
> ...
> save 
> ...
> save
> ...
> restore
> ...
> restore
> 
> Should it be ok too?

Yes, saves and restores (like gsave/grestore) are on a stack.

> If yes then probably there is something wrong with the stack between save and restore and restore have wrong data on the stack? 

Possibly, yes.

> How to check it? PS file has more than 1k lines :/

You need to inspect the stack, pstack willl help here. There is no 
really easy way to debug this.

			Ken

Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

save restore problem - is it possible to use it in this way? wojtulek@gmail.com - 2013-01-04 08:39 -0800
  Re: save restore problem - is it possible to use it in this way? ken <ken@spamcop.net> - 2013-01-04 16:40 +0000
  Re: save restore problem - is it possible to use it in this way? luser- -droog <mijoryx@yahoo.com> - 2013-01-04 10:10 -0800
    Re: save restore problem - is it possible to use it in this way? John Deubert <john@acumentraining.com> - 2013-01-07 06:38 -0800

csiph-web