In sed source I saw often
func(...)
int b;
char c;
{
...
}
Why put variables there? Does it change the scope?
Like here: http://ww
This is K&R (old) style, it works, but..
That's just old style, pre-ANSI C. The whole notion of function declarations with type parameters wasn't introduced until later!
That's just the old (K&R) way of declaring parameters in C.
/* Old way of declaring parameters*/
void myFunc(a, b)
int a; int b;
{
...
}
Nobody does it that way anymore, unless you need to compile your code on a really old compiler - so either sed was written with old compilers in mind, or that code is really old.