K&R-style variadic functions

Jacob Carlborg doob at me.com
Wed Jul 18 04:34:43 PDT 2012

On 2012-07-18 12:25, Regan Heath wrote:
> In any case.  It think the practical solution to this problem is to
> assume you're working with modern code, and have a command line option
> to make it assume K&R or old-style declarations.
> In the old-style mode you would have to assume a function with an empty
> () could have any number of parameters and the best you can do is produce:
> extern (C) <ret> <name>(/* fill in the blanks please*/);
> R

Seems like this will be the solution.

/Jacob Carlborg

More information about the Digitalmars-d mailing list