Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

C++-style comment in Src/exec.c



(Sorry if you get 2 copies, but my posts from work do not seem to be
showing up on the list.  Perhaps Teradyne is rejecting the
confirmation request as spam?)

There is a C++-style comment in Src/exec.c.  Here is a trivial patch:

--- ChangeLog~	2003-09-12 21:27:51.000000000 -0400
+++ ChangeLog	2003-09-12 21:39:37.000000000 -0400
@@ -0,0 +1,4 @@
+2003-09-12  Vin Shelton  <acs@xxxxxxxxxx>
+
+	* Src/exec.c (execcmd): Replace C++-style comment.
+
--- Src/exec.c~	2003-09-12 21:11:06.000000000 -0400
+++ Src/exec.c	2003-09-12 21:38:09.000000000 -0400
@@ -1824,7 +1824,7 @@
 	    cflags |= hn->flags;
 	    checked = 0;
 	    if (cflags & BINF_COMMAND && nextnode(firstnode(args))) {
-		// check for options to command builtin
+		/* check for options to command builtin */
 		char *next = (char *) getdata(nextnode(firstnode(args)));
 		char *cmdopt;
 		if (next && *next == '-' && strlen(next) == 2 &&
I've also included my earlier patch to zshconfig.ac.  Would somebody
please apply it?  I do not have write access.

Index: ChangeLog
===================================================================
RCS file: /cvsroot/zsh/zsh/ChangeLog,v
retrieving revision 1.2089
diff -a -u -u -0 -r1.2089 ChangeLog
--- ChangeLog	3 Sep 2003 14:07:25 -0000	1.2089
+++ ChangeLog	7 Sep 2003 04:03:38 -0000
@@ -0,0 +1,4 @@
+2003-09-06  Vin Shelton  <acs@xxxxxxxxxxxxxxxxxxxx>
+
+	* zshconfig.ac: Make sed grok icc's cpp output.
+
Index: zshconfig.ac
===================================================================
RCS file: /cvsroot/zsh/zsh/zshconfig.ac,v
retrieving revision 1.39
diff -a -u -r1.39 zshconfig.ac
--- zshconfig.ac	30 Aug 2003 19:16:22 -0000	1.39
+++ zshconfig.ac	7 Sep 2003 04:03:54 -0000
@@ -1081,7 +1081,8 @@
 dnl slashes rather than doubled backslashes in the path.
 echo "#include <signal.h>" > nametmp.c
 sigfile_list="`$CPP nametmp.c |
-sed -n 's/^#[ 	].*\"\(.*\)\"/\1/p' |
+sed -n -e 's/^#line[ 	].*\"\(.*\)\"/\1/p' \
+       -e 's/^#[ 	].*\"\(.*\)\"/\1/p' |
 sed 's/\\\\\\\\/\//g' |
 $AWK '{ if (\$1 ~ \"sig\") files[[\$1]] = \$1 }
   END { for (var in files) print var }'`"
@@ -1128,7 +1129,8 @@
 dnl slashes rather than doubled backslashes in the path.
 echo "#include <errno.h>" > nametmp.c
 errfile_list="`$CPP nametmp.c |
-sed -n 's/^#[ 	].*\"\(.*\)\"/\1/p' |
+sed -n -e 's/^#line[ 	].*\"\(.*\)\"/\1/p' \
+       -e 's/^#[ 	].*\"\(.*\)\"/\1/p' |
 sed 's/\\\\\\\\/\//g' |
 $AWK '{ if (\$1 ~ \"err\") files[[\$1]] = \$1 }
   END { for (var in files) print var }'`"
Thank you,
  Vin


Messages sorted by: Reverse Date, Date, Thread, Author