#include <string.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "context.h"
#define BUILDEF
#include "build.h"
#include <string.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "context.h"
#include "build.h"
#include "delim.h"
/* Scan.c contains scanner procedures for program BUILD */
#include <string.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "build.h"
#define M_CONDEF
#include "context.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include <stdio.h>
#include <string.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "globdec.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 */
void m_dumpline(file, line)
M_WCHAR *file;
}
}
-#if defined(MSDOS)
-#include <process.h>
-#endif
/* Write error message suffix */
void m_esuffix(void)
{
#include <stdlib.h>
#include <string.h>
-#if defined(MSDOS)
-#include <io.h>
-#include <process.h>
-#include <direct.h>
-#endif
#include <ctype.h>
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
/* NOTE: If driver is redimensioned, a change is needed in texinit() */
EXTERN char driver[20]
-#if defined(MSDOS)
- INIT("CDS")
-#else
#if defined(hpux)
INIT("HPUX")
#endif
#endif
#if defined(sun)
INIT("SUN")
-#endif
#endif
;
EXTERN SEARCH *path INIT(NULL) ;
EXTERN SEARCH **endpath INIT(&path) ;
EXTERN char dirsep
-#if defined(MSDOS)
-INIT('\\')
-#else
#if defined(hpux) || defined(_AIX) || defined(sun)
INIT('/')
#else
****define directory separator here****
-#endif
#endif
;
#define CSEP '/'
#define SSEP "/"
#else
-#if defined(MSDOS)
-#define CSEP '\\'
-#define SSEP "\\"
-#else
****define directory separator here****
#endif
-#endif
/* Location in .TEX file of two \wlog messages */
EXTERN long wlog ;
) filelist = TRUE;
/* 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__)
#define CONTRIB "/usr/hphelp/bin/"
#else
Get installation directory
-#endif
#endif
/* Set default working directory (from input filename) */
for (p = strchr(m_argv[1], M_EOS); p > m_argv[1] ; p--)
- if (*(p - 1) == dirsep
-#if defined(MSDOS)
- || *(p - 1) == ':'
-#endif
- ) break;
+ if (*(p - 1) == dirsep)
+ break;
if (p > m_argv[1]) {
save = *p;
*p = M_EOS;
}
}
-#if defined(MSDOS)
-m_openchk(&nullfile, "NUL", "w");
-#else
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__)
m_openchk(&nullfile, "/dev/null", "w");
#else
m_openchk(&nullfile, "nullfile", "w");
#endif
-#endif
-#if defined(MSDOS)
-#else
-#endif
idxupdate = ftell(outfile);
<\CODE>
<!ENTITY m-machine SDATA CODE>
-#if defined(MSDOS)
- m_piaction("VECTRA", "m-machine", M_SDATA) ;
-#else
#if defined(hpux)
{
M_WCHAR *wc_1, *wc_2;
M_SDATA) ;
#endif
#endif
-#endif
#endif
<\CODE>
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)
#include <sys/types.h>
#include <sys/stat.h>
switch (thisopt)
{
case SEARCHKEY:
- if ( (parentsrch==TRUE) && (*string!=M_EOS) && (*string!=dirsep)
-#if defined(MSDOS)
- && ( *(string+1) != ':' )
-#endif
- )
+ if ( (parentsrch==TRUE) && (*string!=M_EOS) && (*string!=dirsep) )
{
/* prepend "..", for index processing in temporary sub-directory */
tempstr = (char *) m_malloc( strlen(string) + 4, "tempstr search");
*endpath = (SEARCH *) m_malloc(sizeof(SEARCH), "search path");
p = strchr(tempstr, M_EOS);
- if (p != tempstr && *(p - 1) != dirsep
- #if defined(MSDOS)
- && *(p - 1) != ':'
- #endif
- )
+ if (p != tempstr && *(p - 1) != dirsep)
{
i = strlen(tempstr);
(*endpath)->directory = (char *) m_malloc(i + 2,
#include <stdio.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include <string.h>
#include "basic.h"
#include "trie.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "context.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "dtdext.h"
#include "userinc.h"
#include "globdec.h"
-#if defined(MSDOS)
-#include <process.h>
-#endif
/* Write error message suffix */
void m_esuffix(void)
#include "userinc.h"
#include "globdec.h"
-#if defined(MSDOS)
-#include <process.h>
-#endif
/* Default version of PARSER m_exit(). Allows interface control if
internal error causes PARSER to halt. */
#include <stdio.h>
#include <string.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "dtdext.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "delim.h"
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "dtdext.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#define M_CONDEF
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "dtdext.h"
#include <stdio.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
/* Copyright (c) 1988, 1989 Hewlett-Packard Co. */
/* Creates a file with nothing in it */
#include <stdio.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
void main(int argc, char **argv)
Copyright 1988, 1989 Hewlett-Packard Co.
*/
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
void m_exit(int status);
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#define SAME 0
/* different defined to be 0 as of 12-1-89, because fclndir now does
/* malloc space for the system command: two filenames, plus a command,
spaces, and the terminating null */
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);
-#endif
ret = system(pcmd);
ret = sprintf(pcmd,"touch %s",pfile2);
ret = system(pcmd);
Copyright 1986, 1987, 1988, 1989 Hewlett-Packard Co.
*/
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
void m_err1(const char *text, const char *arg);
/**/
#include <stdlib.h>
#include <stdio.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
extern LOGICAL m_heapchk ;
{
char buffer[32] ;
-#if defined(MSDOS)
- if (m_heapchk) m_heapdump() ;
-#endif
if (m_malftrace) {
#if defined(hpux) || defined(_AIX) || defined(sun)
sprintf(buffer, "%5x:%5x",
m_trace("\n") ;
}
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)
int size ;
void *p ;
size *= sizeof(M_WCHAR);
-#if defined(MSDOS)
- if (m_heapchk) m_heapdump() ;
-#endif
if (! size) return(NULL) ;
p = (void *) malloc(size) ;
-#if defined(MSDOS)
- if (m_heapchk) m_heapdump() ;
-#endif
if (! p) {
m_errline("Unable to allocate space for ") ;
m_errline(msg) ;
void *p ;
size *= sizeof(M_WCHAR);
-#if defined(MSDOS)
- if (m_heapchk) m_heapdump() ;
-#endif
if (! size) return(NULL) ;
p = (void *) realloc(ptr, size) ;
-#if defined(MSDOS)
- if (m_heapchk) m_heapdump() ;
-#endif
if (! p) {
m_errline("Unable to re-allocate space for ") ;
m_errline(msg) ;
*/
#include <stdio.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
extern FILE *m_errfile ;
#include <stdio.h>
-#if defined(MSDOS)
-#include <stdlib.h>
-#endif
-
#include "basic.h"
#include "common.h"
#include "trie.h"
#include <string.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "context.h"
#define BUILDEF
#include "build.h"
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "context.h"
#include "build.h"
#include "delim.h"
/* Scan.c contains scanner procedures for program BUILD */
#include <string.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "build.h"
#define M_CONDEF
#include "context.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include <stdio.h>
#include <string.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "globdec.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 */
void m_dumpline(file, line)
M_WCHAR *file;
}
}
-#if defined(MSDOS)
-#include <process.h>
-#endif
/* Write error message suffix */
void m_esuffix(void)
{
#include <stdlib.h>
#include <string.h>
#include <time.h>
-#if defined(MSDOS)
-#include <io.h>
-#include <process.h>
-#include <direct.h>
-#endif
#include <ctype.h>
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
EXTERN SEARCH *path INIT(NULL) ;
EXTERN SEARCH **endpath INIT(&path) ;
EXTERN char dirsep
-#if defined(MSDOS)
-INIT('\\')
-#else
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
INIT('/')
#else
****define directory separator here****
-#endif
#endif
;
#define CSEP '/'
#define SSEP "/"
#else
-#if defined(MSDOS)
-#define CSEP '\\'
-#define SSEP "\\"
-#else
****define directory separator here****
#endif
-#endif
/* Location in .TEX file of two \wlog messages */
EXTERN long wlog ;
</CODE>
<!ENTITY m-machine SDATA CODE>
-#if defined(MSDOS)
- m_piaction("VECTRA", "m-machine", M_SDATA) ;
-#else
#if defined(hpux)
{
M_WCHAR *wc_1, *wc_2;
M_SDATA) ;
#endif
#endif
-#endif
#endif
</CODE>
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)
#include <sys/types.h>
#include <sys/stat.h>
switch (thisopt)
{
case SEARCHKEY:
- if ( (parentsrch==TRUE) && (*string!=M_EOS) && (*string!=dirsep)
-#if defined(MSDOS)
- && ( *(string+1) != ':' )
-#endif
- )
+ if ( (parentsrch==TRUE) && (*string!=M_EOS) && (*string!=dirsep) )
{
/* prepend "..", for index processing in temporary sub-directory */
tempstr = (char *) m_malloc( strlen(string) + 4, "tempstr search");
*endpath = (SEARCH *) m_malloc(sizeof(SEARCH), "search path");
p = strchr(tempstr, M_EOS);
- if (p != tempstr && *(p - 1) != dirsep
- #if defined(MSDOS)
- && *(p - 1) != ':'
- #endif
- )
+ if (p != tempstr && *(p - 1) != dirsep)
{
i = strlen(tempstr);
(*endpath)->directory = (char *) m_malloc(i + 2,
#include <stdio.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include <string.h>
#include "basic.h"
#include "trie.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "context.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "dtdext.h"
#include "userinc.h"
#include "globdec.h"
-#if defined(MSDOS)
-#include <process.h>
-#endif
/* Write error message suffix */
void m_esuffix(void)
#include "userinc.h"
#include "globdec.h"
-#if defined(MSDOS)
-#include <process.h>
-#endif
/* Default version of PARSER m_exit(). Allows interface control if
internal error causes PARSER to halt. */
#include <stdio.h>
#include <string.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "dtdext.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "delim.h"
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "dtdext.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#define M_CONDEF
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "dtdext.h"
#include <stdio.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
/* Copyright (c) 1988, 1989 Hewlett-Packard Co. */
/* Creates a file with nothing in it */
#include <stdio.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
void main(int argc, char **argv);
Copyright 1988, 1989 Hewlett-Packard Co.
*/
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
void m_exit(int status);
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#define SAME 0
/* different defined to be 0 as of 12-1-89, because fclndir now does
spaces, and the terminating null */
slen = strlen(pfile1) + strlen(pfile2) + 8;
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);
-#endif
ret = system(pcmd);
ret = snprintf(pcmd, slen, "touch %s",pfile2);
ret = system(pcmd);
Copyright 1986, 1987, 1988, 1989 Hewlett-Packard Co.
*/
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
void m_err1(const char *text, const char *arg);
/**/
#include <stdlib.h>
#include <stdio.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
extern LOGICAL m_heapchk ;
{
char buffer[32] ;
-#if defined(MSDOS)
- if (m_heapchk) m_heapdump() ;
-#endif
free(block) ;
if (m_malftrace) {
#if defined(hpux) || defined(_AIX) || defined(sun)
m_trace(msg) ;
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)
int size ;
void *p ;
size *= sizeof(M_WCHAR);
-#if defined(MSDOS)
- if (m_heapchk) m_heapdump() ;
-#endif
if (! size) return(NULL) ;
p = (void *) malloc(size) ;
-#if defined(MSDOS)
- if (m_heapchk) m_heapdump() ;
-#endif
if (! p) {
m_errline("Unable to allocate space for ") ;
m_errline(msg) ;
void *p ;
size *= sizeof(M_WCHAR);
-#if defined(MSDOS)
- if (m_heapchk) m_heapdump() ;
-#endif
if (! size) return(NULL) ;
p = (void *) realloc(ptr, size) ;
-#if defined(MSDOS)
- if (m_heapchk) m_heapdump() ;
-#endif
if (! p) {
m_errline("Unable to re-allocate space for ") ;
m_errline(msg) ;
*/
#include <stdio.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
extern FILE *m_errfile ;
#include <stdio.h>
-#if defined(MSDOS)
-#include <stdlib.h>
-#endif
-
#include "basic.h"
#include "common.h"
#include "trie.h"
#include <string.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "context.h"
#define BUILDEF
#include "build.h"
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "context.h"
#include "build.h"
#include "delim.h"
/* Scan.c contains scanner procedures for program BUILD */
#include <string.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "build.h"
#define M_CONDEF
#include "context.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include <stdio.h>
#include <string.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "globdec.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 */
void m_dumpline(file, line)
M_WCHAR *file;
}
}
-#if defined(MSDOS)
-#include <process.h>
-#endif
/* Write error message suffix */
void m_esuffix(void)
{
#include <stdlib.h>
#include <string.h>
#include <time.h>
-#if defined(MSDOS)
-#include <io.h>
-#include <process.h>
-#include <direct.h>
-#endif
#include <ctype.h>
#include <unistd.h>
<\CODE>
<!ENTITY m-machine SDATA CODE>
-#if defined(MSDOS)
- m_piaction("VECTRA", "m-machine", M_SDATA) ;
-#else
#if defined(hpux)
{
M_WCHAR *wc_1, *wc_2;
M_SDATA) ;
#endif
#endif
-#endif
#endif
<\CODE>
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)
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include <string.h>
#include "basic.h"
#include "trie.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "context.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "dtdext.h"
#include "userinc.h"
#include "globdec.h"
-#if defined(MSDOS)
-#include <process.h>
-#endif
/* Write error message suffix */
void m_esuffix(void)
#include "userinc.h"
#include "globdec.h"
-#if defined(MSDOS)
-#include <process.h>
-#endif
/* Default version of PARSER m_exit(). Allows interface control if
internal error causes PARSER to halt. */
#include <stdio.h>
#include <string.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "dtdext.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "delim.h"
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "dtdext.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#define M_CONDEF
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "dtdext.h"
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
/* Copyright (c) 1988, 1989 Hewlett-Packard Co. */
/* Creates a file with nothing in it */
#include <stdio.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
-void main(int argc, char **argv)
+int main(int argc, char **argv)
{
if (argc != 2) {
fprintf(stderr, "Usage: emptyfil filename\n") ;
Copyright 1988, 1989 Hewlett-Packard Co.
*/
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
void m_exit(int status);
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#define SAME 0
/* different defined to be 0 as of 12-1-89, because fclndir now does
spaces, and the terminating null */
slen = strlen(pfile1) + strlen(pfile2) + 8;
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);
-#endif
ret = system(pcmd);
ret = snprintf(pcmd, slen, "touch %s",pfile2);
ret = system(pcmd);
Copyright 1986, 1987, 1988, 1989 Hewlett-Packard Co.
*/
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
void m_err1(const char *text, const char *arg);
/**/
#include <stdlib.h>
#include <stdio.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
extern LOGICAL m_heapchk ;
{
char buffer[32] ;
-#if defined(MSDOS)
- if (m_heapchk) m_heapdump() ;
-#endif
if (m_malftrace) {
#if defined(hpux) || defined(_AIX) || defined(sun)
snprintf(buffer, 32, "%5x:%5x",
m_trace("\n") ;
}
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)
int size ;
void *p ;
size *= sizeof(M_WCHAR);
-#if defined(MSDOS)
- if (m_heapchk) m_heapdump() ;
-#endif
if (! size) return(NULL) ;
p = (void *) malloc(size) ;
-#if defined(MSDOS)
- if (m_heapchk) m_heapdump() ;
-#endif
if (! p) {
m_errline("Unable to allocate space for ") ;
m_errline(msg) ;
void *p ;
size *= sizeof(M_WCHAR);
-#if defined(MSDOS)
- if (m_heapchk) m_heapdump() ;
-#endif
if (! size) return(NULL) ;
p = (void *) realloc(ptr, size) ;
-#if defined(MSDOS)
- if (m_heapchk) m_heapdump() ;
-#endif
if (! p) {
m_errline("Unable to re-allocate space for ") ;
m_errline(msg) ;
*/
#include <stdio.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
extern FILE *m_errfile ;
#include <stdio.h>
-#if defined(MSDOS)
-#include <stdlib.h>
-#endif
-
#include "basic.h"
#include "common.h"
#include "trie.h"
#include <string.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "context.h"
#define BUILDEF
#include "build.h"
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "context.h"
#include "build.h"
#include "delim.h"
/* Scan.c contains scanner procedures for program BUILD */
#include <string.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "build.h"
#define M_CONDEF
#include "context.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include <stdio.h>
#include <string.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "globdec.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 */
void m_dumpline(file, line)
M_WCHAR *file;
}
}
-#if defined(MSDOS)
-#include <process.h>
-#endif
/* Write error message suffix */
void m_esuffix(void)
{
#include <stdlib.h>
#include <string.h>
#include <time.h>
-#if defined(MSDOS)
-#include <io.h>
-#include <process.h>
-#include <direct.h>
-#endif
#include <ctype.h>
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
#include <stdio.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include <string.h>
#include "basic.h"
#include "trie.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "context.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "dtdext.h"
#include "userinc.h"
#include "globdec.h"
-#if defined(MSDOS)
-#include <process.h>
-#endif
/* Write error message suffix */
void m_esuffix(void)
#include "userinc.h"
#include "globdec.h"
-#if defined(MSDOS)
-#include <process.h>
-#endif
/* Default version of PARSER m_exit(). Allows interface control if
internal error causes PARSER to halt. */
#include <stdio.h>
#include <string.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "dtdext.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "delim.h"
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "dtdext.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#define M_CONDEF
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include "dtdext.h"
#include <stdio.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#include "trie.h"
/* Copyright (c) 1988, 1989 Hewlett-Packard Co. */
/* Creates a file with nothing in it */
#include <stdio.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
void main(int argc, char **argv);
Copyright 1988, 1989 Hewlett-Packard Co.
*/
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
void m_exit(int status);
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
#define SAME 0
/* different defined to be 0 as of 12-1-89, because fclndir now does
spaces, and the terminating null */
slen = strlen(pfile1) + strlen(pfile2) + 8;
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);
-#endif
ret = system(pcmd);
ret = snprintf(pcmd, slen, "touch %s",pfile2);
ret = system(pcmd);
Copyright 1986, 1987, 1988, 1989 Hewlett-Packard Co.
*/
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
void m_err1(const char *text, const char *arg);
/**/
#include <stdlib.h>
#include <stdio.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
extern LOGICAL m_heapchk ;
{
char buffer[32] ;
-#if defined(MSDOS)
- if (m_heapchk) m_heapdump() ;
-#endif
if (m_malftrace) {
#if defined(hpux) || defined(_AIX) || defined(sun)
snprintf(buffer, 32, "%5x:%5x",
m_trace("\n") ;
}
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)
int size ;
void *p ;
size *= sizeof(M_WCHAR);
-#if defined(MSDOS)
- if (m_heapchk) m_heapdump() ;
-#endif
if (! size) return(NULL) ;
p = (void *) malloc(size) ;
-#if defined(MSDOS)
- if (m_heapchk) m_heapdump() ;
-#endif
if (! p) {
m_errline("Unable to allocate space for ") ;
m_errline(msg) ;
void *p ;
size *= sizeof(M_WCHAR);
-#if defined(MSDOS)
- if (m_heapchk) m_heapdump() ;
-#endif
if (! size) return(NULL) ;
p = (void *) realloc(ptr, size) ;
-#if defined(MSDOS)
- if (m_heapchk) m_heapdump() ;
-#endif
if (! p) {
m_errline("Unable to re-allocate space for ") ;
m_errline(msg) ;
*/
#include <stdio.h>
-#if defined(MSDOS)
-#include <process.h>
-#endif
#include "basic.h"
extern FILE *m_errfile ;
#include <stdio.h>
-#if defined(MSDOS)
-#include <stdlib.h>
-#endif
-
#include "basic.h"
#include "common.h"
#include "trie.h"