Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e425bd75
Commit
e425bd75
authored
Dec 14, 2017
by
Benjamin Peterson
Committed by
GitHub
Dec 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move pygetopt.h to internal (closes bpo-32264) (#4830)
parent
f74ef458
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
34 deletions
+25
-34
Include/internal/pygetopt.h
Include/internal/pygetopt.h
+19
-0
Include/pygetopt.h
Include/pygetopt.h
+0
-28
Makefile.pre.in
Makefile.pre.in
+1
-1
Misc/NEWS.d/next/C API/2017-12-12-23-09-46.bpo-32264.ahRlOI.rst
...EWS.d/next/C API/2017-12-12-23-09-46.bpo-32264.ahRlOI.rst
+1
-0
Modules/main.c
Modules/main.c
+1
-2
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj
+1
-1
PCbuild/pythoncore.vcxproj.filters
PCbuild/pythoncore.vcxproj.filters
+1
-1
Python/getopt.c
Python/getopt.c
+1
-1
No files found.
Include/internal/pygetopt.h
0 → 100644
View file @
e425bd75
#ifndef Py_INTERNAL_PYGETOPT_H
#define Py_INTERNAL_PYGETOPT_H
int
_PyOS_opterr
;
int
_PyOS_optind
;
wchar_t
*
_PyOS_optarg
;
void
_PyOS_ResetGetOpt
(
void
);
typedef
struct
{
const
wchar_t
*
name
;
int
has_arg
;
int
val
;
}
_PyOS_LongOption
;
int
_PyOS_GetOpt
(
int
argc
,
wchar_t
**
argv
,
wchar_t
*
optstring
,
const
_PyOS_LongOption
*
longopts
,
int
*
longindex
);
#endif
/* !Py_INTERNAL_PYGETOPT_H */
Include/pygetopt.h
deleted
100644 → 0
View file @
f74ef458
#ifndef Py_PYGETOPT_H
#define Py_PYGETOPT_H
#ifdef __cplusplus
extern
"C"
{
#endif
#ifndef Py_LIMITED_API
PyAPI_DATA
(
int
)
_PyOS_opterr
;
PyAPI_DATA
(
int
)
_PyOS_optind
;
PyAPI_DATA
(
wchar_t
*
)
_PyOS_optarg
;
PyAPI_FUNC
(
void
)
_PyOS_ResetGetOpt
(
void
);
typedef
struct
{
const
wchar_t
*
name
;
int
has_arg
;
int
val
;
}
_PyOS_LongOption
;
PyAPI_FUNC
(
int
)
_PyOS_GetOpt
(
int
argc
,
wchar_t
**
argv
,
wchar_t
*
optstring
,
const
_PyOS_LongOption
*
longopts
,
int
*
longindex
);
#endif
/* !Py_LIMITED_API */
#ifdef __cplusplus
}
#endif
#endif
/* !Py_PYGETOPT_H */
Makefile.pre.in
View file @
e425bd75
...
...
@@ -987,7 +987,6 @@ PYTHON_HEADERS= \
$(srcdir)
/Include/pyhash.h
\
$(srcdir)
/Include/pylifecycle.h
\
$(srcdir)
/Include/pymath.h
\
$(srcdir)
/Include/pygetopt.h
\
$(srcdir)
/Include/pymacro.h
\
$(srcdir)
/Include/pymem.h
\
$(srcdir)
/Include/pyport.h
\
...
...
@@ -1017,6 +1016,7 @@ PYTHON_HEADERS= \
$(srcdir)
/Include/internal/ceval.h
\
$(srcdir)
/Include/internal/gil.h
\
$(srcdir)
/Include/internal/mem.h
\
$(srcdir)
/Include/internal/pygetopt.h
\
$(srcdir)
/Include/internal/pystate.h
\
$(srcdir)
/Include/internal/warnings.h
\
$(DTRACE_HEADERS)
...
...
Misc/NEWS.d/next/C API/2017-12-12-23-09-46.bpo-32264.ahRlOI.rst
0 → 100644
View file @
e425bd75
Moved the pygetopt.h header into internal/, since it has no public APIs.
Modules/main.c
View file @
e425bd75
...
...
@@ -3,6 +3,7 @@
#include "Python.h"
#include "osdefs.h"
#include "internal/import.h"
#include "internal/pygetopt.h"
#include "internal/pystate.h"
#include <locale.h>
...
...
@@ -27,8 +28,6 @@
#define PYTHONHOMEHELP "<prefix>/lib/pythonX.X"
#endif
#include "pygetopt.h"
#define COPYRIGHT \
"Type \"help\", \"copyright\", \"credits\" or \"license\" " \
"for more information."
...
...
PCbuild/pythoncore.vcxproj
View file @
e425bd75
...
...
@@ -150,7 +150,7 @@
<ClInclude
Include=
"..\Include\pyerrors.h"
/>
<ClInclude
Include=
"..\Include\pyexpat.h"
/>
<ClInclude
Include=
"..\Include\pyfpe.h"
/>
<ClInclude
Include=
"..\Include\pygetopt.h"
/>
<ClInclude
Include=
"..\Include\
internal\
pygetopt.h"
/>
<ClInclude
Include=
"..\Include\pylifecycle.h"
/>
<ClInclude
Include=
"..\Include\pymath.h"
/>
<ClInclude
Include=
"..\Include\pytime.h"
/>
...
...
PCbuild/pythoncore.vcxproj.filters
View file @
e425bd75
...
...
@@ -234,7 +234,7 @@
<ClInclude
Include=
"..\Include\pyfpe.h"
>
<Filter>
Include
</Filter>
</ClInclude>
<ClInclude
Include=
"..\Include\pygetopt.h"
>
<ClInclude
Include=
"..\Include\
internal\
pygetopt.h"
>
<Filter>
Include
</Filter>
</ClInclude>
<ClInclude
Include=
"..\Include\pylifecycle.h"
>
...
...
Python/getopt.c
View file @
e425bd75
...
...
@@ -31,7 +31,7 @@
#include <stdio.h>
#include <string.h>
#include <wchar.h>
#include
<pygetopt.h>
#include
"internal/pygetopt.h"
#ifdef __cplusplus
extern
"C"
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment