Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Passing parameters to cweb sections

1 view
Skip to first unread message

Michiel Buddingh'

unread,
Sep 28, 2005, 12:42:21 AM9/28/05
to

Hello,

I've recently started using cweb, and while I like it a lot, I find
myself wanting to not just reference sections of code with @<...@>@,
but to use them a little more like C macros and pass parameters to
them. I might have a section @<Find the largest value in List |A|@>@,
but if I want to do the same for list |B|, as I understand things, I
have to duplicate the code.

Am I correct in understanding that cweb can't do this? And if I am,
is there a cweb-like system that can do this sort of thing?

thanks,
Michiel

0 new messages