[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
C++ comments in C code
From: |
Albert Chin |
Subject: |
C++ comments in C code |
Date: |
Fri, 5 Sep 2003 11:36:15 -0500 |
User-agent: |
Mutt/1.4i |
C++ comments are illegal in C89 code.
--
albert chin (address@hidden)
-- snip snip
Index: liboctave/lo-ieee.h
===================================================================
RCS file: /cvs/octave/liboctave/lo-ieee.h,v
retrieving revision 1.12
diff -u -3 -p -r1.12 lo-ieee.h
--- liboctave/lo-ieee.h 2003/06/21 14:14:42 1.12
+++ liboctave/lo-ieee.h 2003/09/05 16:33:33
@@ -66,9 +66,9 @@ extern double lo_ieee_inf_value (void);
extern double lo_ieee_na_value (void);
extern double lo_ieee_nan_value (void);
-// In the following definitions, only check x < 0 explicitly to avoid
-// a function call when it looks like signbit or copysign are actually
-// functions.
+/* In the following definitions, only check x < 0 explicitly to avoid */
+/* a function call when it looks like signbit or copysign are actually */
+/* functions. */
#if defined (signbit)
#define lo_ieee_signbit(x) signbit (x)
Index: liboctave/lo-cieee.c
===================================================================
RCS file: /cvs/octave/liboctave/lo-cieee.c,v
retrieving revision 1.5
diff -u -3 -p -r1.5 lo-cieee.c
--- liboctave/lo-cieee.c 2003/07/26 03:45:10 1.5
+++ liboctave/lo-cieee.c 2003/09/05 16:33:34
@@ -129,8 +129,8 @@ lo_ieee_is_NA (double x)
int
lo_ieee_is_NaN_or_NA (double x)
{
- // Although NA really is an IEEE NaN value, lo_ieee_isnan pretends
- // it is not, so we much check both...
+ /* Although NA really is an IEEE NaN value, lo_ieee_isnan pretends */
+ /* it is not, so we much check both... */
return lo_ieee_isnan (x) || lo_ieee_is_NA (x);
}
- C++ comments in C code,
Albert Chin <=