--- ray/src/common/linregr.h 2003/02/25 02:47:21 2.4 +++ ray/src/common/linregr.h 2003/06/06 16:38:47 2.5 @@ -1,7 +1,12 @@ -/* RCSid $Id: linregr.h,v 2.4 2003/02/25 02:47:21 greg Exp $ */ +/* RCSid $Id: linregr.h,v 2.5 2003/06/06 16:38:47 schorsch Exp $ */ /* * Header file for linear regression calculation. */ +#ifndef _RAD_LINEGR_H_ +#define _RAD_LINEGR_H_ +#ifdef __cplusplus +extern "C" { +#endif #include "copyright.h" @@ -24,16 +29,14 @@ typedef struct { #define lrxdev(l) sqrt(((l)->xxs-(l)->xs*(l)->xs/(l)->n)/((l)->n-1)) #define lrydev(l) sqrt(((l)->yys-(l)->ys*(l)->ys/(l)->n)/((l)->n-1)) -#ifdef NOPROTO -extern void lrclear(); -extern int flrpoint(); -extern int lrfit(); - -#else - extern void lrclear(LRSUM *l); extern int flrpoint(double x, double y, LRSUM *l); extern int lrfit(LRLIN *r, LRSUM *l); + +#ifdef __cplusplus +} #endif +#endif /* _RAD_LINEGR_H_ */ +