mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dthelp: Remove spectaculaly obsolete MSDOS support
This commit is contained in:
parent
757249c65b
commit
f89139dd84
117 changed files with 7 additions and 695 deletions
|
@ -31,9 +31,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "context.h"
|
#include "context.h"
|
||||||
#define BUILDEF
|
#define BUILDEF
|
||||||
#include "build.h"
|
#include "build.h"
|
||||||
|
|
|
@ -31,9 +31,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "context.h"
|
#include "context.h"
|
||||||
#include "build.h"
|
#include "build.h"
|
||||||
#include "delim.h"
|
#include "delim.h"
|
||||||
|
|
|
@ -30,9 +30,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
/* Scan.c contains scanner procedures for program BUILD */
|
/* Scan.c contains scanner procedures for program BUILD */
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "build.h"
|
#include "build.h"
|
||||||
#define M_CONDEF
|
#define M_CONDEF
|
||||||
#include "context.h"
|
#include "context.h"
|
||||||
|
|
|
@ -32,9 +32,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
||||||
|
|
|
@ -32,9 +32,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
||||||
|
|
|
@ -31,9 +31,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
||||||
|
|
|
@ -32,15 +32,6 @@ Copyright (c) 1988, 1989 Hewlett-Packard Co.
|
||||||
#include "globdec.h"
|
#include "globdec.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
/* Standard startup code doesn't have room to load inherited environments
|
|
||||||
in some cases. Since they're not used, don't bother. (Using Microsoft
|
|
||||||
C compiler). */
|
|
||||||
void _setenvp(void);
|
|
||||||
void _setenvp(){}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Write input file and line number for an error message */
|
/* Write input file and line number for an error message */
|
||||||
void m_dumpline(file, line)
|
void m_dumpline(file, line)
|
||||||
M_WCHAR *file;
|
M_WCHAR *file;
|
||||||
|
@ -92,9 +83,6 @@ for ( ; *p ; p++)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
/* Write error message suffix */
|
/* Write error message suffix */
|
||||||
void m_esuffix(void)
|
void m_esuffix(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -35,11 +35,6 @@
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <io.h>
|
|
||||||
#include <process.h>
|
|
||||||
#include <direct.h>
|
|
||||||
#endif
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||||
|
@ -153,9 +148,6 @@ EXTERN LOGICAL filelist INIT(FALSE) ;
|
||||||
|
|
||||||
/* NOTE: If driver is redimensioned, a change is needed in texinit() */
|
/* NOTE: If driver is redimensioned, a change is needed in texinit() */
|
||||||
EXTERN char driver[20]
|
EXTERN char driver[20]
|
||||||
#if defined(MSDOS)
|
|
||||||
INIT("CDS")
|
|
||||||
#else
|
|
||||||
#if defined(hpux)
|
#if defined(hpux)
|
||||||
INIT("HPUX")
|
INIT("HPUX")
|
||||||
#endif
|
#endif
|
||||||
|
@ -167,7 +159,6 @@ EXTERN char driver[20]
|
||||||
#endif
|
#endif
|
||||||
#if defined(sun)
|
#if defined(sun)
|
||||||
INIT("SUN")
|
INIT("SUN")
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -191,14 +182,10 @@ struct search {
|
||||||
EXTERN SEARCH *path INIT(NULL) ;
|
EXTERN SEARCH *path INIT(NULL) ;
|
||||||
EXTERN SEARCH **endpath INIT(&path) ;
|
EXTERN SEARCH **endpath INIT(&path) ;
|
||||||
EXTERN char dirsep
|
EXTERN char dirsep
|
||||||
#if defined(MSDOS)
|
|
||||||
INIT('\\')
|
|
||||||
#else
|
|
||||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||||
INIT('/')
|
INIT('/')
|
||||||
#else
|
#else
|
||||||
****define directory separator here****
|
****define directory separator here****
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -206,13 +193,8 @@ INIT('/')
|
||||||
#define CSEP '/'
|
#define CSEP '/'
|
||||||
#define SSEP "/"
|
#define SSEP "/"
|
||||||
#else
|
#else
|
||||||
#if defined(MSDOS)
|
|
||||||
#define CSEP '\\'
|
|
||||||
#define SSEP "\\"
|
|
||||||
#else
|
|
||||||
****define directory separator here****
|
****define directory separator here****
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Location in .TEX file of two \wlog messages */
|
/* Location in .TEX file of two \wlog messages */
|
||||||
EXTERN long wlog ;
|
EXTERN long wlog ;
|
||||||
|
|
|
@ -139,18 +139,6 @@ void basename(void)
|
||||||
) filelist = TRUE;
|
) filelist = TRUE;
|
||||||
|
|
||||||
/* Get installation directory */
|
/* Get installation directory */
|
||||||
#if defined(MSDOS)
|
|
||||||
for (p = m_argv[0]; *p ; p++);
|
|
||||||
for (; ; p--)
|
|
||||||
if (*p == dirsep || *p == ':') break;
|
|
||||||
p++;
|
|
||||||
save = *p;
|
|
||||||
*p = M_EOS;
|
|
||||||
install = m_malloc(strlen(m_argv[0]) + 1, "installation directory");
|
|
||||||
strcpy(install, m_argv[0]);
|
|
||||||
*p = save;
|
|
||||||
|
|
||||||
#else
|
|
||||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__)
|
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__)
|
||||||
#define CONTRIB "/usr/hphelp/bin/"
|
#define CONTRIB "/usr/hphelp/bin/"
|
||||||
|
|
||||||
|
@ -230,16 +218,12 @@ void basename(void)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
Get installation directory
|
Get installation directory
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Set default working directory (from input filename) */
|
/* Set default working directory (from input filename) */
|
||||||
for (p = strchr(m_argv[1], M_EOS); p > m_argv[1] ; p--)
|
for (p = strchr(m_argv[1], M_EOS); p > m_argv[1] ; p--)
|
||||||
if (*(p - 1) == dirsep
|
if (*(p - 1) == dirsep)
|
||||||
#if defined(MSDOS)
|
break;
|
||||||
|| *(p - 1) == ':'
|
|
||||||
#endif
|
|
||||||
) break;
|
|
||||||
if (p > m_argv[1]) {
|
if (p > m_argv[1]) {
|
||||||
save = *p;
|
save = *p;
|
||||||
*p = M_EOS;
|
*p = M_EOS;
|
||||||
|
@ -2213,18 +2197,11 @@ while (name = m_cyclent(init, &type, &content, &wheredef))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
m_openchk(&nullfile, "NUL", "w");
|
|
||||||
#else
|
|
||||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__)
|
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__)
|
||||||
m_openchk(&nullfile, "/dev/null", "w");
|
m_openchk(&nullfile, "/dev/null", "w");
|
||||||
#else
|
#else
|
||||||
m_openchk(&nullfile, "nullfile", "w");
|
m_openchk(&nullfile, "nullfile", "w");
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
#if defined(MSDOS)
|
|
||||||
#else
|
|
||||||
#endif
|
|
||||||
|
|
||||||
idxupdate = ftell(outfile);
|
idxupdate = ftell(outfile);
|
||||||
|
|
||||||
|
|
|
@ -172,9 +172,6 @@
|
||||||
<\CODE>
|
<\CODE>
|
||||||
|
|
||||||
<!ENTITY m-machine SDATA CODE>
|
<!ENTITY m-machine SDATA CODE>
|
||||||
#if defined(MSDOS)
|
|
||||||
m_piaction("VECTRA", "m-machine", M_SDATA) ;
|
|
||||||
#else
|
|
||||||
#if defined(hpux)
|
#if defined(hpux)
|
||||||
{
|
{
|
||||||
M_WCHAR *wc_1, *wc_2;
|
M_WCHAR *wc_1, *wc_2;
|
||||||
|
@ -213,7 +210,6 @@
|
||||||
M_SDATA) ;
|
M_SDATA) ;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
<\CODE>
|
<\CODE>
|
||||||
|
|
||||||
|
|
|
@ -31,11 +31,6 @@
|
||||||
or invoke function pointers should be in tex.c.
|
or invoke function pointers should be in tex.c.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <sys\types.h>
|
|
||||||
#include <sys\stat.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
|
@ -294,11 +294,7 @@ if (! *string)
|
||||||
switch (thisopt)
|
switch (thisopt)
|
||||||
{
|
{
|
||||||
case SEARCHKEY:
|
case SEARCHKEY:
|
||||||
if ( (parentsrch==TRUE) && (*string!=M_EOS) && (*string!=dirsep)
|
if ( (parentsrch==TRUE) && (*string!=M_EOS) && (*string!=dirsep) )
|
||||||
#if defined(MSDOS)
|
|
||||||
&& ( *(string+1) != ':' )
|
|
||||||
#endif
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
/* prepend "..", for index processing in temporary sub-directory */
|
/* prepend "..", for index processing in temporary sub-directory */
|
||||||
tempstr = (char *) m_malloc( strlen(string) + 4, "tempstr search");
|
tempstr = (char *) m_malloc( strlen(string) + 4, "tempstr search");
|
||||||
|
@ -314,11 +310,7 @@ switch (thisopt)
|
||||||
|
|
||||||
*endpath = (SEARCH *) m_malloc(sizeof(SEARCH), "search path");
|
*endpath = (SEARCH *) m_malloc(sizeof(SEARCH), "search path");
|
||||||
p = strchr(tempstr, M_EOS);
|
p = strchr(tempstr, M_EOS);
|
||||||
if (p != tempstr && *(p - 1) != dirsep
|
if (p != tempstr && *(p - 1) != dirsep)
|
||||||
#if defined(MSDOS)
|
|
||||||
&& *(p - 1) != ':'
|
|
||||||
#endif
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
i = strlen(tempstr);
|
i = strlen(tempstr);
|
||||||
(*endpath)->directory = (char *) m_malloc(i + 2,
|
(*endpath)->directory = (char *) m_malloc(i + 2,
|
||||||
|
|
|
@ -32,9 +32,6 @@ in the interface definition.*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
|
@ -32,9 +32,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
#include "context.h"
|
#include "context.h"
|
||||||
|
|
|
@ -32,9 +32,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
#include "dtdext.h"
|
#include "dtdext.h"
|
||||||
|
|
|
@ -27,9 +27,6 @@ Copyright 1988, 1989 Hewlett-Packard Co.
|
||||||
|
|
||||||
#include "userinc.h"
|
#include "userinc.h"
|
||||||
#include "globdec.h"
|
#include "globdec.h"
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Write error message suffix */
|
/* Write error message suffix */
|
||||||
void m_esuffix(void)
|
void m_esuffix(void)
|
||||||
|
|
|
@ -27,9 +27,6 @@ Copyright 1988, 1989 Hewlett-Packard Co.
|
||||||
|
|
||||||
#include "userinc.h"
|
#include "userinc.h"
|
||||||
#include "globdec.h"
|
#include "globdec.h"
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Default version of PARSER m_exit(). Allows interface control if
|
/* Default version of PARSER m_exit(). Allows interface control if
|
||||||
internal error causes PARSER to halt. */
|
internal error causes PARSER to halt. */
|
||||||
|
|
|
@ -31,9 +31,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
#include "dtdext.h"
|
#include "dtdext.h"
|
||||||
|
|
|
@ -32,9 +32,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
#include "delim.h"
|
#include "delim.h"
|
||||||
|
|
|
@ -33,9 +33,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
#include "dtdext.h"
|
#include "dtdext.h"
|
||||||
|
|
|
@ -32,9 +32,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
#define M_CONDEF
|
#define M_CONDEF
|
||||||
|
|
|
@ -33,9 +33,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
#include "dtdext.h"
|
#include "dtdext.h"
|
||||||
|
|
|
@ -157,9 +157,6 @@ delim.h.
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
||||||
|
|
|
@ -31,9 +31,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
||||||
|
|
|
@ -24,9 +24,6 @@
|
||||||
/* Copyright (c) 1988, 1989 Hewlett-Packard Co. */
|
/* Copyright (c) 1988, 1989 Hewlett-Packard Co. */
|
||||||
/* Creates a file with nothing in it */
|
/* Creates a file with nothing in it */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
|
|
||||||
void main(int argc, char **argv)
|
void main(int argc, char **argv)
|
||||||
|
|
|
@ -25,9 +25,6 @@
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
Copyright 1988, 1989 Hewlett-Packard Co.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
|
|
||||||
void m_exit(int status);
|
void m_exit(int status);
|
||||||
|
|
|
@ -37,9 +37,6 @@ with an error code of 0 if the files are the same, 1 if they differ, and
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#define SAME 0
|
#define SAME 0
|
||||||
/* different defined to be 0 as of 12-1-89, because fclndir now does
|
/* different defined to be 0 as of 12-1-89, because fclndir now does
|
||||||
|
@ -122,11 +119,7 @@ void copyfile(pfile1,pfile2)
|
||||||
/* malloc space for the system command: two filenames, plus a command,
|
/* malloc space for the system command: two filenames, plus a command,
|
||||||
spaces, and the terminating null */
|
spaces, and the terminating null */
|
||||||
pcmd = (char *) malloc(strlen(pfile1) + strlen(pfile2) + 8);
|
pcmd = (char *) malloc(strlen(pfile1) + strlen(pfile2) + 8);
|
||||||
#if defined(MSDOS)
|
|
||||||
ret = sprintf(pcmd,"copy %s %s",pfile1,pfile2);
|
|
||||||
#else
|
|
||||||
ret = sprintf(pcmd,"cp %s %s",pfile1,pfile2);
|
ret = sprintf(pcmd,"cp %s %s",pfile1,pfile2);
|
||||||
#endif
|
|
||||||
ret = system(pcmd);
|
ret = system(pcmd);
|
||||||
ret = sprintf(pcmd,"touch %s",pfile2);
|
ret = sprintf(pcmd,"touch %s",pfile2);
|
||||||
ret = system(pcmd);
|
ret = system(pcmd);
|
||||||
|
|
|
@ -25,9 +25,6 @@
|
||||||
Copyright 1986, 1987, 1988, 1989 Hewlett-Packard Co.
|
Copyright 1986, 1987, 1988, 1989 Hewlett-Packard Co.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
|
|
||||||
void m_err1(const char *text, const char *arg);
|
void m_err1(const char *text, const char *arg);
|
||||||
|
|
|
@ -28,9 +28,6 @@
|
||||||
/**/
|
/**/
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
|
|
||||||
extern LOGICAL m_heapchk ;
|
extern LOGICAL m_heapchk ;
|
||||||
|
@ -58,9 +55,6 @@ void m_free(block, msg)
|
||||||
{
|
{
|
||||||
char buffer[32] ;
|
char buffer[32] ;
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
if (m_heapchk) m_heapdump() ;
|
|
||||||
#endif
|
|
||||||
if (m_malftrace) {
|
if (m_malftrace) {
|
||||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||||
sprintf(buffer, "%5x:%5x",
|
sprintf(buffer, "%5x:%5x",
|
||||||
|
@ -75,46 +69,8 @@ void m_free(block, msg)
|
||||||
m_trace("\n") ;
|
m_trace("\n") ;
|
||||||
}
|
}
|
||||||
free(block) ;
|
free(block) ;
|
||||||
#if defined(MSDOS)
|
|
||||||
if (m_heapchk) m_heapdump() ;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
void m_heapdump(void)
|
|
||||||
{
|
|
||||||
struct _heapinfo hinfo ;
|
|
||||||
int heapstatus ;
|
|
||||||
|
|
||||||
heapstatus = _heapchk() ;
|
|
||||||
if (heapstatus == _HEAPOK || heapstatus == _HEAPEMPTY) return ;
|
|
||||||
printf("\nDumping heap:\n") ;
|
|
||||||
hinfo._pentry = NULL ;
|
|
||||||
while ((heapstatus = _heapwalk(&hinfo)) == _HEAPOK)
|
|
||||||
printf("%6s block at %p of size %4.4X\n",
|
|
||||||
hinfo._useflag == _USEDENTRY ? "USED" : "FREE",
|
|
||||||
hinfo._pentry, hinfo._size) ;
|
|
||||||
switch(heapstatus) {
|
|
||||||
case _HEAPEMPTY:
|
|
||||||
printf("OK - empty heap\n\n") ;
|
|
||||||
break ;
|
|
||||||
case _HEAPEND:
|
|
||||||
printf("OK - end of heap\n\n") ;
|
|
||||||
break ;
|
|
||||||
case _HEAPBADPTR:
|
|
||||||
printf("Error - bad pointer to heap\n\n") ;
|
|
||||||
break ;
|
|
||||||
case _HEAPBADBEGIN:
|
|
||||||
printf("Error - bad start of heap\n\n") ;
|
|
||||||
break ;
|
|
||||||
case _HEAPBADNODE:
|
|
||||||
printf("Error - bad node in heap\n\n") ;
|
|
||||||
break ;
|
|
||||||
}
|
|
||||||
m_exit(TRUE) ;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void *m_malloc(size, msg)
|
void *m_malloc(size, msg)
|
||||||
int size ;
|
int size ;
|
||||||
char *msg ;
|
char *msg ;
|
||||||
|
@ -123,14 +79,8 @@ void *m_malloc(size, msg)
|
||||||
void *p ;
|
void *p ;
|
||||||
|
|
||||||
size *= sizeof(M_WCHAR);
|
size *= sizeof(M_WCHAR);
|
||||||
#if defined(MSDOS)
|
|
||||||
if (m_heapchk) m_heapdump() ;
|
|
||||||
#endif
|
|
||||||
if (! size) return(NULL) ;
|
if (! size) return(NULL) ;
|
||||||
p = (void *) malloc(size) ;
|
p = (void *) malloc(size) ;
|
||||||
#if defined(MSDOS)
|
|
||||||
if (m_heapchk) m_heapdump() ;
|
|
||||||
#endif
|
|
||||||
if (! p) {
|
if (! p) {
|
||||||
m_errline("Unable to allocate space for ") ;
|
m_errline("Unable to allocate space for ") ;
|
||||||
m_errline(msg) ;
|
m_errline(msg) ;
|
||||||
|
@ -164,14 +114,8 @@ void *m_realloc(ptr, size, msg)
|
||||||
void *p ;
|
void *p ;
|
||||||
|
|
||||||
size *= sizeof(M_WCHAR);
|
size *= sizeof(M_WCHAR);
|
||||||
#if defined(MSDOS)
|
|
||||||
if (m_heapchk) m_heapdump() ;
|
|
||||||
#endif
|
|
||||||
if (! size) return(NULL) ;
|
if (! size) return(NULL) ;
|
||||||
p = (void *) realloc(ptr, size) ;
|
p = (void *) realloc(ptr, size) ;
|
||||||
#if defined(MSDOS)
|
|
||||||
if (m_heapchk) m_heapdump() ;
|
|
||||||
#endif
|
|
||||||
if (! p) {
|
if (! p) {
|
||||||
m_errline("Unable to re-allocate space for ") ;
|
m_errline("Unable to re-allocate space for ") ;
|
||||||
m_errline(msg) ;
|
m_errline(msg) ;
|
||||||
|
|
|
@ -26,9 +26,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
|
|
||||||
extern FILE *m_errfile ;
|
extern FILE *m_errfile ;
|
||||||
|
|
|
@ -31,10 +31,6 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <stdlib.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
|
@ -31,9 +31,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "context.h"
|
#include "context.h"
|
||||||
#define BUILDEF
|
#define BUILDEF
|
||||||
#include "build.h"
|
#include "build.h"
|
||||||
|
|
|
@ -32,9 +32,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "context.h"
|
#include "context.h"
|
||||||
#include "build.h"
|
#include "build.h"
|
||||||
#include "delim.h"
|
#include "delim.h"
|
||||||
|
|
|
@ -30,9 +30,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
/* Scan.c contains scanner procedures for program BUILD */
|
/* Scan.c contains scanner procedures for program BUILD */
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "build.h"
|
#include "build.h"
|
||||||
#define M_CONDEF
|
#define M_CONDEF
|
||||||
#include "context.h"
|
#include "context.h"
|
||||||
|
|
|
@ -32,9 +32,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
||||||
|
|
|
@ -32,9 +32,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
||||||
|
|
|
@ -31,9 +31,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
||||||
|
|
|
@ -32,15 +32,6 @@ Copyright (c) 1988, 1989 Hewlett-Packard Co.
|
||||||
#include "globdec.h"
|
#include "globdec.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
/* Standard startup code doesn't have room to load inherited environments
|
|
||||||
in some cases. Since they're not used, don't bother. (Using Microsoft
|
|
||||||
C compiler). */
|
|
||||||
void _setenvp(void);
|
|
||||||
void _setenvp(){}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Write input file and line number for an error message */
|
/* Write input file and line number for an error message */
|
||||||
void m_dumpline(file, line)
|
void m_dumpline(file, line)
|
||||||
M_WCHAR *file;
|
M_WCHAR *file;
|
||||||
|
@ -92,9 +83,6 @@ for ( ; *p ; p++)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
/* Write error message suffix */
|
/* Write error message suffix */
|
||||||
void m_esuffix(void)
|
void m_esuffix(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -36,11 +36,6 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <io.h>
|
|
||||||
#include <process.h>
|
|
||||||
#include <direct.h>
|
|
||||||
#endif
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||||
|
@ -175,14 +170,10 @@ struct search {
|
||||||
EXTERN SEARCH *path INIT(NULL) ;
|
EXTERN SEARCH *path INIT(NULL) ;
|
||||||
EXTERN SEARCH **endpath INIT(&path) ;
|
EXTERN SEARCH **endpath INIT(&path) ;
|
||||||
EXTERN char dirsep
|
EXTERN char dirsep
|
||||||
#if defined(MSDOS)
|
|
||||||
INIT('\\')
|
|
||||||
#else
|
|
||||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||||
INIT('/')
|
INIT('/')
|
||||||
#else
|
#else
|
||||||
****define directory separator here****
|
****define directory separator here****
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -190,13 +181,8 @@ INIT('/')
|
||||||
#define CSEP '/'
|
#define CSEP '/'
|
||||||
#define SSEP "/"
|
#define SSEP "/"
|
||||||
#else
|
#else
|
||||||
#if defined(MSDOS)
|
|
||||||
#define CSEP '\\'
|
|
||||||
#define SSEP "\\"
|
|
||||||
#else
|
|
||||||
****define directory separator here****
|
****define directory separator here****
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Location in .TEX file of two \wlog messages */
|
/* Location in .TEX file of two \wlog messages */
|
||||||
EXTERN long wlog ;
|
EXTERN long wlog ;
|
||||||
|
|
|
@ -144,9 +144,6 @@
|
||||||
</CODE>
|
</CODE>
|
||||||
|
|
||||||
<!ENTITY m-machine SDATA CODE>
|
<!ENTITY m-machine SDATA CODE>
|
||||||
#if defined(MSDOS)
|
|
||||||
m_piaction("VECTRA", "m-machine", M_SDATA) ;
|
|
||||||
#else
|
|
||||||
#if defined(hpux)
|
#if defined(hpux)
|
||||||
{
|
{
|
||||||
M_WCHAR *wc_1, *wc_2;
|
M_WCHAR *wc_1, *wc_2;
|
||||||
|
@ -185,7 +182,6 @@
|
||||||
M_SDATA) ;
|
M_SDATA) ;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
</CODE>
|
</CODE>
|
||||||
|
|
||||||
|
|
|
@ -31,11 +31,6 @@
|
||||||
or invoke function pointers should be in tex.c.
|
or invoke function pointers should be in tex.c.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <sys\types.h>
|
|
||||||
#include <sys\stat.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
|
@ -294,11 +294,7 @@ if (! *string)
|
||||||
switch (thisopt)
|
switch (thisopt)
|
||||||
{
|
{
|
||||||
case SEARCHKEY:
|
case SEARCHKEY:
|
||||||
if ( (parentsrch==TRUE) && (*string!=M_EOS) && (*string!=dirsep)
|
if ( (parentsrch==TRUE) && (*string!=M_EOS) && (*string!=dirsep) )
|
||||||
#if defined(MSDOS)
|
|
||||||
&& ( *(string+1) != ':' )
|
|
||||||
#endif
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
/* prepend "..", for index processing in temporary sub-directory */
|
/* prepend "..", for index processing in temporary sub-directory */
|
||||||
tempstr = (char *) m_malloc( strlen(string) + 4, "tempstr search");
|
tempstr = (char *) m_malloc( strlen(string) + 4, "tempstr search");
|
||||||
|
@ -314,11 +310,7 @@ switch (thisopt)
|
||||||
|
|
||||||
*endpath = (SEARCH *) m_malloc(sizeof(SEARCH), "search path");
|
*endpath = (SEARCH *) m_malloc(sizeof(SEARCH), "search path");
|
||||||
p = strchr(tempstr, M_EOS);
|
p = strchr(tempstr, M_EOS);
|
||||||
if (p != tempstr && *(p - 1) != dirsep
|
if (p != tempstr && *(p - 1) != dirsep)
|
||||||
#if defined(MSDOS)
|
|
||||||
&& *(p - 1) != ':'
|
|
||||||
#endif
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
i = strlen(tempstr);
|
i = strlen(tempstr);
|
||||||
(*endpath)->directory = (char *) m_malloc(i + 2,
|
(*endpath)->directory = (char *) m_malloc(i + 2,
|
||||||
|
|
|
@ -32,9 +32,6 @@ in the interface definition.*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
|
@ -32,9 +32,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
#include "context.h"
|
#include "context.h"
|
||||||
|
|
|
@ -32,9 +32,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
#include "dtdext.h"
|
#include "dtdext.h"
|
||||||
|
|
|
@ -27,9 +27,6 @@ Copyright 1988, 1989 Hewlett-Packard Co.
|
||||||
|
|
||||||
#include "userinc.h"
|
#include "userinc.h"
|
||||||
#include "globdec.h"
|
#include "globdec.h"
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Write error message suffix */
|
/* Write error message suffix */
|
||||||
void m_esuffix(void)
|
void m_esuffix(void)
|
||||||
|
|
|
@ -27,9 +27,6 @@ Copyright 1988, 1989 Hewlett-Packard Co.
|
||||||
|
|
||||||
#include "userinc.h"
|
#include "userinc.h"
|
||||||
#include "globdec.h"
|
#include "globdec.h"
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Default version of PARSER m_exit(). Allows interface control if
|
/* Default version of PARSER m_exit(). Allows interface control if
|
||||||
internal error causes PARSER to halt. */
|
internal error causes PARSER to halt. */
|
||||||
|
|
|
@ -31,9 +31,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
#include "dtdext.h"
|
#include "dtdext.h"
|
||||||
|
|
|
@ -32,9 +32,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
#include "delim.h"
|
#include "delim.h"
|
||||||
|
|
|
@ -33,9 +33,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
#include "dtdext.h"
|
#include "dtdext.h"
|
||||||
|
|
|
@ -32,9 +32,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
#define M_CONDEF
|
#define M_CONDEF
|
||||||
|
|
|
@ -33,9 +33,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
#include "dtdext.h"
|
#include "dtdext.h"
|
||||||
|
|
|
@ -157,9 +157,6 @@ delim.h.
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
||||||
|
|
|
@ -31,9 +31,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
||||||
|
|
|
@ -24,9 +24,6 @@
|
||||||
/* Copyright (c) 1988, 1989 Hewlett-Packard Co. */
|
/* Copyright (c) 1988, 1989 Hewlett-Packard Co. */
|
||||||
/* Creates a file with nothing in it */
|
/* Creates a file with nothing in it */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
|
|
||||||
void main(int argc, char **argv);
|
void main(int argc, char **argv);
|
||||||
|
|
|
@ -25,9 +25,6 @@
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
Copyright 1988, 1989 Hewlett-Packard Co.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
|
|
||||||
void m_exit(int status);
|
void m_exit(int status);
|
||||||
|
|
|
@ -37,9 +37,6 @@ with an error code of 0 if the files are the same, 1 if they differ, and
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#define SAME 0
|
#define SAME 0
|
||||||
/* different defined to be 0 as of 12-1-89, because fclndir now does
|
/* different defined to be 0 as of 12-1-89, because fclndir now does
|
||||||
|
@ -124,11 +121,7 @@ void copyfile(pfile1,pfile2)
|
||||||
spaces, and the terminating null */
|
spaces, and the terminating null */
|
||||||
slen = strlen(pfile1) + strlen(pfile2) + 8;
|
slen = strlen(pfile1) + strlen(pfile2) + 8;
|
||||||
pcmd = (char *) malloc(slen);
|
pcmd = (char *) malloc(slen);
|
||||||
#if defined(MSDOS)
|
|
||||||
ret = snprintf(pcmd, slen, "copy %s %s",pfile1,pfile2);
|
|
||||||
#else
|
|
||||||
ret = snprintf(pcmd, slen, "cp %s %s",pfile1,pfile2);
|
ret = snprintf(pcmd, slen, "cp %s %s",pfile1,pfile2);
|
||||||
#endif
|
|
||||||
ret = system(pcmd);
|
ret = system(pcmd);
|
||||||
ret = snprintf(pcmd, slen, "touch %s",pfile2);
|
ret = snprintf(pcmd, slen, "touch %s",pfile2);
|
||||||
ret = system(pcmd);
|
ret = system(pcmd);
|
||||||
|
|
|
@ -25,9 +25,6 @@
|
||||||
Copyright 1986, 1987, 1988, 1989 Hewlett-Packard Co.
|
Copyright 1986, 1987, 1988, 1989 Hewlett-Packard Co.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
|
|
||||||
void m_err1(const char *text, const char *arg);
|
void m_err1(const char *text, const char *arg);
|
||||||
|
|
|
@ -28,9 +28,6 @@
|
||||||
/**/
|
/**/
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
|
|
||||||
extern LOGICAL m_heapchk ;
|
extern LOGICAL m_heapchk ;
|
||||||
|
@ -58,9 +55,6 @@ void m_free(block, msg)
|
||||||
{
|
{
|
||||||
char buffer[32] ;
|
char buffer[32] ;
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
if (m_heapchk) m_heapdump() ;
|
|
||||||
#endif
|
|
||||||
free(block) ;
|
free(block) ;
|
||||||
if (m_malftrace) {
|
if (m_malftrace) {
|
||||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||||
|
@ -75,46 +69,8 @@ void m_free(block, msg)
|
||||||
m_trace(msg) ;
|
m_trace(msg) ;
|
||||||
m_trace("\n") ;
|
m_trace("\n") ;
|
||||||
}
|
}
|
||||||
#if defined(MSDOS)
|
|
||||||
if (m_heapchk) m_heapdump() ;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
void m_heapdump(void)
|
|
||||||
{
|
|
||||||
struct _heapinfo hinfo ;
|
|
||||||
int heapstatus ;
|
|
||||||
|
|
||||||
heapstatus = _heapchk() ;
|
|
||||||
if (heapstatus == _HEAPOK || heapstatus == _HEAPEMPTY) return ;
|
|
||||||
printf("\nDumping heap:\n") ;
|
|
||||||
hinfo._pentry = NULL ;
|
|
||||||
while ((heapstatus = _heapwalk(&hinfo)) == _HEAPOK)
|
|
||||||
printf("%6s block at %p of size %4.4X\n",
|
|
||||||
hinfo._useflag == _USEDENTRY ? "USED" : "FREE",
|
|
||||||
hinfo._pentry, hinfo._size) ;
|
|
||||||
switch(heapstatus) {
|
|
||||||
case _HEAPEMPTY:
|
|
||||||
printf("OK - empty heap\n\n") ;
|
|
||||||
break ;
|
|
||||||
case _HEAPEND:
|
|
||||||
printf("OK - end of heap\n\n") ;
|
|
||||||
break ;
|
|
||||||
case _HEAPBADPTR:
|
|
||||||
printf("Error - bad pointer to heap\n\n") ;
|
|
||||||
break ;
|
|
||||||
case _HEAPBADBEGIN:
|
|
||||||
printf("Error - bad start of heap\n\n") ;
|
|
||||||
break ;
|
|
||||||
case _HEAPBADNODE:
|
|
||||||
printf("Error - bad node in heap\n\n") ;
|
|
||||||
break ;
|
|
||||||
}
|
|
||||||
m_exit(TRUE) ;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void *m_malloc(size, msg)
|
void *m_malloc(size, msg)
|
||||||
int size ;
|
int size ;
|
||||||
char *msg ;
|
char *msg ;
|
||||||
|
@ -123,14 +79,8 @@ void *m_malloc(size, msg)
|
||||||
void *p ;
|
void *p ;
|
||||||
|
|
||||||
size *= sizeof(M_WCHAR);
|
size *= sizeof(M_WCHAR);
|
||||||
#if defined(MSDOS)
|
|
||||||
if (m_heapchk) m_heapdump() ;
|
|
||||||
#endif
|
|
||||||
if (! size) return(NULL) ;
|
if (! size) return(NULL) ;
|
||||||
p = (void *) malloc(size) ;
|
p = (void *) malloc(size) ;
|
||||||
#if defined(MSDOS)
|
|
||||||
if (m_heapchk) m_heapdump() ;
|
|
||||||
#endif
|
|
||||||
if (! p) {
|
if (! p) {
|
||||||
m_errline("Unable to allocate space for ") ;
|
m_errline("Unable to allocate space for ") ;
|
||||||
m_errline(msg) ;
|
m_errline(msg) ;
|
||||||
|
@ -164,14 +114,8 @@ void *m_realloc(ptr, size, msg)
|
||||||
void *p ;
|
void *p ;
|
||||||
|
|
||||||
size *= sizeof(M_WCHAR);
|
size *= sizeof(M_WCHAR);
|
||||||
#if defined(MSDOS)
|
|
||||||
if (m_heapchk) m_heapdump() ;
|
|
||||||
#endif
|
|
||||||
if (! size) return(NULL) ;
|
if (! size) return(NULL) ;
|
||||||
p = (void *) realloc(ptr, size) ;
|
p = (void *) realloc(ptr, size) ;
|
||||||
#if defined(MSDOS)
|
|
||||||
if (m_heapchk) m_heapdump() ;
|
|
||||||
#endif
|
|
||||||
if (! p) {
|
if (! p) {
|
||||||
m_errline("Unable to re-allocate space for ") ;
|
m_errline("Unable to re-allocate space for ") ;
|
||||||
m_errline(msg) ;
|
m_errline(msg) ;
|
||||||
|
|
|
@ -26,9 +26,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
|
|
||||||
extern FILE *m_errfile ;
|
extern FILE *m_errfile ;
|
||||||
|
|
|
@ -31,10 +31,6 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <stdlib.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
|
@ -31,9 +31,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "context.h"
|
#include "context.h"
|
||||||
#define BUILDEF
|
#define BUILDEF
|
||||||
#include "build.h"
|
#include "build.h"
|
||||||
|
|
|
@ -32,9 +32,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "context.h"
|
#include "context.h"
|
||||||
#include "build.h"
|
#include "build.h"
|
||||||
#include "delim.h"
|
#include "delim.h"
|
||||||
|
|
|
@ -30,9 +30,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
/* Scan.c contains scanner procedures for program BUILD */
|
/* Scan.c contains scanner procedures for program BUILD */
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "build.h"
|
#include "build.h"
|
||||||
#define M_CONDEF
|
#define M_CONDEF
|
||||||
#include "context.h"
|
#include "context.h"
|
||||||
|
|
|
@ -32,9 +32,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
||||||
|
|
|
@ -32,9 +32,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
||||||
|
|
|
@ -31,9 +31,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
||||||
|
|
|
@ -32,15 +32,6 @@ Copyright (c) 1988, 1989 Hewlett-Packard Co.
|
||||||
#include "globdec.h"
|
#include "globdec.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
/* Standard startup code doesn't have room to load inherited environments
|
|
||||||
in some cases. Since they're not used, don't bother. (Using Microsoft
|
|
||||||
C compiler). */
|
|
||||||
void _setenvp(void);
|
|
||||||
void _setenvp(){}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Write input file and line number for an error message */
|
/* Write input file and line number for an error message */
|
||||||
void m_dumpline(file, line)
|
void m_dumpline(file, line)
|
||||||
M_WCHAR *file;
|
M_WCHAR *file;
|
||||||
|
@ -92,9 +83,6 @@ for ( ; *p ; p++)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
/* Write error message suffix */
|
/* Write error message suffix */
|
||||||
void m_esuffix(void)
|
void m_esuffix(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -36,11 +36,6 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <io.h>
|
|
||||||
#include <process.h>
|
|
||||||
#include <direct.h>
|
|
||||||
#endif
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
|
@ -133,9 +133,6 @@
|
||||||
<\CODE>
|
<\CODE>
|
||||||
|
|
||||||
<!ENTITY m-machine SDATA CODE>
|
<!ENTITY m-machine SDATA CODE>
|
||||||
#if defined(MSDOS)
|
|
||||||
m_piaction("VECTRA", "m-machine", M_SDATA) ;
|
|
||||||
#else
|
|
||||||
#if defined(hpux)
|
#if defined(hpux)
|
||||||
{
|
{
|
||||||
M_WCHAR *wc_1, *wc_2;
|
M_WCHAR *wc_1, *wc_2;
|
||||||
|
@ -174,7 +171,6 @@
|
||||||
M_SDATA) ;
|
M_SDATA) ;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
<\CODE>
|
<\CODE>
|
||||||
|
|
||||||
|
|
|
@ -31,11 +31,6 @@
|
||||||
or invoke function pointers should be in tex.c.
|
or invoke function pointers should be in tex.c.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <sys\types.h>
|
|
||||||
#include <sys\stat.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
|
@ -32,9 +32,6 @@ in the interface definition.*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
|
@ -32,9 +32,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
#include "context.h"
|
#include "context.h"
|
||||||
|
|
|
@ -32,9 +32,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
#include "dtdext.h"
|
#include "dtdext.h"
|
||||||
|
|
|
@ -27,9 +27,6 @@ Copyright 1988, 1989 Hewlett-Packard Co.
|
||||||
|
|
||||||
#include "userinc.h"
|
#include "userinc.h"
|
||||||
#include "globdec.h"
|
#include "globdec.h"
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Write error message suffix */
|
/* Write error message suffix */
|
||||||
void m_esuffix(void)
|
void m_esuffix(void)
|
||||||
|
|
|
@ -27,9 +27,6 @@ Copyright 1988, 1989 Hewlett-Packard Co.
|
||||||
|
|
||||||
#include "userinc.h"
|
#include "userinc.h"
|
||||||
#include "globdec.h"
|
#include "globdec.h"
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Default version of PARSER m_exit(). Allows interface control if
|
/* Default version of PARSER m_exit(). Allows interface control if
|
||||||
internal error causes PARSER to halt. */
|
internal error causes PARSER to halt. */
|
||||||
|
|
|
@ -31,9 +31,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
#include "dtdext.h"
|
#include "dtdext.h"
|
||||||
|
|
|
@ -32,9 +32,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
#include "delim.h"
|
#include "delim.h"
|
||||||
|
|
|
@ -33,9 +33,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
#include "dtdext.h"
|
#include "dtdext.h"
|
||||||
|
|
|
@ -32,9 +32,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
#define M_CONDEF
|
#define M_CONDEF
|
||||||
|
|
|
@ -33,9 +33,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
#include "dtdext.h"
|
#include "dtdext.h"
|
||||||
|
|
|
@ -158,9 +158,6 @@ delim.h.
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
||||||
|
|
|
@ -31,9 +31,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
||||||
|
|
|
@ -24,12 +24,9 @@
|
||||||
/* Copyright (c) 1988, 1989 Hewlett-Packard Co. */
|
/* Copyright (c) 1988, 1989 Hewlett-Packard Co. */
|
||||||
/* Creates a file with nothing in it */
|
/* Creates a file with nothing in it */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
|
|
||||||
void main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
if (argc != 2) {
|
if (argc != 2) {
|
||||||
fprintf(stderr, "Usage: emptyfil filename\n") ;
|
fprintf(stderr, "Usage: emptyfil filename\n") ;
|
||||||
|
|
|
@ -25,9 +25,6 @@
|
||||||
Copyright 1988, 1989 Hewlett-Packard Co.
|
Copyright 1988, 1989 Hewlett-Packard Co.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
|
|
||||||
void m_exit(int status);
|
void m_exit(int status);
|
||||||
|
|
|
@ -37,9 +37,6 @@ with an error code of 0 if the files are the same, 1 if they differ, and
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#define SAME 0
|
#define SAME 0
|
||||||
/* different defined to be 0 as of 12-1-89, because fclndir now does
|
/* different defined to be 0 as of 12-1-89, because fclndir now does
|
||||||
|
@ -124,11 +121,7 @@ void copyfile(pfile1,pfile2)
|
||||||
spaces, and the terminating null */
|
spaces, and the terminating null */
|
||||||
slen = strlen(pfile1) + strlen(pfile2) + 8;
|
slen = strlen(pfile1) + strlen(pfile2) + 8;
|
||||||
pcmd = (char *) malloc(slen);
|
pcmd = (char *) malloc(slen);
|
||||||
#if defined(MSDOS)
|
|
||||||
ret = snprintf(pcmd, slen, "copy %s %s",pfile1,pfile2);
|
|
||||||
#else
|
|
||||||
ret = snprintf(pcmd, slen, "cp %s %s",pfile1,pfile2);
|
ret = snprintf(pcmd, slen, "cp %s %s",pfile1,pfile2);
|
||||||
#endif
|
|
||||||
ret = system(pcmd);
|
ret = system(pcmd);
|
||||||
ret = snprintf(pcmd, slen, "touch %s",pfile2);
|
ret = snprintf(pcmd, slen, "touch %s",pfile2);
|
||||||
ret = system(pcmd);
|
ret = system(pcmd);
|
||||||
|
|
|
@ -25,9 +25,6 @@
|
||||||
Copyright 1986, 1987, 1988, 1989 Hewlett-Packard Co.
|
Copyright 1986, 1987, 1988, 1989 Hewlett-Packard Co.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
|
|
||||||
void m_err1(const char *text, const char *arg);
|
void m_err1(const char *text, const char *arg);
|
||||||
|
|
|
@ -28,9 +28,6 @@
|
||||||
/**/
|
/**/
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
|
|
||||||
extern LOGICAL m_heapchk ;
|
extern LOGICAL m_heapchk ;
|
||||||
|
@ -58,9 +55,6 @@ void m_free(block, msg)
|
||||||
{
|
{
|
||||||
char buffer[32] ;
|
char buffer[32] ;
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
if (m_heapchk) m_heapdump() ;
|
|
||||||
#endif
|
|
||||||
if (m_malftrace) {
|
if (m_malftrace) {
|
||||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||||
snprintf(buffer, 32, "%5x:%5x",
|
snprintf(buffer, 32, "%5x:%5x",
|
||||||
|
@ -75,46 +69,8 @@ void m_free(block, msg)
|
||||||
m_trace("\n") ;
|
m_trace("\n") ;
|
||||||
}
|
}
|
||||||
free(block) ;
|
free(block) ;
|
||||||
#if defined(MSDOS)
|
|
||||||
if (m_heapchk) m_heapdump() ;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
void m_heapdump(void)
|
|
||||||
{
|
|
||||||
struct _heapinfo hinfo ;
|
|
||||||
int heapstatus ;
|
|
||||||
|
|
||||||
heapstatus = _heapchk() ;
|
|
||||||
if (heapstatus == _HEAPOK || heapstatus == _HEAPEMPTY) return ;
|
|
||||||
printf("\nDumping heap:\n") ;
|
|
||||||
hinfo._pentry = NULL ;
|
|
||||||
while ((heapstatus = _heapwalk(&hinfo)) == _HEAPOK)
|
|
||||||
printf("%6s block at %p of size %4.4X\n",
|
|
||||||
hinfo._useflag == _USEDENTRY ? "USED" : "FREE",
|
|
||||||
hinfo._pentry, hinfo._size) ;
|
|
||||||
switch(heapstatus) {
|
|
||||||
case _HEAPEMPTY:
|
|
||||||
printf("OK - empty heap\n\n") ;
|
|
||||||
break ;
|
|
||||||
case _HEAPEND:
|
|
||||||
printf("OK - end of heap\n\n") ;
|
|
||||||
break ;
|
|
||||||
case _HEAPBADPTR:
|
|
||||||
printf("Error - bad pointer to heap\n\n") ;
|
|
||||||
break ;
|
|
||||||
case _HEAPBADBEGIN:
|
|
||||||
printf("Error - bad start of heap\n\n") ;
|
|
||||||
break ;
|
|
||||||
case _HEAPBADNODE:
|
|
||||||
printf("Error - bad node in heap\n\n") ;
|
|
||||||
break ;
|
|
||||||
}
|
|
||||||
m_exit(TRUE) ;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void *m_malloc(size, msg)
|
void *m_malloc(size, msg)
|
||||||
int size ;
|
int size ;
|
||||||
char *msg ;
|
char *msg ;
|
||||||
|
@ -123,14 +79,8 @@ void *m_malloc(size, msg)
|
||||||
void *p ;
|
void *p ;
|
||||||
|
|
||||||
size *= sizeof(M_WCHAR);
|
size *= sizeof(M_WCHAR);
|
||||||
#if defined(MSDOS)
|
|
||||||
if (m_heapchk) m_heapdump() ;
|
|
||||||
#endif
|
|
||||||
if (! size) return(NULL) ;
|
if (! size) return(NULL) ;
|
||||||
p = (void *) malloc(size) ;
|
p = (void *) malloc(size) ;
|
||||||
#if defined(MSDOS)
|
|
||||||
if (m_heapchk) m_heapdump() ;
|
|
||||||
#endif
|
|
||||||
if (! p) {
|
if (! p) {
|
||||||
m_errline("Unable to allocate space for ") ;
|
m_errline("Unable to allocate space for ") ;
|
||||||
m_errline(msg) ;
|
m_errline(msg) ;
|
||||||
|
@ -164,14 +114,8 @@ void *m_realloc(ptr, size, msg)
|
||||||
void *p ;
|
void *p ;
|
||||||
|
|
||||||
size *= sizeof(M_WCHAR);
|
size *= sizeof(M_WCHAR);
|
||||||
#if defined(MSDOS)
|
|
||||||
if (m_heapchk) m_heapdump() ;
|
|
||||||
#endif
|
|
||||||
if (! size) return(NULL) ;
|
if (! size) return(NULL) ;
|
||||||
p = (void *) realloc(ptr, size) ;
|
p = (void *) realloc(ptr, size) ;
|
||||||
#if defined(MSDOS)
|
|
||||||
if (m_heapchk) m_heapdump() ;
|
|
||||||
#endif
|
|
||||||
if (! p) {
|
if (! p) {
|
||||||
m_errline("Unable to re-allocate space for ") ;
|
m_errline("Unable to re-allocate space for ") ;
|
||||||
m_errline(msg) ;
|
m_errline(msg) ;
|
||||||
|
|
|
@ -26,9 +26,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
|
|
||||||
extern FILE *m_errfile ;
|
extern FILE *m_errfile ;
|
||||||
|
|
|
@ -31,10 +31,6 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <stdlib.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
|
@ -31,9 +31,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "context.h"
|
#include "context.h"
|
||||||
#define BUILDEF
|
#define BUILDEF
|
||||||
#include "build.h"
|
#include "build.h"
|
||||||
|
|
|
@ -32,9 +32,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "context.h"
|
#include "context.h"
|
||||||
#include "build.h"
|
#include "build.h"
|
||||||
#include "delim.h"
|
#include "delim.h"
|
||||||
|
|
|
@ -30,9 +30,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
/* Scan.c contains scanner procedures for program BUILD */
|
/* Scan.c contains scanner procedures for program BUILD */
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "build.h"
|
#include "build.h"
|
||||||
#define M_CONDEF
|
#define M_CONDEF
|
||||||
#include "context.h"
|
#include "context.h"
|
||||||
|
|
|
@ -32,9 +32,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
||||||
|
|
|
@ -32,9 +32,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
||||||
|
|
|
@ -31,9 +31,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
||||||
|
|
|
@ -32,15 +32,6 @@ Copyright (c) 1988, 1989 Hewlett-Packard Co.
|
||||||
#include "globdec.h"
|
#include "globdec.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
/* Standard startup code doesn't have room to load inherited environments
|
|
||||||
in some cases. Since they're not used, don't bother. (Using Microsoft
|
|
||||||
C compiler). */
|
|
||||||
void _setenvp(void);
|
|
||||||
void _setenvp(){}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Write input file and line number for an error message */
|
/* Write input file and line number for an error message */
|
||||||
void m_dumpline(file, line)
|
void m_dumpline(file, line)
|
||||||
M_WCHAR *file;
|
M_WCHAR *file;
|
||||||
|
@ -90,9 +81,6 @@ for ( ; *p ; p++)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
/* Write error message suffix */
|
/* Write error message suffix */
|
||||||
void m_esuffix(void)
|
void m_esuffix(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -36,11 +36,6 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <io.h>
|
|
||||||
#include <process.h>
|
|
||||||
#include <direct.h>
|
|
||||||
#endif
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||||
|
|
|
@ -32,9 +32,6 @@ in the interface definition.*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
|
|
|
@ -32,9 +32,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#if defined(MSDOS)
|
|
||||||
#include <process.h>
|
|
||||||
#endif
|
|
||||||
#include "basic.h"
|
#include "basic.h"
|
||||||
#include "trie.h"
|
#include "trie.h"
|
||||||
#include "context.h"
|
#include "context.h"
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue