summaryrefslogtreecommitdiff
path: root/vms_export_symbol.c
diff options
context:
space:
mode:
authorJohn Malmberg <wb8tyw@qsl.net>2014-11-27 21:28:30 -0600
committerPaul Smith <psmith@gnu.org>2015-01-27 21:43:16 -0500
commite4ac28e83081fa273b19fa778d46c1e3052cb834 (patch)
tree6fe0cfcee6056f6b84433cf3c1ee07ef66843c55 /vms_export_symbol.c
parent1fae20a2b7894ab24bb2a17e48178e70c4cf0db9 (diff)
downloadgunmake-e4ac28e83081fa273b19fa778d46c1e3052cb834.tar.gz
Fix bs-nl handling, exit and Environment for VMS.
This fix required a complete rewrite of the command parser vmsjobs.c child_execute_job. The old parser had too many incorrect assumptions about DCL commands and could not be repaired to extended. The parser now more closely parses VMS commands and handles quoted commands and redirection. Command File mode has been improved, but can not fully support bs-nl syntax. VMS Unix shell simulation has been improved. * commands.c: vms_comma_separator is now a run-time setting. * function.c: vms_comma_separator is now a run-time setting. * function.c(func_basename_dir) now reports "[]" or "./" based on VMS crtl runtime setting. * job.c(start_job_command): VMS Handle empty commands propery. * main.c: Add VMS environment variables for run-time settings. * vms_legacy_behavior - Force older behavior. * vms_comma_separator - Commas or spaces for separators. * vms_unix_simulation - Enhanced Posix shell simulation features. * Detect if VMS CRTL is set to report Unix paths instead of VMS. * ':' and '>' are also MAP_DIRSEP on VMS. * makeint.h: Add VMS run-time option variables. * readme.vms: Update to current behavior. * variable.c(define_variable_in_set): Fix VMS Environment variable lookup. * variable.c(define_automatic_variables): Remove some VMS specific automatic variables and use the Unix ones instead. * vms_export_symbol.c: Set max symbol size correctly. * vmsjobs.c: child_execute_job() complete rewrite of VMS comand parsing. * vmsjobs.c(build_vms_cmd): VMS commmand building with shell simulation. Signed-off-by: Paul Smith <psmith@gnu.org>
Diffstat (limited to 'vms_export_symbol.c')
-rw-r--r--vms_export_symbol.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/vms_export_symbol.c b/vms_export_symbol.c
index 2cc7367..b8eef11 100644
--- a/vms_export_symbol.c
+++ b/vms_export_symbol.c
@@ -64,7 +64,11 @@ LIB$DELETE_SYMBOL (const struct dsc$descriptor_s * symbol,
const unsigned long * table);
#define MAX_DCL_SYMBOL_LEN (255)
-#define MAX_DCL_SYMBOL_VALUE (1024)
+#if __CRTL_VER >= 70302000 && !defined(__VAX)
+# define MAX_DCL_SYMBOL_VALUE (8192)
+#else
+# define MAX_DCL_SYMBOL_VALUE (1024)
+#endif
struct dcl_symbol
{