mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-28 16:54:20 +02:00
use for(;;) instead of while(1) to muffle some visual-C warnings
This commit is contained in:
@@ -163,7 +163,7 @@ static void EVTbackup_node_data(
|
||||
/* for tail, and splice later data into the free list */
|
||||
node_ptr = node_data->last_step[node_index];
|
||||
node = *node_ptr;
|
||||
while(1) {
|
||||
for (;;) {
|
||||
if((node->next == NULL) || (node->next->step > new_time)) {
|
||||
|
||||
/* Splice rest of list, if any, into free list */
|
||||
@@ -252,7 +252,7 @@ static void EVTbackup_state_data(
|
||||
/* for tail, and splice later data into the free list */
|
||||
state_ptr = state_data->last_step[inst_index];
|
||||
state = *state_ptr;
|
||||
while(1) {
|
||||
for (;;) {
|
||||
if((state->next == NULL) || (state->next->step > new_time)) {
|
||||
|
||||
/* Splice rest of list, if any, into free list */
|
||||
@@ -333,7 +333,7 @@ static void EVTbackup_msg_data(
|
||||
/* for tail, and splice later data into the free list */
|
||||
msg_ptr = msg_data->last_step[port_index];
|
||||
msg = *msg_ptr;
|
||||
while(1) {
|
||||
for (;;) {
|
||||
if((msg->next == NULL) || (msg->next->step > new_time)) {
|
||||
|
||||
/* Splice rest of list, if any, into free list */
|
||||
|
||||
@@ -157,7 +157,7 @@ Ipc_Status_t ipc_transport_get_line (str, len, wait)
|
||||
assert ((mbx_state == IPC_MBX_CONNECTED_TO_CLIENT) ||
|
||||
(mbx_state == IPC_MBX_INITIALIZED));
|
||||
|
||||
do {
|
||||
for (;;) {
|
||||
if (wait == IPC_WAIT) {
|
||||
mbx_$get_rec (mbx_handle, &mbx_recieve_msg_buf, mbx_$serv_msg_max,
|
||||
&mbx_ret_ptr, &mbx_ret_len, &status);
|
||||
@@ -231,7 +231,7 @@ Ipc_Status_t ipc_transport_get_line (str, len, wait)
|
||||
fprintf (stderr, "ERROR: IPC: Bad message type (0x%x) recieved\n",
|
||||
mbx_ret_ptr->mt);
|
||||
}
|
||||
} while (1);
|
||||
}
|
||||
return IPC_STATUS_ERROR;
|
||||
}
|
||||
|
||||
|
||||
@@ -126,7 +126,7 @@ MIFgetValue (
|
||||
|
||||
/* now get the values into val */
|
||||
|
||||
while(1) {
|
||||
for (;;) {
|
||||
|
||||
token = MIFget_token(line, &token_type);
|
||||
|
||||
|
||||
@@ -193,7 +193,7 @@ static void MIFterr(
|
||||
deltmp[i] = ckt->CKTdeltaOld[i];
|
||||
}
|
||||
j = ckt->CKTorder;
|
||||
while(1) {
|
||||
for (;;) {
|
||||
for(i=0;i <= j;i++) {
|
||||
diff[i] = (diff[i] - diff[i+1])/deltmp[i];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user