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=6a4cb994a55825b9b0d5028f8ca344a36e301929;p=rrdtool.git removed c++ comments // git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1344 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index a1a0da5..2a62203 100644 --- a/src/rrd_graph.c +++ b/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/src/rrd_hw.c b/src/rrd_hw.c index 3b1ba7c..ec4bbfa 100644 --- a/src/rrd_hw.c +++ b/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/src/rrd_open.c b/src/rrd_open.c index 4acaa8f..d8c63b8 100644 --- a/src/rrd_open.c +++ b/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/src/rrd_rpncalc.c b/src/rrd_rpncalc.c index d98008d..65c124e 100644 --- a/src/rrd_rpncalc.c +++ b/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/src/win32comp.c b/src/win32comp.c index 5f55701..457e69e 100644 --- a/src/win32comp.c +++ b/src/win32comp.c @@ -1,4 +1,4 @@ -// compatibility routines, non reentrant .... +/* compatibility routines, non reentrant .... */ #include #include