[PATCH] alloca for VMS

"Craig A. Berry" <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
We are now using alloca, which doesn't exist as a function on VMS,
but it's available as a builtin.
---
 vms/config_h.vms | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/vms/config_h.vms b/vms/config_h.vms
index b666783..6d891e6 100644
--- a/vms/config_h.vms
+++ b/vms/config_h.vms
@@ -391,4 +391,8 @@ char * readpassphrase(const char *, char *, size_t, int);
 /* Prototype for routine to convert VMS-style arguments to Unix-style. */
 int parse_vms_args(int *argc, char **argv[]);

+/* alloca is a built-in */
+#include <builtins.h>
+#define alloca(__x) __ALLOCA(__x)
+
 #endif /* CONFIG_H_LOADED */
--
1.8.4.2

________________________________________
Craig A. Berry
mailto:[email protected]

"... getting out of a sonnet is much more
 difficult than getting in."
                 Brad Leithauser

_______________________________________________
FreeTDS mailing list
[email protected]
http://lists.ibiblio.org/mailman/listinfo/freetds
0001-alloca-for-VMS.patch (application/octet-stream, 814 B)
From af9e9d889af0526888c3b1fb3f1d7cbc56d4dfc1 Mon Sep 17 00:00:00 2001
From: "Craig A. Berry" <[email protected]>
Date: Fri, 30 May 2014 10:08:52 -0500
Subject: [PATCH 1/3] alloca for VMS.

We are now using alloca, which doesn't exist as a function on VMS,
but it's available as a builtin.
---
 vms/config_h.vms | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/vms/config_h.vms b/vms/config_h.vms
index b666783..6d891e6 100644
--- a/vms/config_h.vms
+++ b/vms/config_h.vms
@@ -391,4 +391,8 @@ char * readpassphrase(const char *, char *, size_t, int);
 /* Prototype for routine to convert VMS-style arguments to Unix-style. */
 int parse_vms_args(int *argc, char **argv[]);
 
+/* alloca is a built-in */
+#include <builtins.h>
+#define alloca(__x) __ALLOCA(__x)
+
 #endif /* CONFIG_H_LOADED */
-- 
1.8.4.2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.