summaryrefslogtreecommitdiff
path: root/parallel/pvm3/patches/patch-aj
blob: c13c367c6bf0204b0702681a6e9a6b51710139eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-aj,v 1.1.1.1 1998/10/13 23:31:04 garbled Exp $
--- /dev/null	Fri Aug  7 00:35:18 1998
+++ conf/NETBSD.m4	Fri Aug  7 00:56:51 1998
@@ -0,0 +1,20 @@
+divert(-1)
+undefine(`len')
+#
+# FORTRAN function names are in upper case
+#
+define(`FUNCTION',`translit($1,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ)')
+#
+# FORTRAN character strings are passed as follows:
+#   XXX is this right?
+# 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)