[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] PML trouble with -m68020-60



Am 13.01.2011, 21:52 Uhr, schrieb Thomas Jürges <thomas@sokrates.homelinux.net>:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2011-01-13 13:36, Helmut Karlowski wrote:
(fully qualified prototype) but in C "()" equals to K&R prototype meaning
"(int)".

Meaning unknown.


Means that in C the omission of the parameter list like

void foo();

is automatically, according to the C-bible by Kernighan & Ritchie,
assumed to be

void (foo int);

Then this code should not compile:


void f();			<- == void f(int);

void g(void)
{
  f(1,2);
}

But it does.

I would be surprised if something like

void (foo int);

is mentioned in K&R.

--
Helmut Karlowski