diff options
| author | chopps <chopps@NetBSD.org> | 1994-02-06 18:48:28 +0000 |
|---|---|---|
| committer | chopps <chopps@NetBSD.org> | 1994-02-06 18:48:28 +0000 |
| commit | 6e9b4b15e0718bbff86eab06f84eb218cd3f9dc8 (patch) | |
| tree | c91658c2361ebb36255b591c679b95ede3fdb26c /lib/libm | |
| parent | 2595681cf29c94dd9d11cf2eccd2d5b270ed7dc1 (diff) | |
moved struct out of param lists.
Diffstat (limited to 'lib/libm')
| -rw-r--r-- | lib/libm/ieee/cabs.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libm/ieee/cabs.c b/lib/libm/ieee/cabs.c index fab38895042..2b2b7d1ae7b 100644 --- a/lib/libm/ieee/cabs.c +++ b/lib/libm/ieee/cabs.c @@ -33,7 +33,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)cabs.c 5.6 (Berkeley) 10/9/90";*/ -static char rcsid[] = "$Id: cabs.c,v 1.3 1993/08/14 13:43:23 mycroft Exp $"; +static char rcsid[] = "$Id: cabs.c,v 1.4 1994/02/06 18:48:28 chopps Exp $"; #endif /* not lint */ /* HYPOT(X,Y) @@ -171,16 +171,20 @@ double x, y; * cabs(z) = hypot(x,y) . */ +struct abs_args { + double x, y; +}; + double cabs(z) -struct { double x, y;} z; +struct abs_args z; { return hypot(z.x,z.y); } double z_abs(z) -struct { double x,y;} *z; +struct abs_args *z; { return hypot(z->x,z->y); } |
