From 74be776295091b1d709538e72ae9ef74ac11563d Mon Sep 17 00:00:00 2001 From: skarg Date: Tue, 4 May 2010 21:01:48 +0000 Subject: [PATCH] Cleaned up C++ comments --- bacnet-stack/demo/epics/main.c | 22 +++++++++++----------- bacnet-stack/demo/object/trendlog.c | 4 ++-- bacnet-stack/include/trendlog.h | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/bacnet-stack/demo/epics/main.c b/bacnet-stack/demo/epics/main.c index bd7c9135..891fe431 100644 --- a/bacnet-stack/demo/epics/main.c +++ b/bacnet-stack/demo/epics/main.c @@ -302,9 +302,9 @@ static void Init_Service_Handlers( else fprintf(stream, " "); /* 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 */ for ( j = i - (i%4); j <= i; j++) { @@ -606,7 +606,7 @@ static uint8_t Read_Properties( if ( Using_Walked_List ) { if (Walked_List_Length == 0) { -// printf(" %s: ", bactext_property_name( prop ) ); +/* printf(" %s: ", bactext_property_name( prop ) ); */ array_index = 0; } else { array_index = Walked_List_Index; @@ -1010,14 +1010,14 @@ int main( } else Property_List_Index++; -// if ( pPropList[Property_List_Index] == PROP_OBJECT_LIST ) -// { -// if ( !Using_Walked_List ) /* Just switched */ -// { -// Using_Walked_List = true; -// Walked_List_Index = Walked_List_Length = 0; -// } -// } +/* if ( pPropList[Property_List_Index] == PROP_OBJECT_LIST ) */ +/* { */ +/* if ( !Using_Walked_List ) /* Just switched */ */ +/* { */ +/* Using_Walked_List = true; */ +/* Walked_List_Index = Walked_List_Length = 0; */ +/* } */ +/* } */ myState = GET_PROPERTY_REQUEST; /* Go fetch next Property */ } else if (tsm_invoke_id_free(invoke_id)) { diff --git a/bacnet-stack/demo/object/trendlog.c b/bacnet-stack/demo/object/trendlog.c index d6ce6d32..939590c9 100644 --- a/bacnet-stack/demo/object/trendlog.c +++ b/bacnet-stack/demo/object/trendlog.c @@ -1685,8 +1685,8 @@ void trend_log_timer( * we don't miss a reading if we aren't called at the precise second * when the match occurrs. */ -// if(((tNow % CurrentLog->ulLogInterval) >= (CurrentLog->ulIntervalOffset % CurrentLog->ulLogInterval)) && -// ((tNow - CurrentLog->tLastDataTime) >= CurrentLog->ulLogInterval)) { +/* if(((tNow % CurrentLog->ulLogInterval) >= (CurrentLog->ulIntervalOffset % CurrentLog->ulLogInterval)) && */ +/* ((tNow - CurrentLog->tLastDataTime) >= CurrentLog->ulLogInterval)) { */ if((tNow % CurrentLog->ulLogInterval) == (CurrentLog->ulIntervalOffset % CurrentLog->ulLogInterval)) { /* Record value if time synchronised trigger condition is met * and at least one period has elapsed. diff --git a/bacnet-stack/include/trendlog.h b/bacnet-stack/include/trendlog.h index 25c26064..5538aa49 100644 --- a/bacnet-stack/include/trendlog.h +++ b/bacnet-stack/include/trendlog.h @@ -27,7 +27,7 @@ #include #include -#include // for time_t +#include /* for time_t */ #include "bacdef.h" #include "cov.h" #include "rp.h"