summaryrefslogtreecommitdiff
path: root/parallel
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2004-03-12 01:14:00 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2004-03-12 01:14:00 +0000
commitee9cbd17961f4c418e9609c840ffb850bbdc08d1 (patch)
treed86da711ba653fc0138b6ae5889cb172e6c844cd /parallel
parent6a951ba5932caa215c80aba6ddc124a389537f19 (diff)
downloadpkgsrc-ee9cbd17961f4c418e9609c840ffb850bbdc08d1.tar.gz
add config files for missing NetBSD MACHINE_ARCH's such as sh5e{b,l},
x86_64, and a few others.
Diffstat (limited to 'parallel')
-rw-r--r--parallel/pvm3/Makefile4
-rw-r--r--parallel/pvm3/distinfo18
-rw-r--r--parallel/pvm3/patches/patch-ax23
-rw-r--r--parallel/pvm3/patches/patch-az45
-rw-r--r--parallel/pvm3/patches/patch-ba15
-rw-r--r--parallel/pvm3/patches/patch-bb24
-rw-r--r--parallel/pvm3/patches/patch-bc15
-rw-r--r--parallel/pvm3/patches/patch-bd24
-rw-r--r--parallel/pvm3/patches/patch-be15
-rw-r--r--parallel/pvm3/patches/patch-bf24
-rw-r--r--parallel/pvm3/patches/patch-bg15
-rw-r--r--parallel/pvm3/patches/patch-bh24
-rw-r--r--parallel/pvm3/patches/patch-bi15
-rw-r--r--parallel/pvm3/patches/patch-bj24
-rw-r--r--parallel/pvm3/patches/patch-bk15
-rw-r--r--parallel/pvm3/patches/patch-bl24
16 files changed, 307 insertions, 17 deletions
diff --git a/parallel/pvm3/Makefile b/parallel/pvm3/Makefile
index 50f57d4f466..a10d28d3022 100644
--- a/parallel/pvm3/Makefile
+++ b/parallel/pvm3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.28 2004/02/25 03:47:50 dmcmahill Exp $
+# $NetBSD: Makefile,v 1.29 2004/03/12 01:14:00 dmcmahill Exp $
DISTNAME= pvm3.4.4
PKGNAME= pvm-3.4.4
@@ -34,7 +34,7 @@ ALL_TARGET= all install
PVM_DIR= ${PREFIX}/pvm3
# avoid installing this file
-post-patch:
+pre-install:
${RM} -f ${WRKSRC}/lib/pvmgetarch.orig
${RM} -f ${WRKSRC}/man/man1/pvm_intro.1.orig
diff --git a/parallel/pvm3/distinfo b/parallel/pvm3/distinfo
index 2536327b73e..04fdb015db6 100644
--- a/parallel/pvm3/distinfo
+++ b/parallel/pvm3/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2002/11/09 15:24:25 is Exp $
+$NetBSD: distinfo,v 1.10 2004/03/12 01:14:00 dmcmahill Exp $
SHA1 (pvm3.4.4.tgz) = 95bfabee61383fe2223ee2f539129bb54b5afb40
Size (pvm3.4.4.tgz) = 967852 bytes
@@ -25,6 +25,18 @@ SHA1 (patch-at) = 4afe071e3b286efc40c12f2e2e21304d190abde8
SHA1 (patch-au) = 4c560b4b3c90088e2dc471951f696a1c5f4ef8dd
SHA1 (patch-av) = 4aa08bfe0f8e8e02762db9d8aff452bdc0805825
SHA1 (patch-aw) = a97cdb684b24d7a4b0bcaea0814ebebfb9687b7d
-SHA1 (patch-ax) = 16b05a5d320d7badcdc080ab523efaedbb6868f3
+SHA1 (patch-ax) = 287e172700364295298703698b34c0369c1421ad
SHA1 (patch-ay) = 9449278c2c6f9ec07e3595edf6e00755bae07edf
-SHA1 (patch-az) = cf1d2b175916a5b5b0f84920a3ec3b248ff71fa0
+SHA1 (patch-az) = 8f3879e1c734406ae4d6752c025d42925a56893a
+SHA1 (patch-ba) = b61612bc5375426abeb9aa5b527cfc0b892c4720
+SHA1 (patch-bb) = 4e563c280e4bcf94e546797c1d99248ab1ad5008
+SHA1 (patch-bc) = 7eec4f89255c3d5c64e5ec03574af77aa11a1347
+SHA1 (patch-bd) = cf7b76748d17a2ee8f9872b45d35e6ab6429f875
+SHA1 (patch-be) = 911a3774d749b6bd3f598000018c959b5bb588f5
+SHA1 (patch-bf) = ca5dceb87f9dcba715f4b01982924267e1eb5b0d
+SHA1 (patch-bg) = 418fbcf8b02aa04ea3041190828475ca931ae591
+SHA1 (patch-bh) = 16533fdec088fc575c829ed7e09a8647bd17e322
+SHA1 (patch-bi) = ba5b187647797cf7eec35e0dcb53fe1d4c64cead
+SHA1 (patch-bj) = 1c2817c77e7acf7876625e4b9989982bb80e345e
+SHA1 (patch-bk) = 753d265149b704e88e2906dedcc9e9ae5a00800f
+SHA1 (patch-bl) = 5faec2ed16c8711da93ad487c301558d36bc7ed8
diff --git a/parallel/pvm3/patches/patch-ax b/parallel/pvm3/patches/patch-ax
index e3de6098961..b28940c43e5 100644
--- a/parallel/pvm3/patches/patch-ax
+++ b/parallel/pvm3/patches/patch-ax
@@ -1,8 +1,8 @@
-$NetBSD: patch-ax,v 1.3 2002/08/05 01:26:41 dmcmahill Exp $
+$NetBSD: patch-ax,v 1.4 2004/03/12 01:14:00 dmcmahill Exp $
---- lib/pvmgetarch.orig Wed Feb 16 16:48:50 2000
+--- lib/pvmgetarch.orig Thu Sep 27 21:24:04 2001
+++ lib/pvmgetarch
-@@ -136,7 +136,10 @@
+@@ -141,17 +141,27 @@ if [ "$ARCH" = UNKNOWN ]; then
# sun3) ARCH=NETBSDSUN3 ;; --> NETBSDM68K
case "`/usr/bin/uname -p`" in
alpha) ARCH=NETBSDALPHA ;;
@@ -11,5 +11,22 @@ $NetBSD: patch-ax,v 1.3 2002/08/05 01:26:41 dmcmahill Exp $
+ armeb) ARCH=NETBSDARMEB ;;
+ hppa) ARCH=NETBSDHPPA ;;
i386) ARCH=NETBSDI386 ;;
++ m68000) ARCH=NETBSDM68000 ;;
m68k) ARCH=NETBSDM68K ;;
mipseb) ARCH=NETBSDMIPSEB ;;
+ mipsel) ARCH=NETBSDMIPSEL ;;
+ ns32k) ARCH=NETBSDNS32K ;;
++ pdp10) ARCH=NETBSDPDP10 ;;
+ powerpc) ARCH=NETBSDPOWERPC ;;
+ sh3) ARCH=NETBSDSH3 ;;
++ sh3eb) ARCH=NETBSDSH3EB ;;
++ sh3el) ARCH=NETBSDSH3EL ;;
++ sh5eb) ARCH=NETBSDSH5EB ;;
++ sh5el) ARCH=NETBSDSH5EL ;;
+ sparc) ARCH=NETBSDSPARC ;;
+ sparc64) ARCH=NETBSDSPARC64 ;;
+ vax) ARCH=NETBSDVAX ;;
++ x86_64) ARCH=NETBSDX86_64 ;;
+ esac
+ elif [ -f /usr/bin/machine ]; then
+ case "`/usr/bin/machine`" in
diff --git a/parallel/pvm3/patches/patch-az b/parallel/pvm3/patches/patch-az
index a4ea77b3c40..3b4feff217c 100644
--- a/parallel/pvm3/patches/patch-az
+++ b/parallel/pvm3/patches/patch-az
@@ -1,8 +1,8 @@
-$NetBSD: patch-az,v 1.3 2002/11/09 12:10:20 is Exp $
+$NetBSD: patch-az,v 1.4 2004/03/12 01:14:00 dmcmahill Exp $
---- man/man1/pvm_intro.1.old Fri Feb 18 18:12:52 2000
-+++ man/man1/pvm_intro.1 Sat Nov 9 11:21:26 2002
-@@ -145,24 +145,24 @@
+--- man/man1/pvm_intro.1.orig Thu Sep 27 17:55:23 2001
++++ man/man1/pvm_intro.1
+@@ -145,24 +145,27 @@ Mips
NETBSDALPHA
DEC Alpha running NetBSD
.TP
@@ -26,6 +26,9 @@ $NetBSD: patch-az,v 1.3 2002/11/09 12:10:20 is Exp $
NETBSDI386
-80[345]86 running NetBSD
+80[3456]86 running NetBSD
++.TP
++NETBSDM68000
++Any Motorola 68000 (i.e. sun2) running NetBSD
.TP
NETBSDM68K
Any Motorola 68K running NetBSD
@@ -36,23 +39,47 @@ $NetBSD: patch-az,v 1.3 2002/11/09 12:10:20 is Exp $
NETBSDMIPSEB
Mips EB running NetBSD
.TP
-@@ -172,9 +172,6 @@
+@@ -172,8 +175,8 @@ Mips EL running NetBSD
NETBSDNS32K
NS32K running NetBSD
.TP
-NETBSDPMAX
-DEC Pmax running NetBSD
--.TP
++NETBSDPDP10
++PDP10 running NetBSD
+ .TP
NETBSDPOWERPC
PowerPC running NetBSD
+@@ -181,17 +184,29 @@ PowerPC running NetBSD
+ NETBSDSH3
+ SH3 running NetBSD
.TP
-@@ -186,9 +183,6 @@
++NETBSDSH3EB
++Big endian SH3 running NetBSD
++.TP
++NETBSDSH3EL
++Little endian SH3 running NetBSD
++.TP
++NETBSDSH5EB
++Big endian SH3 running NetBSD
++.TP
++NETBSDSH5EL
++Little endian SH3 running NetBSD
++.TP
+ NETBSDSPARC
+ Sparc running NetBSD
.TP
NETBSDSPARC64
Sparc64 running NetBSD
--.TP
+ .TP
-NETBSDSUN3
-SUN 3 running NetBSD
- .TP
+-.TP
NETBSDVAX
Vax running NetBSD
++.TP
++NETBSDX86_64
++x86_64 (amd64) running NetBSD
+ .TP
+ NEXT
+ NeXT
diff --git a/parallel/pvm3/patches/patch-ba b/parallel/pvm3/patches/patch-ba
new file mode 100644
index 00000000000..8c8daae5ae4
--- /dev/null
+++ b/parallel/pvm3/patches/patch-ba
@@ -0,0 +1,15 @@
+$NetBSD: patch-ba,v 1.3 2004/03/12 01:14:00 dmcmahill Exp $
+
+--- /dev/null Tue Jul 30 16:47:47 2002
++++ conf/NETBSDPDP10.def Tue Jul 30 16:51:01 2002
+@@ -0,0 +1,10 @@
++ARCHCFLAGS = -DCTIMEISTIMET -DSOCKADHASLEN -DRSHCOMMAND=\"${SSH}\" \
++ -DHASERRORVARS -DNOREXEC -DNEEDMENDIAN -DSYSERRISCONST
++ARCHDLIB =
++ARCHDOBJ =
++ARCHLIB =
++HASRANLIB = t
++AR = ar
++PVM_ARCH = NETBSDPDP10
++MAKE = make
++#MAKE = gmake
diff --git a/parallel/pvm3/patches/patch-bb b/parallel/pvm3/patches/patch-bb
new file mode 100644
index 00000000000..6f264edda68
--- /dev/null
+++ b/parallel/pvm3/patches/patch-bb
@@ -0,0 +1,24 @@
+$NetBSD: patch-bb,v 1.3 2004/03/12 01:14:00 dmcmahill Exp $
+
+--- /dev/null Tue Jul 30 16:47:47 2002
++++ conf/NETBSDPDP10.m4 Tue Jul 30 16:49:44 2002
+@@ -0,0 +1,19 @@
++divert(-1)
++undefine(`len')
++#
++# append an underscore to FORTRAN function names
++#
++define(`FUNCTION',`$1_')
++#
++# FORTRAN character strings are passed as follows:
++# a pointer to the base of the string is passed in the normal
++# argument list, and the length is passed by value as an extra
++# argument, after all of the other arguments.
++#
++define(`ARGS',`($1`'undivert(1))')
++define(`SAVE',`divert(1)$1`'divert(0)')
++define(`STRING_ARG',`$1_ptr`'SAVE(`, $1_len')')
++define(`STRING_ARG_DECL',`char * $1_ptr; int $1_len')
++define(`STRING_LEN',`$1_len')
++define(`STRING_PTR',`$1_ptr')
++divert(0)
diff --git a/parallel/pvm3/patches/patch-bc b/parallel/pvm3/patches/patch-bc
new file mode 100644
index 00000000000..22945fa91a4
--- /dev/null
+++ b/parallel/pvm3/patches/patch-bc
@@ -0,0 +1,15 @@
+$NetBSD: patch-bc,v 1.3 2004/03/12 01:14:00 dmcmahill Exp $
+
+--- /dev/null Tue Jul 30 16:47:47 2002
++++ conf/NETBSDM68000.def Tue Jul 30 16:51:01 2002
+@@ -0,0 +1,10 @@
++ARCHCFLAGS = -DCTIMEISTIMET -DSOCKADHASLEN -DRSHCOMMAND=\"${SSH}\" \
++ -DHASERRORVARS -DNOREXEC -DNEEDMENDIAN -DSYSERRISCONST
++ARCHDLIB =
++ARCHDOBJ =
++ARCHLIB =
++HASRANLIB = t
++AR = ar
++PVM_ARCH = NETBSDM68000
++MAKE = make
++#MAKE = gmake
diff --git a/parallel/pvm3/patches/patch-bd b/parallel/pvm3/patches/patch-bd
new file mode 100644
index 00000000000..bf0d58035ed
--- /dev/null
+++ b/parallel/pvm3/patches/patch-bd
@@ -0,0 +1,24 @@
+$NetBSD: patch-bd,v 1.3 2004/03/12 01:14:00 dmcmahill Exp $
+
+--- /dev/null Tue Jul 30 16:47:47 2002
++++ conf/NETBSDM68000.m4 Tue Jul 30 16:49:44 2002
+@@ -0,0 +1,19 @@
++divert(-1)
++undefine(`len')
++#
++# append an underscore to FORTRAN function names
++#
++define(`FUNCTION',`$1_')
++#
++# FORTRAN character strings are passed as follows:
++# a pointer to the base of the string is passed in the normal
++# argument list, and the length is passed by value as an extra
++# argument, after all of the other arguments.
++#
++define(`ARGS',`($1`'undivert(1))')
++define(`SAVE',`divert(1)$1`'divert(0)')
++define(`STRING_ARG',`$1_ptr`'SAVE(`, $1_len')')
++define(`STRING_ARG_DECL',`char * $1_ptr; int $1_len')
++define(`STRING_LEN',`$1_len')
++define(`STRING_PTR',`$1_ptr')
++divert(0)
diff --git a/parallel/pvm3/patches/patch-be b/parallel/pvm3/patches/patch-be
new file mode 100644
index 00000000000..01fd1317ed8
--- /dev/null
+++ b/parallel/pvm3/patches/patch-be
@@ -0,0 +1,15 @@
+$NetBSD: patch-be,v 1.3 2004/03/12 01:14:00 dmcmahill Exp $
+
+--- /dev/null Tue Jul 30 16:47:47 2002
++++ conf/NETBSDSH3EB.def Tue Jul 30 16:51:01 2002
+@@ -0,0 +1,10 @@
++ARCHCFLAGS = -DCTIMEISTIMET -DSOCKADHASLEN -DRSHCOMMAND=\"${SSH}\" \
++ -DHASERRORVARS -DNOREXEC -DNEEDMENDIAN -DSYSERRISCONST
++ARCHDLIB =
++ARCHDOBJ =
++ARCHLIB =
++HASRANLIB = t
++AR = ar
++PVM_ARCH = NETBSDSH3EB
++MAKE = make
++#MAKE = gmake
diff --git a/parallel/pvm3/patches/patch-bf b/parallel/pvm3/patches/patch-bf
new file mode 100644
index 00000000000..6a21403ed2e
--- /dev/null
+++ b/parallel/pvm3/patches/patch-bf
@@ -0,0 +1,24 @@
+$NetBSD: patch-bf,v 1.3 2004/03/12 01:14:00 dmcmahill Exp $
+
+--- /dev/null Tue Jul 30 16:47:47 2002
++++ conf/NETBSDSH3EB.m4 Tue Jul 30 16:49:44 2002
+@@ -0,0 +1,19 @@
++divert(-1)
++undefine(`len')
++#
++# append an underscore to FORTRAN function names
++#
++define(`FUNCTION',`$1_')
++#
++# FORTRAN character strings are passed as follows:
++# a pointer to the base of the string is passed in the normal
++# argument list, and the length is passed by value as an extra
++# argument, after all of the other arguments.
++#
++define(`ARGS',`($1`'undivert(1))')
++define(`SAVE',`divert(1)$1`'divert(0)')
++define(`STRING_ARG',`$1_ptr`'SAVE(`, $1_len')')
++define(`STRING_ARG_DECL',`char * $1_ptr; int $1_len')
++define(`STRING_LEN',`$1_len')
++define(`STRING_PTR',`$1_ptr')
++divert(0)
diff --git a/parallel/pvm3/patches/patch-bg b/parallel/pvm3/patches/patch-bg
new file mode 100644
index 00000000000..aba480e73bc
--- /dev/null
+++ b/parallel/pvm3/patches/patch-bg
@@ -0,0 +1,15 @@
+$NetBSD: patch-bg,v 1.3 2004/03/12 01:14:00 dmcmahill Exp $
+
+--- /dev/null Tue Jul 30 16:47:47 2002
++++ conf/NETBSDSH3EL.def Tue Jul 30 16:51:01 2002
+@@ -0,0 +1,10 @@
++ARCHCFLAGS = -DCTIMEISTIMET -DSOCKADHASLEN -DRSHCOMMAND=\"${SSH}\" \
++ -DHASERRORVARS -DNOREXEC -DNEEDMENDIAN -DSYSERRISCONST
++ARCHDLIB =
++ARCHDOBJ =
++ARCHLIB =
++HASRANLIB = t
++AR = ar
++PVM_ARCH = NETBSDSH3EL
++MAKE = make
++#MAKE = gmake
diff --git a/parallel/pvm3/patches/patch-bh b/parallel/pvm3/patches/patch-bh
new file mode 100644
index 00000000000..f9c5c4148aa
--- /dev/null
+++ b/parallel/pvm3/patches/patch-bh
@@ -0,0 +1,24 @@
+$NetBSD: patch-bh,v 1.3 2004/03/12 01:14:00 dmcmahill Exp $
+
+--- /dev/null Tue Jul 30 16:47:47 2002
++++ conf/NETBSDSH3EL.m4 Tue Jul 30 16:49:44 2002
+@@ -0,0 +1,19 @@
++divert(-1)
++undefine(`len')
++#
++# append an underscore to FORTRAN function names
++#
++define(`FUNCTION',`$1_')
++#
++# FORTRAN character strings are passed as follows:
++# a pointer to the base of the string is passed in the normal
++# argument list, and the length is passed by value as an extra
++# argument, after all of the other arguments.
++#
++define(`ARGS',`($1`'undivert(1))')
++define(`SAVE',`divert(1)$1`'divert(0)')
++define(`STRING_ARG',`$1_ptr`'SAVE(`, $1_len')')
++define(`STRING_ARG_DECL',`char * $1_ptr; int $1_len')
++define(`STRING_LEN',`$1_len')
++define(`STRING_PTR',`$1_ptr')
++divert(0)
diff --git a/parallel/pvm3/patches/patch-bi b/parallel/pvm3/patches/patch-bi
new file mode 100644
index 00000000000..d497dc37ec0
--- /dev/null
+++ b/parallel/pvm3/patches/patch-bi
@@ -0,0 +1,15 @@
+$NetBSD: patch-bi,v 1.1 2004/03/12 01:14:00 dmcmahill Exp $
+
+--- /dev/null Tue Jul 30 16:47:47 2002
++++ conf/NETBSDSH5EL.def Tue Jul 30 16:51:01 2002
+@@ -0,0 +1,10 @@
++ARCHCFLAGS = -DCTIMEISTIMET -DSOCKADHASLEN -DRSHCOMMAND=\"${SSH}\" \
++ -DHASERRORVARS -DNOREXEC -DNEEDMENDIAN -DSYSERRISCONST
++ARCHDLIB =
++ARCHDOBJ =
++ARCHLIB =
++HASRANLIB = t
++AR = ar
++PVM_ARCH = NETBSDSH5EL
++MAKE = make
++#MAKE = gmake
diff --git a/parallel/pvm3/patches/patch-bj b/parallel/pvm3/patches/patch-bj
new file mode 100644
index 00000000000..2cf7efc092d
--- /dev/null
+++ b/parallel/pvm3/patches/patch-bj
@@ -0,0 +1,24 @@
+$NetBSD: patch-bj,v 1.1 2004/03/12 01:14:00 dmcmahill Exp $
+
+--- /dev/null Tue Jul 30 16:47:47 2002
++++ conf/NETBSDSH5EL.m4 Tue Jul 30 16:49:44 2002
+@@ -0,0 +1,19 @@
++divert(-1)
++undefine(`len')
++#
++# append an underscore to FORTRAN function names
++#
++define(`FUNCTION',`$1_')
++#
++# FORTRAN character strings are passed as follows:
++# a pointer to the base of the string is passed in the normal
++# argument list, and the length is passed by value as an extra
++# argument, after all of the other arguments.
++#
++define(`ARGS',`($1`'undivert(1))')
++define(`SAVE',`divert(1)$1`'divert(0)')
++define(`STRING_ARG',`$1_ptr`'SAVE(`, $1_len')')
++define(`STRING_ARG_DECL',`char * $1_ptr; int $1_len')
++define(`STRING_LEN',`$1_len')
++define(`STRING_PTR',`$1_ptr')
++divert(0)
diff --git a/parallel/pvm3/patches/patch-bk b/parallel/pvm3/patches/patch-bk
new file mode 100644
index 00000000000..2eeefdc866b
--- /dev/null
+++ b/parallel/pvm3/patches/patch-bk
@@ -0,0 +1,15 @@
+$NetBSD: patch-bk,v 1.1 2004/03/12 01:14:00 dmcmahill Exp $
+
+--- /dev/null Tue Jul 30 16:47:47 2002
++++ conf/NETBSDX86_64.def Tue Jul 30 16:51:01 2002
+@@ -0,0 +1,10 @@
++ARCHCFLAGS = -DCTIMEISTIMET -DSOCKADHASLEN -DRSHCOMMAND=\"${SSH}\" \
++ -DHASERRORVARS -DNOREXEC -DNEEDMENDIAN -DSYSERRISCONST
++ARCHDLIB =
++ARCHDOBJ =
++ARCHLIB =
++HASRANLIB = t
++AR = ar
++PVM_ARCH = NETBSDX86_64
++MAKE = make
++#MAKE = gmake
diff --git a/parallel/pvm3/patches/patch-bl b/parallel/pvm3/patches/patch-bl
new file mode 100644
index 00000000000..1d30502e1c2
--- /dev/null
+++ b/parallel/pvm3/patches/patch-bl
@@ -0,0 +1,24 @@
+$NetBSD: patch-bl,v 1.1 2004/03/12 01:14:00 dmcmahill Exp $
+
+--- /dev/null Tue Jul 30 16:47:47 2002
++++ conf/NETBSDX86_64.m4 Tue Jul 30 16:49:44 2002
+@@ -0,0 +1,19 @@
++divert(-1)
++undefine(`len')
++#
++# append an underscore to FORTRAN function names
++#
++define(`FUNCTION',`$1_')
++#
++# FORTRAN character strings are passed as follows:
++# a pointer to the base of the string is passed in the normal
++# argument list, and the length is passed by value as an extra
++# argument, after all of the other arguments.
++#
++define(`ARGS',`($1`'undivert(1))')
++define(`SAVE',`divert(1)$1`'divert(0)')
++define(`STRING_ARG',`$1_ptr`'SAVE(`, $1_len')')
++define(`STRING_ARG_DECL',`char * $1_ptr; int $1_len')
++define(`STRING_LEN',`$1_len')
++define(`STRING_PTR',`$1_ptr')
++divert(0)