bpo-35081: Move accu.h to Include/internal/pycore_accu.h (GH-10271) · python/cpython@e281f7d

Original file line numberDiff line numberDiff line change

@@ -1,6 +1,9 @@

11

#ifndef Py_LIMITED_API

2-

#ifndef Py_ACCU_H

3-

#define Py_ACCU_H

2+

#ifndef Py_INTERNAL_ACCU_H

3+

#define Py_INTERNAL_ACCU_H

4+

#ifdef __cplusplus

5+

extern "C" {

6+

#endif

47
58

/*** This is a private API for use by the interpreter and the stdlib.

69

*** Its definition may be changed or removed at any moment.

@@ -12,10 +15,6 @@

1215

* behaviour of using a naive repeated concatenation scheme.

1316

*/

1417
15-

#ifdef __cplusplus

16-

extern "C" {

17-

#endif

18-
1918

#undef small /* defined by some Windows headers */

2019
2120

typedef struct {

@@ -32,6 +31,5 @@ PyAPI_FUNC(void) _PyAccu_Destroy(_PyAccu *acc);

3231

#ifdef __cplusplus

3332

}

3433

#endif

35-
36-

#endif /* Py_ACCU_H */

37-

#endif /* Py_LIMITED_API */

34+

#endif /* !Py_INTERNAL_ACCU_H */

35+

#endif /* !Py_LIMITED_API */