summaryrefslogtreecommitdiff
path: root/config_h.SH
diff options
context:
space:
mode:
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>1996-08-29 22:32:23 +0000
committerAndy Dougherty <doughera@lafcol.lafayette.edu>1996-08-29 22:32:23 +0000
commita26b07455ad7b4e24ed0c8c0c352c4cfa06b15ec (patch)
tree8a9c576f5029e234cb59684f6815cbf8f8ec99e6 /config_h.SH
parent20e6841369d8491950d0c13290cb4e0b43965475 (diff)
downloadperl-a26b07455ad7b4e24ed0c8c0c352c4cfa06b15ec.tar.gz
perl 5.003_04: config_h.SH
Change /*#define../**/ into /*#define../ **/ to make IBM's xlc compiler shut up about nested comments. The /*#define FOO /**/ is a perfectly legal un-nested comment, and I wish IBM would fix it's blasted compiler instead. In the meantime we'll take mercy on the poor AIX user and get rid of the screenfulls of stupid warning messages. Thanks to Hallvard B Furuseth <h.b.furuseth@usit.uio.no> for the fix.
Diffstat (limited to 'config_h.SH')
-rwxr-xr-xconfig_h.SH5
1 files changed, 4 insertions, 1 deletions
diff --git a/config_h.SH b/config_h.SH
index 21cd2d974e..f00588f702 100755
--- a/config_h.SH
+++ b/config_h.SH
@@ -15,7 +15,7 @@ case "$0" in
*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
esac
echo "Extracting config.h (with variable substitutions)"
-sed <<!GROK!THIS! >config.h -e 's!^#undef!/\*#define!' -e 's!^#un-def!#undef!'
+sed <<!GROK!THIS! >config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!'
/*
* This file was produced by running the config_h.SH script, which
* gets its values from config.sh, which is generally produced by
@@ -51,6 +51,9 @@ sed <<!GROK!THIS! >config.h -e 's!^#undef!/\*#define!' -e 's!^#un-def!#undef!'
/* CAT2:
* This macro catenates 2 tokens together.
*/
+/* STRINGIFY:
+ * This macro surrounds its token with double quotes.
+ */
#if $cpp_stuff == 1
#define CAT2(a,b)a/**/b
#define CAT3(a,b,c)a/**/b/**/c