aboutsummaryrefslogtreecommitdiffstats
path: root/vms/vms_gawk.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-01-10 12:30:37 +0200
committerArnold D. Robbins <arnold@skeeve.com>2014-01-10 12:30:37 +0200
commit1daf400c55ab311c43f1cfa0a253955d81c0c2e7 (patch)
tree8951b5772f56ee5086fce670261777356858b606 /vms/vms_gawk.c
parent54684e9a410c64bcde42c39e02832d586ffd1074 (diff)
parent664868f72b741ba448398d609e18a4cbb1ca20be (diff)
downloadegawk-1daf400c55ab311c43f1cfa0a253955d81c0c2e7.tar.gz
egawk-1daf400c55ab311c43f1cfa0a253955d81c0c2e7.tar.bz2
egawk-1daf400c55ab311c43f1cfa0a253955d81c0c2e7.zip
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'vms/vms_gawk.c')
-rw-r--r--vms/vms_gawk.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/vms/vms_gawk.c b/vms/vms_gawk.c
index f22e2fa9..4080e1db 100644
--- a/vms/vms_gawk.c
+++ b/vms/vms_gawk.c
@@ -1,6 +1,7 @@
/* vms_gawk.c -- parse GAWK command line using DCL syntax
- Copyright (C) 1991-1993, 1996, 2003, 2005, 2011 the Free Software Foundation, Inc.
+ Copyright (C) 1991-1993, 1996, 2003, 2005, 2011, 2014
+ the Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -37,16 +38,16 @@
#define Present(arg) vmswork(Cli_Present(arg))
#define Get_Value(arg,buf,siz) vmswork(Cli_Get_Value(arg,buf,siz))
-#ifndef __ia64__
-extern void gawk_cmd(); /* created with $ SET COMMAND/OBJECT */
-#define GAWK_CMD ((const void *)gawk_cmd)
-#else /* linker on Itanium is much pickier about such things */
+#ifndef __DECC
+extern void GAWK_CMD(); /* created with $ SET COMMAND/OBJECT */
+#define gawk_cmd ((const void *)GAWK_CMD) */
+#else /* Use ANSI definitions for DEC C */
#pragma extern_model save
#pragma extern_model strict_refdef
/* (could use globalvalue rather than _refdef if we omit GAWK_CMD's `&') */
-extern void *gawk_cmd;
+extern void *GAWK_CMD;
#pragma extern_model restore
-#define GAWK_CMD ((const void *)&gawk_cmd)
+#define gawk_cmd ((const void *)&GAWK_CMD)
#endif
extern void _exit(int);
static int vms_usage(int);
@@ -88,7 +89,7 @@ vms_gawk()
command, so we'll now attempt to generate a command from the
foreign command string and parse that.
*/
- sts = Cli_Parse_Command(GAWK_CMD, "GAWK"); /* (*not* CmdName) */
+ sts = Cli_Parse_Command(gawk_cmd, "GAWK"); /* (*not* CmdName) */
if (vmswork(sts))
sts = Cli_Present("GAWK_P1");
}