Cleaned up C++ comments

This commit is contained in:
skarg
2010-05-04 21:01:48 +00:00
parent 7b015706b7
commit 74be776295
3 changed files with 14 additions and 14 deletions
+11 -11
View File
@@ -302,9 +302,9 @@ static void Init_Service_Handlers(
else else
fprintf(stream, " "); fprintf(stream, " ");
/* Tried with 8 per line, but with the comments, got way too long. */ /* Tried with 8 per line, but with the comments, got way too long. */
if ( (i == (len-1) ) || ( (i % 4) == 3 ) ) // line break every 4 if ( (i == (len-1) ) || ( (i % 4) == 3 ) ) /* line break every 4 */
{ {
fprintf(stream, " -- "); // EPICS comments begin with "--" fprintf(stream, " -- "); /* EPICS comments begin with "--" */
/* Now rerun the same 4 bits, but print labels for true ones */ /* Now rerun the same 4 bits, but print labels for true ones */
for ( j = i - (i%4); j <= i; j++) for ( j = i - (i%4); j <= i; j++)
{ {
@@ -606,7 +606,7 @@ static uint8_t Read_Properties(
if ( Using_Walked_List ) if ( Using_Walked_List )
{ {
if (Walked_List_Length == 0) { if (Walked_List_Length == 0) {
// printf(" %s: ", bactext_property_name( prop ) ); /* printf(" %s: ", bactext_property_name( prop ) ); */
array_index = 0; array_index = 0;
} else { } else {
array_index = Walked_List_Index; array_index = Walked_List_Index;
@@ -1010,14 +1010,14 @@ int main(
} }
else else
Property_List_Index++; Property_List_Index++;
// if ( pPropList[Property_List_Index] == PROP_OBJECT_LIST ) /* if ( pPropList[Property_List_Index] == PROP_OBJECT_LIST ) */
// { /* { */
// if ( !Using_Walked_List ) /* Just switched */ /* if ( !Using_Walked_List ) /* Just switched */ */
// { /* { */
// Using_Walked_List = true; /* Using_Walked_List = true; */
// Walked_List_Index = Walked_List_Length = 0; /* Walked_List_Index = Walked_List_Length = 0; */
// } /* } */
// } /* } */
myState = GET_PROPERTY_REQUEST; /* Go fetch next Property */ myState = GET_PROPERTY_REQUEST; /* Go fetch next Property */
} }
else if (tsm_invoke_id_free(invoke_id)) { else if (tsm_invoke_id_free(invoke_id)) {
+2 -2
View File
@@ -1685,8 +1685,8 @@ void trend_log_timer(
* we don't miss a reading if we aren't called at the precise second * we don't miss a reading if we aren't called at the precise second
* when the match occurrs. * when the match occurrs.
*/ */
// if(((tNow % CurrentLog->ulLogInterval) >= (CurrentLog->ulIntervalOffset % CurrentLog->ulLogInterval)) && /* if(((tNow % CurrentLog->ulLogInterval) >= (CurrentLog->ulIntervalOffset % CurrentLog->ulLogInterval)) && */
// ((tNow - CurrentLog->tLastDataTime) >= CurrentLog->ulLogInterval)) { /* ((tNow - CurrentLog->tLastDataTime) >= CurrentLog->ulLogInterval)) { */
if((tNow % CurrentLog->ulLogInterval) == (CurrentLog->ulIntervalOffset % CurrentLog->ulLogInterval)) { if((tNow % CurrentLog->ulLogInterval) == (CurrentLog->ulIntervalOffset % CurrentLog->ulLogInterval)) {
/* Record value if time synchronised trigger condition is met /* Record value if time synchronised trigger condition is met
* and at least one period has elapsed. * and at least one period has elapsed.
+1 -1
View File
@@ -27,7 +27,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <time.h> // for time_t #include <time.h> /* for time_t */
#include "bacdef.h" #include "bacdef.h"
#include "cov.h" #include "cov.h"
#include "rp.h" #include "rp.h"