From 7cc6c1993d3b083d30742e4828d4f984ac1cd401 Mon Sep 17 00:00:00 2001 From: "Janet B. Anderson" Date: Tue, 21 Feb 1995 17:51:22 +0000 Subject: [PATCH] Fixed comments on #endif statements --- src/sequencer/parse.c | 8 ++++---- src/sequencer/phase2.c | 2 +- src/sequencer/seq_ca.c | 14 +++++++------- src/sequencer/seq_main.c | 4 ++-- src/sequencer/seq_task.c | 12 ++++++------ src/sequencer/snc.y | 2 +- 6 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/sequencer/parse.c b/src/sequencer/parse.c index 457e00a6b..664be400b 100644 --- a/src/sequencer/parse.c +++ b/src/sequencer/parse.c @@ -27,7 +27,7 @@ #ifndef TRUE #define TRUE 1 #define FALSE 0 -#endif TRUE +#endif /* TRUE */ int debug_print_opt = 0; /* Debug level (set by source file) */ @@ -166,7 +166,7 @@ char *db_name; /* ptr to db name */ #ifdef DEBUG fprintf(stderr, "assign_stmt: name=%s, db_name=%s\n", name, db_name); -#endif DEBUG +#endif /* DEBUG */ /* Find the variable */ vp = (Var *)findVar(name); if (vp == 0) @@ -366,7 +366,7 @@ Expr *prog_list; ss_list = prog_list; #ifdef DEBUG fprintf(stderr, "----Phase2---\n"); -#endif DEBUG +#endif /* DEBUG */ phase2(ss_list); exit(0); @@ -442,7 +442,7 @@ Expr *ep2; /* beginning 2-nd (append it to 1-st) */ break; } fprintf(stderr, ")\n"); -#endif DEBUG +#endif /* DEBUG */ return ep1; } diff --git a/src/sequencer/phase2.c b/src/sequencer/phase2.c index 9e3567536..8cf97aeb2 100644 --- a/src/sequencer/phase2.c +++ b/src/sequencer/phase2.c @@ -131,7 +131,7 @@ reconcile_variables() { #ifdef DEBUG fprintf(stderr, "reconcile_variables: ss=%s\n", ssp->value); -#endif DEBUG +#endif /* DEBUG */ traverseExprTree(ssp, E_VAR, 0, connect_variable, 0); } diff --git a/src/sequencer/seq_ca.c b/src/sequencer/seq_ca.c index e26aae31c..cde9f8f8f 100644 --- a/src/sequencer/seq_ca.c +++ b/src/sequencer/seq_ca.c @@ -68,7 +68,7 @@ SPROG *pSP; { #ifdef DEBUG printf("connect to \"%s\"\n", pDB->db_name); -#endif DEBUG +#endif /* DEBUG */ /* Connect to it */ status = ca_build_and_connect( pDB->db_name, /* DB channel name */ @@ -155,7 +155,7 @@ SPROG *pSP; { #ifdef DEBUG printf("disconnect \"%s\"\n", pDB->db_name); -#endif DEBUG +#endif /* DEBUG */ /* Disconnect this channel */ status = ca_clear_channel(pDB->chid); @@ -206,7 +206,7 @@ struct connection_handler_args args; pSP->conn_count--; #ifdef DEBUG seq_log(pSP, "Channel \"%s\" disconnected\n", pDB->db_name); -#endif DEBUG +#endif /* DEBUG */ } else { @@ -214,14 +214,14 @@ struct connection_handler_args args; pSP->conn_count++; #ifdef DEBUG seq_log(pSP, "Channel \"%s\" connected\n", pDB->db_name); -#endif DEBUG +#endif /* DEBUG */ if (pDB->count > ca_element_count(args.chid)) { pDB->count = ca_element_count(args.chid); #ifdef DEBUG seq_log(pSP, "\"%s\": reset count to %d\n", pDB->db_name, pDB->count); -#endif DEBUG +#endif /* DEBUG */ } } @@ -404,7 +404,7 @@ CHAN *pDB; /* ptr to channel struct */ pDB->db_name, status); seq_log(pSP, " put_type=%d\n", pDB->put_type); seq_log(pSP, " size=%d, count=%d\n", pDB->size, pDB->count); -#endif DEBUG +#endif /* DEBUG */ } return status; @@ -422,7 +422,7 @@ CHAN *pDB; /* ptr to channel struct */ #ifdef DEBUG printf("monitor \"%s\"\n", pDB->db_name); -#endif DEBUG +#endif /* DEBUG */ if (pDB->monitored) return; diff --git a/src/sequencer/seq_main.c b/src/sequencer/seq_main.c index 568dc1dcf..686ae3fb5 100644 --- a/src/sequencer/seq_main.c +++ b/src/sequencer/seq_main.c @@ -101,7 +101,7 @@ int stack_size; /* optional stack size (bytes) */ #ifdef DEBUG print_sp_info(pSP_orig); -#endif DEBUG +#endif /* DEBUG */ /* Spawn the sequencer auxillary task */ if (seqAuxTaskId == 0) @@ -220,7 +220,7 @@ SPROG *pSP_orig; /* original state program structure */ user_size, mac_size, scr_size); printf(" size=%d=0x%x\n", size, size); printf(" dyn_ptr=%d=0x%x\n", dyn_ptr, dyn_ptr); -#endif DEBUG +#endif /* DEBUG */ /* Set ptrs in the PROG structure */ pSP_new = (SPROG *)dyn_ptr; diff --git a/src/sequencer/seq_task.c b/src/sequencer/seq_task.c index 4639619d3..118408450 100644 --- a/src/sequencer/seq_task.c +++ b/src/sequencer/seq_task.c @@ -338,7 +338,7 @@ int tid; /* Remove tasks' watchdog & suspend all state set tasks except self */ #ifdef DEBUG logMsg(" Suspending state set tasks:\n"); -#endif DEBUG +#endif /*DEBUG */ pSS = pSP->sscb; for (nss = 0; nss < pSP->nss; nss++, pSS++) { @@ -351,7 +351,7 @@ int tid; { #ifdef DEBUG logMsg(" suspend task: tid=%d\n", tid_ss); -#endif DEBUG +#endif /*DEBUG */ taskSuspend(tid_ss); } } @@ -364,7 +364,7 @@ int tid; { #ifdef DEBUG logMsg(" Call exit function\n"); -#endif DEBUG +#endif /*DEBUG */ pSP->exit_func(pSP, pSP->user_area); } @@ -382,7 +382,7 @@ int tid; { #ifdef DEBUG logMsg("Closing log fd=%d\n", pSP->logFd); -#endif DEBUG +#endif /*DEBUG */ close(pSP->logFd); pSP->logFd = ioGlobalStdGet(1); } @@ -399,7 +399,7 @@ int tid; { #ifdef DEBUG logMsg(" delete ss task: tid=%d\n", tid_ss); -#endif DEBUG +#endif /*DEBUG */ taskDelete(tid_ss); } @@ -417,7 +417,7 @@ int tid; /* Free the memory that was allocated for the task area */ #ifdef DEBUG logMsg("free pSP->dyn_ptr=0x%x\n", pSP->dyn_ptr); -#endif DEBUG +#endif /*DEBUG */ taskDelay(5); free(pSP->dyn_ptr); diff --git a/src/sequencer/snc.y b/src/sequencer/snc.y index dcc680990..c15ebff53 100644 --- a/src/sequencer/snc.y +++ b/src/sequencer/snc.y @@ -36,7 +36,7 @@ #ifndef TRUE #define TRUE 1 #define FALSE 0 -#endif TRUE +#endif /* TRUE */ extern int line_num; /* input file line no. */ %}