File: system.h

package info (click to toggle)
bison%2B%2B 1.21.11-5
  • links: PTS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,688 kB
  • sloc: cpp: 8,198; sh: 613; ansic: 464; makefile: 74; yacc: 44; lex: 30
file content (34 lines) | stat: -rw-r--r-- 863 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifdef MSDOS
#ifndef _MSDOS
#define _MSDOS
#endif
#endif

#if defined(HAVE_STDLIB_H) || defined(_MSDOS)
#include <stdlib.h>
#endif

#if (defined(VMS) || defined(MSDOS)) && !defined(HAVE_STRING_H)
#define HAVE_STRING_H 1
#endif

#ifdef _MSDOS
#include <io.h>

#define strlwr _strlwr
#define strupr _strupr
#define unlink _unlink
#define mktemp _mktemp
#endif /* MSDOS */

#if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
#include <string.h>
/* An ANSI string.h and pre-ANSI memory.h might conflict.  */
#if !defined(STDC_HEADERS) && defined(HAVE_MEMORY_H)
#include <memory.h>
#endif /* not STDC_HEADERS and HAVE_MEMORY_H */
#define bcopy(src, dst, num) memcpy((dst), (src), (num))
#else /* not STDC_HEADERS and not HAVE_STRING_H */
#include <strings.h>
/* memory.h and strings.h conflict on some systems.  */
#endif /* not STDC_HEADERS and not HAVE_STRING_H */