Fixed comments on #endif statements

This commit is contained in:
Janet B. Anderson
1995-02-21 17:51:22 +00:00
parent 63a3b6827c
commit 7cc6c1993d
6 changed files with 21 additions and 21 deletions

View File

@@ -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;
}

View File

@@ -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);
}

View File

@@ -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;

View File

@@ -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;

View File

@@ -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);

View File

@@ -36,7 +36,7 @@
#ifndef TRUE
#define TRUE 1
#define FALSE 0
#endif TRUE
#endif /* TRUE */
extern int line_num; /* input file line no. */
%}