mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
Make sure that there is one space after for
This commit is contained in:
@@ -81,7 +81,7 @@ static void _up_assert(int errorcode)
|
||||
if (g_irqtos || ((FAR struct tcb_s*)g_readytorun.head)->pid == 0)
|
||||
{
|
||||
(void)irqsave();
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
board_led_on(LED_PANIC);
|
||||
|
||||
@@ -207,7 +207,7 @@ void os_start(void)
|
||||
|
||||
_up_puts("Test complete");
|
||||
_up_putnl();
|
||||
for(;;);
|
||||
for (;;);
|
||||
}
|
||||
|
||||
/************************************************************************
|
||||
|
||||
@@ -301,7 +301,7 @@ static void _up_assert(int errorcode)
|
||||
if (current_regs || ((struct tcb_s*)g_readytorun.head)->pid == 0)
|
||||
{
|
||||
(void)irqsave();
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
board_led_on(LED_PANIC);
|
||||
|
||||
@@ -317,7 +317,7 @@ static void _up_assert(int errorcode)
|
||||
if (current_regs || ((struct tcb_s*)g_readytorun.head)->pid == 0)
|
||||
{
|
||||
(void)irqsave();
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
board_led_on(LED_PANIC);
|
||||
|
||||
@@ -312,7 +312,7 @@ static void _up_assert(int errorcode)
|
||||
if (current_regs || ((struct tcb_s*)g_readytorun.head)->pid == 0)
|
||||
{
|
||||
(void)irqsave();
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
board_led_on(LED_PANIC);
|
||||
|
||||
@@ -327,7 +327,7 @@ static void _up_assert(int errorcode)
|
||||
if (current_regs || ((struct tcb_s*)g_readytorun.head)->pid == 0)
|
||||
{
|
||||
(void)irqsave();
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
board_led_on(LED_PANIC);
|
||||
|
||||
@@ -185,7 +185,7 @@ pid_t up_vfork(const struct vfork_s *context)
|
||||
/* Make some feeble effort to perserve the stack contents. This is
|
||||
* feeble because the stack surely contains invalid pointers and other
|
||||
* content that will not work in the child context. However, if the
|
||||
* user follows all of the caveats of vfor() usage, even this feeble
|
||||
* user follows all of the caveats of vfork() usage, even this feeble
|
||||
* effort is overkill.
|
||||
*/
|
||||
|
||||
|
||||
@@ -493,7 +493,7 @@ static int up_interrupt(int irq, void *context)
|
||||
* until we have been looping for a long time.
|
||||
*/
|
||||
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
/* Get the current UART status and check for loop
|
||||
* termination conditions
|
||||
|
||||
@@ -832,7 +832,7 @@ static int up_interrupt(int irq, void *context)
|
||||
* until we have been looping for a long time.
|
||||
*/
|
||||
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
/* Get the current UART status and check for loop
|
||||
* termination conditions
|
||||
|
||||
@@ -165,5 +165,5 @@ void __start(void)
|
||||
|
||||
/* Shouldn't get here */
|
||||
|
||||
for(;;);
|
||||
for (;;);
|
||||
}
|
||||
|
||||
@@ -181,6 +181,6 @@ void __start(void)
|
||||
|
||||
/* Shoulnd't get here */
|
||||
|
||||
for(;;);
|
||||
for (;;);
|
||||
}
|
||||
|
||||
|
||||
@@ -257,5 +257,5 @@ void __start(void)
|
||||
|
||||
/* Shouldn't get here */
|
||||
|
||||
for(;;);
|
||||
for (;;);
|
||||
}
|
||||
|
||||
@@ -357,5 +357,5 @@ void __start(void)
|
||||
|
||||
/* Shouldn't get here */
|
||||
|
||||
for(;;);
|
||||
for (;;);
|
||||
}
|
||||
|
||||
@@ -174,5 +174,5 @@ void __start(void)
|
||||
|
||||
/* Shoulnd't get here */
|
||||
|
||||
for(;;);
|
||||
for (;;);
|
||||
}
|
||||
|
||||
@@ -191,5 +191,5 @@ void __start(void)
|
||||
|
||||
/* Shouldn't get here */
|
||||
|
||||
for(;;);
|
||||
for (;;);
|
||||
}
|
||||
|
||||
@@ -175,5 +175,5 @@ void __start(void)
|
||||
|
||||
/* Shoulnd't get here */
|
||||
|
||||
for(;;);
|
||||
for (;;);
|
||||
}
|
||||
|
||||
@@ -306,6 +306,6 @@ void __start(void)
|
||||
|
||||
/* Shoulnd't get here */
|
||||
|
||||
for(;;);
|
||||
for (;;);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -165,5 +165,5 @@ void __start(void)
|
||||
|
||||
/* Shoulnd't get here */
|
||||
|
||||
for(;;);
|
||||
for (;;);
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ static void _up_assert(int errorcode)
|
||||
if (current_regs || ((struct tcb_s*)g_readytorun.head)->pid == 0)
|
||||
{
|
||||
(void)irqsave();
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
board_led_on(LED_PANIC);
|
||||
|
||||
@@ -280,7 +280,7 @@ static void _up_assert(int errorcode)
|
||||
if (current_regs || ((struct tcb_s*)g_readytorun.head)->pid == 0)
|
||||
{
|
||||
(void)irqsave();
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
board_led_on(LED_PANIC);
|
||||
|
||||
@@ -105,7 +105,7 @@ static void _up_assert(int errorcode)
|
||||
if (current_regs || ((struct tcb_s*)g_readytorun.head)->pid == 0)
|
||||
{
|
||||
(void)irqsave();
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
board_led_on(LED_PANIC);
|
||||
|
||||
@@ -190,7 +190,7 @@ pid_t up_vfork(const struct vfork_s *context)
|
||||
/* Make some feeble effort to perserve the stack contents. This is
|
||||
* feeble because the stack surely contains invalid pointers and other
|
||||
* content that will not work in the child context. However, if the
|
||||
* user follows all of the caveats of vfor() usage, even this feeble
|
||||
* user follows all of the caveats of vfork() usage, even this feeble
|
||||
* effort is overkill.
|
||||
*/
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ static void _up_assert(int errorcode)
|
||||
if (current_regs || ((struct tcb_s*)g_readytorun.head)->pid == 0)
|
||||
{
|
||||
(void)irqsave();
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
board_led_on(LED_PANIC);
|
||||
|
||||
@@ -242,7 +242,7 @@ static void _up_assert(int errorcode)
|
||||
if (current_regs || ((struct tcb_s*)g_readytorun.head)->pid == 0)
|
||||
{
|
||||
(void)irqsave();
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
board_led_on(LED_PANIC);
|
||||
|
||||
@@ -294,12 +294,12 @@ static int init_graph_vga(int width, int height,int chain4)
|
||||
outb(val, 0x3c2);
|
||||
outw(0x0e11, 0x3d4); /* enable regs 0-7 */
|
||||
|
||||
for(a = 0; a < SZ(g_hor_regs); ++a)
|
||||
for (a = 0; a < SZ(g_hor_regs); ++a)
|
||||
{
|
||||
outw((uint16_t)((w[a] << 8) + g_hor_regs[a]), 0x3d4);
|
||||
}
|
||||
|
||||
for(a = 0; a < SZ(g_ver_regs); ++a)
|
||||
for (a = 0; a < SZ(g_ver_regs); ++a)
|
||||
{
|
||||
outw((uint16_t)((h[a] << 8) + g_ver_regs[a]), 0x3d4);
|
||||
}
|
||||
@@ -330,7 +330,7 @@ static int init_graph_vga(int width, int height,int chain4)
|
||||
outb(0x33, 0x3c0);
|
||||
outb(0x00, 0x3c0);
|
||||
|
||||
for(a = 0; a < 16; a++) /* ega pal */
|
||||
for (a = 0; a < 16; a++) /* ega pal */
|
||||
{
|
||||
outb((uint8_t)a, 0x3c0);
|
||||
outb((uint8_t)a, 0x3c0);
|
||||
|
||||
@@ -91,7 +91,7 @@ static void _up_assert(int errorcode) /* noreturn_function */
|
||||
if (up_interrupt_context() || ((FAR struct tcb_s*)g_readytorun.head)->pid == 0)
|
||||
{
|
||||
(void)irqsave();
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
board_led_on(LED_PANIC);
|
||||
|
||||
@@ -90,7 +90,7 @@ static void _up_assert(int errorcode) /* noreturn_function */
|
||||
if (up_interrupt_context() || ((FAR struct tcb_s*)g_readytorun.head)->pid == 0)
|
||||
{
|
||||
(void)irqsave();
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
board_led_on(LED_PANIC);
|
||||
|
||||
@@ -300,7 +300,7 @@ static uint8_t spi_transfer(uint8_t ch)
|
||||
|
||||
/* Send the byte, repeating if some error occurs */
|
||||
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
outp(EZ80_SPI_TSR, ch);
|
||||
|
||||
|
||||
@@ -195,7 +195,7 @@ void open1788_sdram_initialize(void)
|
||||
|
||||
/* Wait 128 AHB clock cycles */
|
||||
|
||||
for(i = 0; i < 128; i++);
|
||||
for (i = 0; i < 128; i++);
|
||||
|
||||
/* 64ms/8192 = 7.8125us, nx16x8.33ns < 7.8125us, n < 58.6*/
|
||||
|
||||
|
||||
@@ -665,7 +665,7 @@ int main(int argc, char **argv, char **envp)
|
||||
|
||||
/* Loopo until control-C */
|
||||
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
/* Read characters from the console, and echo them to the target tty */
|
||||
|
||||
|
||||
@@ -104,5 +104,5 @@ void board_power_off(void)
|
||||
|
||||
// trigger shutdown with pull-up resistor (not push-pull!) and wait.
|
||||
stm32_gpiowrite(GPIO_PCLR, true);
|
||||
for(;;);
|
||||
for (;;);
|
||||
}
|
||||
|
||||
+126
-154
File diff suppressed because it is too large
Load Diff
@@ -653,7 +653,7 @@ static inline void rit_clear(FAR struct rit_dev_s *priv)
|
||||
|
||||
/* Display each row */
|
||||
|
||||
for(row = 0; row < RIT_YRES; row++)
|
||||
for (row = 0; row < RIT_YRES; row++)
|
||||
{
|
||||
/* Display a horizontal run */
|
||||
|
||||
@@ -680,7 +680,7 @@ static inline void rit_clear(FAR struct rit_dev_s *priv)
|
||||
|
||||
/* Display each row */
|
||||
|
||||
for(row = 0; row < RIT_YRES; row++)
|
||||
for (row = 0; row < RIT_YRES; row++)
|
||||
{
|
||||
/* Display a horizontal run */
|
||||
|
||||
|
||||
@@ -286,7 +286,7 @@ static inline int nxffs_startpos(FAR struct nxffs_volume_s *volume,
|
||||
* compacting.
|
||||
*/
|
||||
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
/* Is there wasted space between the offset where the we could have
|
||||
* valid data and the offset to the beginning of the first valid
|
||||
|
||||
@@ -133,7 +133,7 @@ int inet_pton(int af, FAR const char *src, FAR void *dst)
|
||||
numoffset = 0;
|
||||
ndots = 0;
|
||||
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
ch = (uint8_t)src[srcoffset++];
|
||||
|
||||
@@ -231,7 +231,7 @@ int inet_pton(int af, FAR const char *src, FAR void *dst)
|
||||
nrsep = 0;
|
||||
rtime = false;
|
||||
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
ch = (uint8_t)src[srcoffset++];
|
||||
|
||||
|
||||
+1
-1
@@ -66,7 +66,7 @@ void sq_rem(FAR sq_entry_t *node, sq_queue_t *queue)
|
||||
else
|
||||
{
|
||||
FAR sq_entry_t *prev;
|
||||
for(prev = (FAR sq_entry_t*)queue->head;
|
||||
for (prev = (FAR sq_entry_t*)queue->head;
|
||||
prev && prev->flink != node;
|
||||
prev = prev->flink);
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ FAR sq_entry_t *sq_remlast(sq_queue_t *queue)
|
||||
else
|
||||
{
|
||||
FAR sq_entry_t *prev;
|
||||
for(prev = queue->head;
|
||||
for (prev = queue->head;
|
||||
prev && prev->flink != ret;
|
||||
prev = prev->flink);
|
||||
|
||||
|
||||
@@ -177,7 +177,7 @@ FAR char *lib_fgets(FAR char *buf, size_t buflen, FILE *stream,
|
||||
* the next character and one for the null terminator.
|
||||
*/
|
||||
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
/* Get the next character */
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ void uip_neighbor_init(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
for(i = 0; i < ENTRIES; ++i)
|
||||
for (i = 0; i < ENTRIES; ++i)
|
||||
{
|
||||
entries[i].time = MAX_TIME;
|
||||
}
|
||||
@@ -68,7 +68,7 @@ void uip_neighbor_periodic(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
for(i = 0; i < ENTRIES; ++i)
|
||||
for (i = 0; i < ENTRIES; ++i)
|
||||
{
|
||||
if (entries[i].time < MAX_TIME)
|
||||
{
|
||||
@@ -125,7 +125,7 @@ static struct neighbor_entry *find_entry(uip_ipaddr_t ipaddr)
|
||||
{
|
||||
int i;
|
||||
|
||||
for(i = 0; i < ENTRIES; ++i)
|
||||
for (i = 0; i < ENTRIES; ++i)
|
||||
{
|
||||
if (uip_ipaddr_cmp(entries[i].ipaddr, ipaddr))
|
||||
{
|
||||
|
||||
@@ -220,9 +220,9 @@ static FAR sigpendq_t *sig_findpendingsignal(FAR struct task_group_s *group,
|
||||
|
||||
/* Seach the list for a sigpendion on this signal */
|
||||
|
||||
for(sigpend = (FAR sigpendq_t*)group->sigpendingq.head;
|
||||
(sigpend && sigpend->info.si_signo != signo);
|
||||
sigpend = sigpend->flink);
|
||||
for (sigpend = (FAR sigpendq_t*)group->sigpendingq.head;
|
||||
(sigpend && sigpend->info.si_signo != signo);
|
||||
sigpend = sigpend->flink);
|
||||
|
||||
irqrestore(saved_state);
|
||||
return sigpend;
|
||||
|
||||
@@ -89,7 +89,7 @@ FAR sigactq_t *sig_findaction(FAR struct tcb_s *stcb, int signo)
|
||||
|
||||
/* Seach the list for a sigaction on this signal */
|
||||
|
||||
for(sigact = (FAR sigactq_t*)stcb->sigactionq.head;
|
||||
for (sigact = (FAR sigactq_t*)stcb->sigactionq.head;
|
||||
((sigact) && (sigact->signo != signo));
|
||||
sigact = sigact->flink);
|
||||
|
||||
|
||||
@@ -690,7 +690,7 @@ static char *read_line(FILE *stream)
|
||||
|
||||
/* Loop to handle continuation lines */
|
||||
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
/* How long is the line so far? */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user