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

Skip to content

Commit 534ac09

Browse files
committed
Removed a bunch of extern declarations of functions that are now
properly declared in Python.h.
1 parent 57d8e3f commit 534ac09

2 files changed

Lines changed: 0 additions & 13 deletions

File tree

Modules/main.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@ extern char *optarg;
4747
extern int getopt(); /* PROTO((int, char **, char *)); -- not standardized */
4848

4949

50-
/* Subroutines that live in their own file */
51-
extern char *Py_GetVersion();
52-
extern char *Py_GetPlatform();
53-
extern char *Py_GetCopyright();
54-
55-
5650
/* For Py_GetArgcArgv(); set by main() */
5751
static char **orig_argv;
5852
static int orig_argc;

Python/sysmodule.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -274,13 +274,6 @@ list_builtin_module_names()
274274
void
275275
PySys_Init()
276276
{
277-
extern long PyInt_GetMax Py_PROTO((void));
278-
extern char *Py_GetVersion Py_PROTO((void));
279-
extern char *Py_GetCopyright Py_PROTO((void));
280-
extern char *Py_GetPlatform Py_PROTO((void));
281-
extern char *Py_GetProgramFullPath Py_PROTO((void));
282-
extern char *Py_GetPrefix Py_PROTO((void));
283-
extern char *Py_GetExecPrefix Py_PROTO((void));
284277
extern int fclose Py_PROTO((FILE *));
285278
PyObject *m = Py_InitModule("sys", sys_methods);
286279
PyObject *v;

0 commit comments

Comments
 (0)