From: oetiker Date: Mon, 12 May 2008 16:15:02 +0000 (+0000) Subject: removed c++ comments // X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=855a1a42c77717514d59d8cfb27942dab9f9866e;p=rrdtool-all.git removed c++ comments // git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1344 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index a1a0da59..2a62203a 100644 --- a/program/src/rrd_graph.c +++ b/program/src/rrd_graph.c @@ -2650,7 +2650,7 @@ void grid_paint( [GRC_FRAME]. blue, im->graph_col[GRC_FRAME].alpha); if (im->gdes[i].dash) { - // make box borders in legend dashed if the graph is dashed + /* make box borders in legend dashed if the graph is dashed */ double dashes[] = { 3.0 }; diff --git a/program/src/rrd_hw.c b/program/src/rrd_hw.c index 3b1ba7c6..ec4bbfa8 100644 --- a/program/src/rrd_hw.c +++ b/program/src/rrd_hw.c @@ -422,7 +422,7 @@ int update_aberrant_CF( hw_multiplicative_init_seasonality, hw_calculate_seasonal_deviation, hw_init_seasonal_deviation, - 1.0 // identity value + 1.0 /* identity value */ }; static hw_functions_t hw_additive_functions = { @@ -433,7 +433,7 @@ int update_aberrant_CF( hw_additive_init_seasonality, hw_calculate_seasonal_deviation, hw_init_seasonal_deviation, - 0.0 // identity value + 0.0 /* identity value */ }; rrd->cdp_prep[cdp_idx].scratch[CDP_scratch_idx].u_val = pdp_val; diff --git a/program/src/rrd_open.c b/program/src/rrd_open.c index 4acaa8fd..d8c63b88 100644 --- a/program/src/rrd_open.c +++ b/program/src/rrd_open.c @@ -242,15 +242,10 @@ rrd_file_t *rrd_open( __rrd_read(rrd->live_head, live_head_t, 1); } -//XXX: This doesn't look like it needs madvise __rrd_read(rrd->pdp_prep, pdp_prep_t, rrd->stat_head->ds_cnt); - -//XXX: This could benefit from madvise()ing __rrd_read(rrd->cdp_prep, cdp_prep_t, rrd->stat_head->rra_cnt * rrd->stat_head->ds_cnt); - -//XXX: This could benefit from madvise()ing __rrd_read(rrd->rra_ptr, rra_ptr_t, rrd->stat_head->rra_cnt); @@ -419,7 +414,7 @@ off_t rrd_seek( rrd_file->pos = ret; #endif /* mimic fseek, which returns 0 upon success */ - return ret < 0; //XXX: or just ret to mimic lseek + return ret < 0; /*XXX: or just ret to mimic lseek */ } diff --git a/program/src/rrd_rpncalc.c b/program/src/rrd_rpncalc.c index d98008de..65c124ee 100644 --- a/program/src/rrd_rpncalc.c +++ b/program/src/rrd_rpncalc.c @@ -550,7 +550,8 @@ short rpn_calc( if (isnan(rpnstack->s[stptr - 1])) { rpnstack->s[stptr - 1] = rpnstack->s[stptr]; } else if (isnan(rpnstack->s[stptr])) { - //rpnstack->s[stptr - 1] = rpnstack->s[stptr - 1]; + /* NOOP */ + /* rpnstack->s[stptr - 1] = rpnstack->s[stptr - 1]; */ } else { rpnstack->s[stptr - 1] = rpnstack->s[stptr - 1] + rpnstack->s[stptr]; diff --git a/program/src/win32comp.c b/program/src/win32comp.c index 5f55701d..457e69e5 100644 --- a/program/src/win32comp.c +++ b/program/src/win32comp.c @@ -1,4 +1,4 @@ -// compatibility routines, non reentrant .... +/* compatibility routines, non reentrant .... */ #include #include