FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-135755: Use private names (_Py*) for header file guards new in 3.14 by encukou · Pull Request #135921 · python/cpython · GitHub

/ cpython Public
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .h  (3) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
10 changes: 5 additions & 5 deletions Include/audit.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef Py_AUDIT_H
#define Py_AUDIT_H
#ifndef _Py_AUDIT_H
#define _Py_AUDIT_H
#ifdef __cplusplus
extern "C" {
#endif
Expand All @@ -18,13 +18,13 @@ PyAPI_FUNC(int) PySys_AuditTuple(


#ifndef Py_LIMITED_API
# define Py_CPYTHON_AUDIT_H
# define _Py_CPYTHON_AUDIT_H
# include "cpython/audit.h"
# undef Py_CPYTHON_AUDIT_H
# undef _Py_CPYTHON_AUDIT_H
#endif


#ifdef __cplusplus
}
#endif
#endif /* !Py_AUDIT_H */
#endif /* !_Py_AUDIT_H */
2 changes: 1 addition & 1 deletion Include/cpython/audit.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef Py_CPYTHON_AUDIT_H
#ifndef _Py_CPYTHON_AUDIT_H
# error "this header file must not be included directly"
#endif

Expand Down
6 changes: 3 additions & 3 deletions Include/refcount.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef Py_REFCOUNT_H
#define Py_REFCOUNT_H
#ifndef _Py_REFCOUNT_H
#define _Py_REFCOUNT_H
#ifdef __cplusplus
extern "C" {
#endif
Expand Down Expand Up @@ -561,4 +561,4 @@ static inline PyObject* _Py_XNewRef(PyObject *obj)
#ifdef __cplusplus
}
#endif
#endif // !Py_REFCOUNT_H
#endif // !_Py_REFCOUNT_H

Back | FazBrowse Home | New Git URL