diff options
author | Paul Smith <psmith@gnu.org> | 2009-11-16 02:31:23 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2009-11-16 02:31:23 +0000 |
commit | b6f45ddc5301b7d7f6472e38a475716ff1414186 (patch) | |
tree | 334880e1954d3efa4f00fe7ce9a7c0f997a75232 /vmsify.c | |
parent | fe43fa9de38d9e1f18bdc1924a2cee72f244bdd5 (diff) | |
download | gunmake-b6f45ddc5301b7d7f6472e38a475716ff1414186.tar.gz |
Add VMS enhancements from Hartmut Becker.
Diffstat (limited to 'vmsify.c')
-rw-r--r-- | vmsify.c | 22 |
1 files changed, 15 insertions, 7 deletions
@@ -120,7 +120,11 @@ trnlog (const char *name) struct dsc$descriptor_s name_dsc; char *s; - INIT_DSC_CSTRING (name_dsc, name); + /* + * the string isn't changed, but there is no string descriptor with + * "const char *dsc$a_pointer" + */ + INIT_DSC_CSTRING (name_dsc, (char *)name); stat = lib$sys_trnlog (&name_dsc, &resltlen, &reslt_dsc); @@ -227,6 +231,9 @@ vmsify (const char *name, int type) char *vptr; int as_dir; int count; + const char *s; + const char *s1; + const char *s2; if (name == 0) return 0; @@ -239,8 +246,8 @@ vmsify (const char *name, int type) if (t != 0) { - const char *s1; - const char *s2; +// const char *s1; +// const char *s2; if (type == 1) { @@ -272,8 +279,9 @@ vmsify (const char *name, int type) if (t != 0) { - const char *s; - const char *s1 = strchr (t+1, '['); +// const char *s; +// const char *s1 = strchr (t+1, '['); + s1 = strchr (t+1, '['); if (s1 == 0) { strcpy (vmsname, name); @@ -388,8 +396,8 @@ vmsify (const char *name, int type) case 3: /* '//' at start */ { - const char *s; - const char *s1; +// const char *s; +// const char *s1; char *vp; while (*fptr == '/') /* collapse all '/' */ fptr++; |