Mercurial > octave-dspies
changeset 15970:ca6202597201
Use C-style comments in C code.
* xgl2ps.c, randmtzig.c: Use C-style comments for consistency and to
compile with gcc -std=c90.
author | Mike Miller <mtmiller@ieee.org> |
---|---|
date | Mon, 21 Jan 2013 16:11:01 -0500 |
parents | 139f4b19a3ac |
children | e27d9b9b71f4 |
files | libinterp/interp-core/xgl2ps.c liboctave/numeric/randmtzig.c |
diffstat | 2 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/interp-core/xgl2ps.c Mon Jan 21 01:58:07 2013 -0500 +++ b/libinterp/interp-core/xgl2ps.c Mon Jan 21 16:11:01 2013 -0500 @@ -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 <config.h>
--- a/liboctave/numeric/randmtzig.c Mon Jan 21 01:58:07 2013 -0500 +++ b/liboctave/numeric/randmtzig.c Mon Jan 21 16:11:01 2013 -0500 @@ -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