# HG changeset patch # User Mike Miller # Date 1358802661 18000 # Node ID ca6202597201c9fef9d5982c5e43d4ea1a47cb21 # Parent 139f4b19a3ac02cb1baaa8407a7c073ad70d06ea Use C-style comments in C code. * xgl2ps.c, randmtzig.c: Use C-style comments for consistency and to compile with gcc -std=c90. diff --git a/libinterp/interp-core/xgl2ps.c b/libinterp/interp-core/xgl2ps.c --- a/libinterp/interp-core/xgl2ps.c +++ b/libinterp/interp-core/xgl2ps.c @@ -20,8 +20,10 @@ */ -// Wrapper for "imported" file gl2ps.c so that config.h will be included -// before any other system or gnulib headers. +/* + * Wrapper for "imported" file gl2ps.c so that config.h will be included + * before any other system or gnulib headers. + */ #ifdef HAVE_CONFIG_H #include diff --git a/liboctave/numeric/randmtzig.c b/liboctave/numeric/randmtzig.c --- a/liboctave/numeric/randmtzig.c +++ b/liboctave/numeric/randmtzig.c @@ -637,7 +637,7 @@ const int idx = (int)(ri & 0xFF); const double x = ri * we[idx]; if (ri < ke[idx]) - return x; // 98.9% of the time we return here 1st try + return x; /* 98.9% of the time we return here 1st try */ else if (idx == 0) { /* As stated in Marsaglia and Tsang @@ -804,7 +804,7 @@ const int idx = (int)(ri & 0xFF); const float x = ri * fwe[idx]; if (ri < fke[idx]) - return x; // 98.9% of the time we return here 1st try + return x; /* 98.9% of the time we return here 1st try */ else if (idx == 0) { /* As stated in Marsaglia and Tsang