Coverage Report

Created: 2022-07-08 09:39

/home/mdboom/Work/builds/cpython/Include/osdefs.h
Line
Count
Source
1
#ifndef Py_OSDEFS_H
2
#define Py_OSDEFS_H
3
#ifdef __cplusplus
4
extern "C" {
5
#endif
6
7
8
/* Operating system dependencies */
9
10
#ifdef MS_WINDOWS
11
#define SEP L'\\'
12
#define ALTSEP L'/'
13
#define MAXPATHLEN 256
14
#define DELIM L';'
15
#endif
16
17
#ifdef __VXWORKS__
18
#define DELIM L';'
19
#endif
20
21
/* Filename separator */
22
#ifndef SEP
23
#define SEP L'/'
24
#endif
25
26
/* Max pathname length */
27
#ifdef __hpux
28
#include <sys/param.h>
29
#include <limits.h>
30
#ifndef PATH_MAX
31
#define PATH_MAX MAXPATHLEN
32
#endif
33
#endif
34
35
#ifndef MAXPATHLEN
36
#if defined(PATH_MAX) && PATH_MAX > 1024
37
#define MAXPATHLEN PATH_MAX
38
#else
39
#define MAXPATHLEN 1024
40
#endif
41
#endif
42
43
/* Search path entry delimiter */
44
#ifndef DELIM
45
#define DELIM L':'
46
#endif
47
48
#ifdef __cplusplus
49
}
50
#endif
51
#endif /* !Py_OSDEFS_H */