+2002-07-02 Alan Modra <amodra@bigpond.net.au>
+
+ * README.Portability: Fix typos.
+
2002-07-01 Hans-Peter Nilsson <hp@axis.com>
PR target/7177
int
myfunc (var1, var2)
- double var1;
- int *var2;
+ double var1;
+ int *var2;
{
...
}
This implies that if the function takes no arguments, it should be
declared and defined as follows:
-int myfunc PARAMS ((void))
+int myfunc PARAMS ((void));
int
myfunc ()
Second, if you write a function definition with no return type at
all:
- operate(a, b)
- int a, b;
+ operate (a, b)
+ int a, b;
{
...
}
correct the above definition to
void
- operate(a, b)
- int a, b;
+ operate (a, b)
+ int a, b;
...
but operate() is called above its definition, you will get an error