Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5948f56

Browse files
authored
gh-108765: Reformat Include/osdefs.h (#108766)
1 parent 23f54c1 commit 5948f56

File tree

1 file changed

+27
-21
lines changed

1 file changed

+27
-21
lines changed

Include/osdefs.h

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,57 @@
1+
// Operating system dependencies.
2+
//
3+
// Define constants:
4+
//
5+
// - ALTSEP
6+
// - DELIM
7+
// - MAXPATHLEN
8+
// - SEP
9+
110
#ifndef Py_OSDEFS_H
211
#define Py_OSDEFS_H
312
#ifdef __cplusplus
413
extern "C" {
514
#endif
615

7-
8-
/* Operating system dependencies */
9-
1016
#ifdef MS_WINDOWS
11-
#define SEP L'\\'
12-
#define ALTSEP L'/'
13-
#define MAXPATHLEN 256
14-
#define DELIM L';'
17+
# define SEP L'\\'
18+
# define ALTSEP L'/'
19+
# define MAXPATHLEN 256
20+
# define DELIM L';'
1521
#endif
1622

1723
#ifdef __VXWORKS__
18-
#define DELIM L';'
24+
# define DELIM L';'
1925
#endif
2026

2127
/* Filename separator */
2228
#ifndef SEP
23-
#define SEP L'/'
29+
# define SEP L'/'
2430
#endif
2531

2632
/* Max pathname length */
2733
#ifdef __hpux
28-
#include <sys/param.h>
29-
#include <limits.h>
30-
#ifndef PATH_MAX
31-
#define PATH_MAX MAXPATHLEN
32-
#endif
34+
# include <sys/param.h>
35+
# include <limits.h>
36+
# ifndef PATH_MAX
37+
# define PATH_MAX MAXPATHLEN
38+
# endif
3339
#endif
3440

3541
#ifndef MAXPATHLEN
36-
#if defined(PATH_MAX) && PATH_MAX > 1024
37-
#define MAXPATHLEN PATH_MAX
38-
#else
39-
#define MAXPATHLEN 1024
40-
#endif
42+
# if defined(PATH_MAX) && PATH_MAX > 1024
43+
# define MAXPATHLEN PATH_MAX
44+
# else
45+
# define MAXPATHLEN 1024
46+
# endif
4147
#endif
4248

4349
/* Search path entry delimiter */
4450
#ifndef DELIM
45-
#define DELIM L':'
51+
# define DELIM L':'
4652
#endif
4753

4854
#ifdef __cplusplus
4955
}
5056
#endif
51-
#endif /* !Py_OSDEFS_H */
57+
#endif // !Py_OSDEFS_H

0 commit comments

Comments
 (0)