##general procs used for CCK coding#use set varname rather than return $varname#\code##Documented proc DlgLgrep \c#accepts a list, and an expression. Returns a list of all elements for list,which match expression#The expression is carried out in the DlgLgrep contect and local namespace. You can, of course use#upvar and uplevel within your code.#for example, let us say that you want numbers that are above 3#puts [ DlgLgrep { $grepy > 3 } { 1 4 0 8 -2 } ]#will yield#4 8procDlgLgrep{exprylisty}{#accepts a list, and an expression. Returns a list of all elements for list,which match expression#The expression is carried out in the DlgLgrep contect and local namespace. You can, of course use#upvar and uplevel within your code.#for example, let us say that you want numbers that are above 3#puts [ DlgLgrep { $grepy > 3 } { 1 4 0 8 -2 } ]#will yield#4 8setret{}foreachgrepy$listy{if{[expr$expry]}{lappendret$grepy}}return$ret}#\endcode
The sample code is:
The doxygen config file text is:
The HTML file comes empty...
Any ideas?