mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-10 21:41:14 +08:00
* README.Portability: Fix typos.
From-SVN: r55164
This commit is contained in:
parent
9a81c5b711
commit
0b558962c1
@ -1,3 +1,7 @@
|
||||
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
|
||||
|
@ -123,8 +123,8 @@ int myfunc PARAMS ((double, int *));
|
||||
|
||||
int
|
||||
myfunc (var1, var2)
|
||||
double var1;
|
||||
int *var2;
|
||||
double var1;
|
||||
int *var2;
|
||||
{
|
||||
...
|
||||
}
|
||||
@ -132,7 +132,7 @@ myfunc (var1, 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 ()
|
||||
@ -300,8 +300,8 @@ long and int are not the same size.
|
||||
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;
|
||||
{
|
||||
...
|
||||
}
|
||||
@ -314,8 +314,8 @@ Implicit function declarations always have return type int. So if you
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user