Staging
v0.8.1
https://github.com/python/cpython
Revision 25ce77dd2455abbb6e2c9e055bbc98954642fa7c authored by Miss Islington (bot) on 15 November 2019, 09:37:26 UTC, committed by GitHub on 15 November 2019, 09:37:26 UTC
(cherry picked from commit b44ffc8b409fd539c5fb2b79385498e9fe168880)

Co-authored-by: Marco Paolini <mpaolini@users.noreply.github.com>
1 parent dae27cc
Raw File
Tip revision: 25ce77dd2455abbb6e2c9e055bbc98954642fa7c authored by Miss Islington (bot) on 15 November 2019, 09:37:26 UTC
bpo-38677: Fix arraymodule error handling in module initialization. (GH-17039)
Tip revision: 25ce77d
osdefs.h
#ifndef Py_OSDEFS_H
#define Py_OSDEFS_H
#ifdef __cplusplus
extern "C" {
#endif


/* Operating system dependencies */

#ifdef MS_WINDOWS
#define SEP L'\\'
#define ALTSEP L'/'
#define MAXPATHLEN 256
#define DELIM L';'
#endif

#ifdef __VXWORKS__
#define DELIM L';'
#endif

/* Filename separator */
#ifndef SEP
#define SEP L'/'
#endif

/* Max pathname length */
#ifdef __hpux
#include <sys/param.h>
#include <limits.h>
#ifndef PATH_MAX
#define PATH_MAX MAXPATHLEN
#endif
#endif

#ifndef MAXPATHLEN
#if defined(PATH_MAX) && PATH_MAX > 1024
#define MAXPATHLEN PATH_MAX
#else
#define MAXPATHLEN 1024
#endif
#endif

/* Search path entry delimiter */
#ifndef DELIM
#define DELIM L':'
#endif

#ifdef __cplusplus
}
#endif
#endif /* !Py_OSDEFS_H */
back to top