[Python-Dev] ANSIfication again ;)
Fredrik Lundh" <firstname.lastname@example.org
Fri, 21 Jul 2000 00:08:36 +0200
> thomas wrote:
> > However, as far as I remember, ANSI C states that should be written
> > as '(void)'. Is that a non-issue, and should I not bother fixing =
> > (Most of the files in Modules/ has one or more instances of those.)
> Yes, I think that's right. I just looked at them and thought: Oh, no
> parameters - no work ;-)
> But then even "gcc -pedantic -ansi" doesn't care about this.
> Take that as a +0.
strictly speaking, (void) and () are two different things:
"If the function does not expect any arguments, you write
only the keyword void
void reset(void); no arguments, no return
"You can also declare a function and not provide information
about the number or types of its arguments. Do not write
declarations within the parentheses of the function decoration.
double bessel(); no argument information
but I guess it's up to you if you want to be more pedantic than