[svn:parrot] r38742 - trunk/src/io
fperrad at svn.parrot.org
fperrad at svn.parrot.org
Wed May 13 08:21:46 UTC 2009
Author: fperrad
Date: Wed May 13 08:21:45 2009
New Revision: 38742
URL: https://trac.parrot.org/parrot/changeset/38742
Log:
[codingstd] Correctly indented preprocessor directives
Modified:
trunk/src/io/unix.c
Modified: trunk/src/io/unix.c
==============================================================================
--- trunk/src/io/unix.c Wed May 13 07:59:23 2009 (r38741)
+++ trunk/src/io/unix.c Wed May 13 08:21:45 2009 (r38742)
@@ -673,10 +673,10 @@
/* Child - exec process */
if (pid == 0) {
/* See above comments */
- #if 0
+# if 0
char *argv[10], *p, *c, *cmd, *orig_cmd;
int n;
- #else
+# else
char * argv[10], *orig_cmd;
/* C strings for the execv call defined that way to avoid
@@ -684,7 +684,7 @@
*/
static char auxarg0 [] = "/bin/sh";
static char auxarg1 [] = "-c";
- #endif
+# endif
if (flags & PIO_F_WRITE) {
/* the other end is writing - we read from the pipe */
@@ -712,7 +712,7 @@
* TT #661
*******************************************************
*/
- #if 0
+# if 0
/* XXX ugly hack to be able to pass some arguments
* split cmd at blanks */
orig_cmd = cmd = Parrot_str_to_cstring(interp, command);
@@ -728,7 +728,7 @@
Parrot_str_free_cstring(c); /* done with C string */
execv(cmd, argv); /* XXX use execvp ? */
- #else
+# else
orig_cmd = Parrot_str_to_cstring(interp, command);
argv [0] = auxarg0;
@@ -737,7 +737,7 @@
argv [3] = NULL;
execv(argv [0], argv);
- #endif
+# endif
/* Will never reach this unless exec fails. */
Parrot_str_free_cstring(orig_cmd);
More information about the parrot-commits
mailing list