Author: paultcochrane
Date: Sat Mar 31 15:07:11 2007
New Revision: 17911
Modified:
trunk/src/io/io.c
trunk/src/io/io_buf.c
trunk/src/io/io_unix.c
trunk/src/io/io_win32.c
Log:
[src/io] Correcting parenthesis-space issues as per coding standards (part 4)
Modified: trunk/src/io/io.c
==============================================================================
--- trunk/src/io/io.c (original)
+++ trunk/src/io/io.c Sat Mar 31 15:07:11 2007
@@ -233,7 +233,7 @@
#endif
if ((io->stack->flags & PIO_L_LAYER_COPIED)) {
ParrotIOLayer *p, *down;
- for (p = io->stack; p; ) {
+ for (p = io->stack; p;) {
/* if top got copied, all have to be malloced */
assert(p->flags & PIO_L_LAYER_COPIED);
down = p->down;
@@ -331,7 +331,7 @@
* destruction into two parts (again).
*/
for (i = 0 ; i < PIO_NR_OPEN; i++) {
- if ( (pmc = interp->piodata->table[i]) ) {
+ if ((pmc = interp->piodata->table[i])) {
layer = PMC_struct_val(pmc);
io = PMC_data(pmc);
PIO_close_down(interp, layer, io);
@@ -341,7 +341,7 @@
/*
* TODO free IO of std-handles
*/
- for (layer = interp->piodata->default_stack; layer; ) {
+ for (layer = interp->piodata->default_stack; layer;) {
down = layer->down;
if (layer->api->Delete)
(*layer->api->Delete) (layer);
Modified: trunk/src/io/io_buf.c
==============================================================================
--- trunk/src/io/io_buf.c (original)
+++ trunk/src/io/io_buf.c Sat Mar 31 15:07:11 2007
@@ -557,7 +557,7 @@
}
buf_start = b->next;
- for (l = 0; b->next < b->endb; ) {
+ for (l = 0; b->next < b->endb;) {
l++;
if (IS_EOL(io, b->next++)) {
break;
Modified: trunk/src/io/io_unix.c
==============================================================================
--- trunk/src/io/io_unix.c (original)
+++ trunk/src/io/io_unix.c Sat Mar 31 15:07:11 2007
@@ -1066,7 +1066,7 @@
/* the other end is writing - we read from the pipe */
close(STDIN_FILENO);
close(fds[1]);
- if ( dup(fds[0]) != STDIN_FILENO) {
+ if (dup(fds[0]) != STDIN_FILENO) {
exit(0);
}
}
@@ -1075,8 +1075,8 @@
close(STDIN_FILENO);
close(STDOUT_FILENO);
close(STDERR_FILENO);
- if ( dup(fds[0]) != STDIN_FILENO || dup(fds[1]) != STDOUT_FILENO
- || dup(fds[1]) != STDERR_FILENO )
+ if (dup(fds[0]) != STDIN_FILENO || dup(fds[1]) != STDOUT_FILENO
+ || dup(fds[1]) != STDERR_FILENO)
{
exit(0);
}
Modified: trunk/src/io/io_win32.c
==============================================================================
--- trunk/src/io/io_win32.c (original)
+++ trunk/src/io/io_win32.c Sat Mar 31 15:07:11 2007
@@ -169,7 +169,7 @@
*/
ret = WSAStartup(2, &sockinfo);
if (ret != 0) {
- fprintf( stderr, "WSAStartup failed!!\n ErrorCode=%i\n\n",
+ fprintf(stderr, "WSAStartup failed!!\n ErrorCode=%i\n\n",
WSAGetLastError());
return -4;
}