ascherer / cwebbin

Literate Programming in C/C++
https://github.com/ascherer/cweb
MIT License
28 stars 5 forks source link

Let cweave react to option '-i' with function prototypes #13

Closed ascherer closed 3 years ago

ascherer commented 5 years ago

By default, cweave should produce

int function(int a,@t\1\1@> /* comment for parameter |a| */
   int b, /* comment for |b| */
   int c@t\2\2@>) /* comment for |c| */
{
   /* body */
}

without the need for the extra @t material @>.

With option -i, the in- and out-denting of the parameters should be suppressed.

ascherer commented 3 years ago

The simple solution simply was too simple. It drowned the TeX code in an orgy of \1\1 and \2\2.

ascherer commented 3 years ago

@texdraft As you are far more famililar with CWEB's grammar than myself, would you be willing to take a look at this issue?