Code

removed c++ comments //
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 12 May 2008 16:15:02 +0000 (16:15 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 12 May 2008 16:15:02 +0000 (16:15 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1344 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_graph.c
src/rrd_hw.c
src/rrd_open.c
src/rrd_rpncalc.c
src/win32comp.c

index a1a0da59f33866c40c109f162246094ee7be8a87..2a62203a4add7f9b766ffc0e9bb941cf10eeac81 100644 (file)
@@ -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
                     };
index 3b1ba7c68612d056bb9fbca84f26131f1d82cb2f..ec4bbfa80e2a19d47907c6d745e7da618306ff99 100644 (file)
@@ -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;
index 4acaa8fd13fa4618e7a2b47393941132f1aa596d..d8c63b881cb12e4525858a31fb772ca71543dc15 100644 (file)
@@ -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 */
 }
 
 
index d98008de2643e5c871faa10f847b573d027b1c5a..65c124ee43ad8fe0ea18f0f64f7aa0efd8c9792f 100644 (file)
@@ -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];
index 5f55701d95f31055303184e618a243961dfb68e4..457e69e518aa44b5d49cc5c2b37ee221beffad2c 100644 (file)
@@ -1,4 +1,4 @@
-// compatibility routines, non reentrant ....
+/* compatibility routines, non reentrant .... */
 
 #include <string.h>
 #include <time.h>