Article View: comp.sys.mac
Article #34060Script in MPW for Procedure names
From: David M. O'Rourke
Date: Sun, 30 Oct 1988 23:59
Date: Sun, 30 Oct 1988 23:59
43 lines
1925 bytes
1925 bytes
Below is a script I wipped up to take a file name of a Pascal program and
collect all of the procedure names and put them under the mark menu.
Unfortunatly it destroy's all of the marks that used to be set for that
program. I find it particuarly useful for debugging other's code, I used it
to set up the Mark menu so that I can jump to procedure calls.
Anyways I find it useful and thought people in netland would also.
-----
# This is a shell script that finds and marks all of the procedures in the
# file name provided in parameter #1
procnames -e -f -n {1} | search -r /"/"/ | search -r /:/ > {1}.procnames
open {1}.procnames
target {1}.procnames
set exit 0
find %
loop
find /'['/:/']'/; break if {Status}; clear $
end
find %; find /{1}/; clear $
close -y {Target}
open {1}
target {1}
find %
mark -y $ junk {Target}
unmark `markers` "{target}"
for proc_name in `catenate {1}.procnames`
find /{proc_name}/ {Target}
mark -n $ {proc_name} {Target}
end
delete {1}.procnames
-----
Please no bug reports or flames, I don't guarentee that it works or ever
did anything, any bug reports would take me longer to reply to the message
than it did to write the script.
Hope you find it useful, and expand on it to do other things.
--
David M. O'Rourke dorourke@polyslo.calpoly.edu
"If it doesn't do Windows, then it's not a computer!!!"
Disclaimer: I don't represent the school. All opinions are mine!
Technical Details
Message-ID:
<5181@polyslo.CalPoly.EDU>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!uwvax!rutgers!gatech!emcard!fedeva!csun!polyslo!dorourkeShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!uwvax!rutgers!gatech!emcard!fedeva!csun!polyslo!dorourke From: dorourke@polyslo.CalPoly.EDU (David M. O'Rourke) Newsgroups: comp.sys.mac Subject: Script in MPW for Procedure names Message-ID: <5181@polyslo.CalPoly.EDU> Date: 30 Oct 88 23:59:09 GMT Reply-To: dorourke@polyslo.CalPoly.EDU (David M. O'Rourke) Organization: Cal Poly State University -- San Luis Obispo Lines: 43