GIF89a;
EcchiShell v1.0
/
/
proc/
self/
root/
usr/
share/
ghostscript/
to write to the underlying dictionary,
% and put it back after the enumeration is completed.
end
{
0 1 2 {
en_local_dict exch /status exch put
InstancesStatus {
en_local_dict /status get eq {
scr cvs % ... (Font)
proc exec %
} {
pop
} ifelse % ...
} forall
} for % ...
} stopped
Category begin
{ stop } if
} bind def
% An auxiliary proc for BindWithCurrentdict :
/.BindAux % BindAux
{ 0 exec
} bind def
setpacking
/BindWithCurrentdict % BindWithCurrentdict
{
% Make a copy of the given procedure, binding in the values of all names
% defined in currentdict.
% Caution1 : this code cannot handle procedures that were already
% bound recursively.
% Caution2 : this code don't bind packedarrays. This was done
% intentionally for a termination of the procedure tree.
dup length array copy
dup length 1 sub -1 0 {
2 copy get % {precopy} i {elem}
dup dup type /arraytype eq exch xcheck and {
% {precopy} i {elem}
//.BindAux exec % {precopy} i {elem_copy}
2 index 3 1 roll put % {precopy}
} {
dup dup type /nametype eq exch xcheck and {
% {precopy} i {elem}
currentdict exch .knownget {
2 index 3 1 roll put % {precopy}
} {
pop
} ifelse
} {
pop pop
} ifelse
} ifelse % {precopy}
} for % {copy}
cvx
} bind def
//.BindAux 0 //BindWithCurrentdict put % bind the recursive call in 'Bind'.
/MakeResourceEnumerator % MakeResourceEnumerator
{
% Build the enumeration procedure :
% Since the resourceforall procedure may leave values on the operand stack,
% we cannot simply store the enumerator's local data on the stack.
% We also cannot use a static dictionary to store local variables,
% because of possible recursion in the resourceforall procedure.
% To work around this, we create a copy of the enumeration procedure and
% bind it dynamically with a temporary dictionary, which contains
% local variables for the currently executing instance of resourceforall.
% Always place the enumerator in local VM,
% because its elements may be in local VM.
currentglobal 4 1 roll
//false setglobal
currentdict % Category
6 dict begin % the temporary dictionary
/Category exch def
/InstancesStatus exch def
/scr exch def
/proc exch def
/en_local_dict currentdict def
//InstanceEnumeratorPattern //BindWithCurrentdict exec % Enumerator
/status 0 def % variable for the current status to enumerate - do not bind with it !
end
exch setglobal
} bind def
/execstack_lookup %