home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 5
/
DATAFILE_PDCD5.iso
/
utilities
/
r
/
riscript
/
!RiScript
/
System
/
Utils
< prev
Wrap
Text File
|
1994-09-04
|
1KB
|
47 lines
%
% --- RiScript Utils (27/01/94) ---
%
userdict begin
% --- generating errors from PostScript programs
% --- usage: /errorname raise
/raise {
//errordict exch get
countexecstack array execstack dup length 2 sub get exch exec
} def
% --- function to time PostScript procedures
% --- usage: { .... } time
/time {usertime exch exec usertime exch sub 1e3 div = (\n) print} def
% --- miscellaneous functions ---
/cls {(\f) print flush} def
/cand {exch {exec}{pop false} ifelse} def
/cor {exch {pop true}{exec} ifelse} def
/pdict {{exch == ( => ) print == (\n) print} forall flush} def
/!run {gsave {run} stopped grestore {stop} if} def
/pvm {vmstatus
(%%[VM: max=) print =
(; used=) print =
(; level=) print =
(]%%\n) print flush} def
/ppath {{exch = ( ) print = ( moveto ) print flush}
{exch = ( ) print = ( lineto ) print flush}
{6 -2 roll exch = ( ) print = ( ) print
4 -2 roll exch = ( ) print = ( ) print
exch = ( ) print = ( curveto ) print flush}
{(closepath ) print flush} pathforall} def
/filename 100 string def
/ls {{= (\n) print} //filename filenameforall flush} def
currentdict /filename undef
% --- define store as it should be ---
/store {
exch dup
where {} {currentdict} ifelse
exch 3 -1 roll put
} def
end % userdict