the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
-#ifdef VMS
+#if defined (VMS) & !defined (__VMS_POSIX)
#include <ssdef.h>
#define unlink delete
#ifndef XPFILE
int base_length;
int short_base_length;
-#ifdef VMS
+#if defined (VMS) & !defined (__VMS_POSIX)
char *tmp_base = "sys$scratch:b_";
#else
char *tmp_base = "/tmp/b.";
short_base_length = strlen (spec_file_prefix);
/* Count room for `.tab'. */
base_length = short_base_length + 4;
- name_base = (char *) mallocate (base_length + 1);
+ name_base = (char *) xmalloc (base_length + 1);
/* Append `.tab'. */
strcpy (name_base, spec_file_prefix);
#ifdef VMS
#ifdef MSDOS
/* File doesn't exist in current directory; try in INIT directory. */
cp = getenv("INIT");
- if (filename == 0 && cp != 0)
+ if (filename == 0 && cp != NULL)
{
- filename = malloc(strlen(cp) + strlen(PFILE) + 2);
+ filename = xmalloc(strlen(cp) + strlen(PFILE) + 2);
strcpy(filename, cp);
cp = filename + strlen(filename);
*cp++ = '/';
#ifdef MSDOS
/* File doesn't exist in current directory; try in INIT directory. */
cp = getenv("INIT");
- if (filename == 0 && cp != 0)
+ if (filename == 0 && cp != NULL)
{
- filename = malloc(strlen(cp) + strlen(PFILE1) + 2);
+ filename = xmalloc(strlen(cp) + strlen(PFILE1) + 2);
strcpy(filename, cp);
cp = filename + strlen(filename);
*cp++ = '/';
}
}
-#ifdef VMS
+#if defined (VMS) & !defined (__VMS_POSIX)
if (faction)
delete(actfile);
if (fattrs)
if (tmpdefsfile) unlink(tmpdefsfile);
#endif /* MSDOS */
exit(k);
-#endif /* not VMS */
+#endif /* not VMS, or __VMS_POSIX */
}