07-13-2020, 12:34 +0200
AuthorPost
ex  07-27-2005, 05:04   | all procs in a file

Avatar

Member since 07/2005
1 Post
is there a way to get all procs in a file?

or do i have to read the file as "normal" file and search for "proc" as string?
avilon  07-27-2005, 12:34  

Avatar

Member since 05/2005
4 Posts
Location: Germany
info procs ?pattern?

    If pattern isn't specified, returns a list of all the names of Tcl command procedures in the current namespace. If pattern is specified, only those procedure names in the current namespace matching pattern are returned. Matching is determined using the same rules as for string match. If pattern contains any namespace separators, they are used to select a namespace relative to the current namespace (or relative to the global namespace if pattern starts with ::) to match within; the matching pattern is taken to be the part after the last namespace separator.

[Not loaded: http://card.mygamercard.net/sig/avilon87.png]
elven  07-27-2005, 15:00   Jabber
security dept.
(Administrator)
Member since 03/2004
55 Posts
You *could* source the file into a seperate, safe interpreter and execute info procs * over there - but that bears lots of potential problems, since the script might not like it.
The only viable way I can think of is grepping the file for proc header definitions, eg /proc\s+(\S+)\s+\{\s*((?:\S+)(?:\s*))*\s*}\s+\{/ or sth like that :)

Elven

irc.swordcoast.net
Advanced options for this topic:

Ignore this topic (Do not list this topic in the "unread topics" search. You are currently not ignoring this topic.)
Hide this topic (Hidden topics are not displayed in the topics list. This topic is currently not hidden.)
Go to forum

Unclassified NewsBoard 1.5.3-d | © 2003-4 by Yves Goergen | Time: 189 msec, CPU time: 82.3 msec, 36 Database queries in 133.5 msec | 3.4 kB (12.4 kB) | Timezone: +0200