Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
0a37a300
Unverified
Kaydet (Commit)
0a37a300
authored
Ara 31, 2017
tarafından
Benjamin Peterson
Kaydeden (comit)
GitHub
Ara 31, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
closes bpo-32460: ensure all non-static globals have initializers (#5061)
üst
6c6d3a46
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
60 additions
and
61 deletions
+60
-61
_ctypes.c
Modules/_ctypes/_ctypes.c
+2
-2
_ctypes_test.c
Modules/_ctypes/_ctypes_test.c
+3
-3
_iomodule.c
Modules/_io/_iomodule.c
+27
-27
microprotocols.c
Modules/_sqlite/microprotocols.c
+1
-1
microprotocols.h
Modules/_sqlite/microprotocols.h
+0
-4
module.c
Modules/_sqlite/module.c
+14
-11
myreadline.c
Parser/myreadline.c
+2
-2
pyhash.c
Python/pyhash.c
+1
-1
pylifecycle.c
Python/pylifecycle.c
+10
-10
No files found.
Modules/_ctypes/_ctypes.c
Dosyayı görüntüle @
0a37a300
...
...
@@ -116,10 +116,10 @@ bytes(cdata)
#endif
#include "ctypes.h"
PyObject
*
PyExc_ArgError
;
PyObject
*
PyExc_ArgError
=
NULL
;
/* This dict maps ctypes types to POINTER types */
PyObject
*
_ctypes_ptrtype_cache
;
PyObject
*
_ctypes_ptrtype_cache
=
NULL
;
static
PyTypeObject
Simple_Type
;
...
...
Modules/_ctypes/_ctypes_test.c
Dosyayı görüntüle @
0a37a300
...
...
@@ -63,7 +63,7 @@ typedef struct {
}
TestReg
;
EXPORT
(
TestReg
)
last_tfrsuv_arg
;
EXPORT
(
TestReg
)
last_tfrsuv_arg
=
{
0
}
;
EXPORT
(
void
)
...
...
@@ -410,8 +410,8 @@ EXPORT(void) _py_func(void)
{
}
EXPORT
(
long
long
)
last_tf_arg_s
;
EXPORT
(
unsigned
long
long
)
last_tf_arg_u
;
EXPORT
(
long
long
)
last_tf_arg_s
=
0
;
EXPORT
(
unsigned
long
long
)
last_tf_arg_u
=
0
;
struct
BITS
{
int
A
:
1
,
B
:
2
,
C
:
3
,
D
:
4
,
E
:
5
,
F
:
6
,
G
:
7
,
H
:
8
,
I
:
9
;
...
...
Modules/_io/_iomodule.c
Dosyayı görüntüle @
0a37a300
...
...
@@ -26,33 +26,33 @@
/* Various interned strings */
PyObject
*
_PyIO_str_close
;
PyObject
*
_PyIO_str_closed
;
PyObject
*
_PyIO_str_decode
;
PyObject
*
_PyIO_str_encode
;
PyObject
*
_PyIO_str_fileno
;
PyObject
*
_PyIO_str_flush
;
PyObject
*
_PyIO_str_getstate
;
PyObject
*
_PyIO_str_isatty
;
PyObject
*
_PyIO_str_newlines
;
PyObject
*
_PyIO_str_nl
;
PyObject
*
_PyIO_str_read
;
PyObject
*
_PyIO_str_read1
;
PyObject
*
_PyIO_str_readable
;
PyObject
*
_PyIO_str_readall
;
PyObject
*
_PyIO_str_readinto
;
PyObject
*
_PyIO_str_readline
;
PyObject
*
_PyIO_str_reset
;
PyObject
*
_PyIO_str_seek
;
PyObject
*
_PyIO_str_seekable
;
PyObject
*
_PyIO_str_setstate
;
PyObject
*
_PyIO_str_tell
;
PyObject
*
_PyIO_str_truncate
;
PyObject
*
_PyIO_str_writable
;
PyObject
*
_PyIO_str_write
;
PyObject
*
_PyIO_empty_str
;
PyObject
*
_PyIO_empty_bytes
;
PyObject
*
_PyIO_str_close
=
NULL
;
PyObject
*
_PyIO_str_closed
=
NULL
;
PyObject
*
_PyIO_str_decode
=
NULL
;
PyObject
*
_PyIO_str_encode
=
NULL
;
PyObject
*
_PyIO_str_fileno
=
NULL
;
PyObject
*
_PyIO_str_flush
=
NULL
;
PyObject
*
_PyIO_str_getstate
=
NULL
;
PyObject
*
_PyIO_str_isatty
=
NULL
;
PyObject
*
_PyIO_str_newlines
=
NULL
;
PyObject
*
_PyIO_str_nl
=
NULL
;
PyObject
*
_PyIO_str_read
=
NULL
;
PyObject
*
_PyIO_str_read1
=
NULL
;
PyObject
*
_PyIO_str_readable
=
NULL
;
PyObject
*
_PyIO_str_readall
=
NULL
;
PyObject
*
_PyIO_str_readinto
=
NULL
;
PyObject
*
_PyIO_str_readline
=
NULL
;
PyObject
*
_PyIO_str_reset
=
NULL
;
PyObject
*
_PyIO_str_seek
=
NULL
;
PyObject
*
_PyIO_str_seekable
=
NULL
;
PyObject
*
_PyIO_str_setstate
=
NULL
;
PyObject
*
_PyIO_str_tell
=
NULL
;
PyObject
*
_PyIO_str_truncate
=
NULL
;
PyObject
*
_PyIO_str_writable
=
NULL
;
PyObject
*
_PyIO_str_write
=
NULL
;
PyObject
*
_PyIO_empty_str
=
NULL
;
PyObject
*
_PyIO_empty_bytes
=
NULL
;
PyDoc_STRVAR
(
module_doc
,
"The io module provides the Python interfaces to stream handling. The
\n
"
...
...
Modules/_sqlite/microprotocols.c
Dosyayı görüntüle @
0a37a300
...
...
@@ -33,7 +33,7 @@
/** the adapters registry **/
PyObject
*
psyco_adapters
;
static
PyObject
*
psyco_adapters
=
NULL
;
/* pysqlite_microprotocols_init - initialize the adapters dictionary */
...
...
Modules/_sqlite/microprotocols.h
Dosyayı görüntüle @
0a37a300
...
...
@@ -28,10 +28,6 @@
#include <Python.h>
/** adapters registry **/
extern
PyObject
*
psyco_adapters
;
/** the names of the three mandatory methods **/
#define MICROPROTOCOLS_GETQUOTED_NAME "getquoted"
...
...
Modules/_sqlite/module.c
Dosyayı görüntüle @
0a37a300
...
...
@@ -35,13 +35,20 @@
/* static objects at module-level */
PyObject
*
pysqlite_Error
,
*
pysqlite_Warning
,
*
pysqlite_InterfaceError
,
*
pysqlite_DatabaseError
,
*
pysqlite_InternalError
,
*
pysqlite_OperationalError
,
*
pysqlite_ProgrammingError
,
*
pysqlite_IntegrityError
,
*
pysqlite_DataError
,
*
pysqlite_NotSupportedError
;
PyObject
*
converters
;
int
_enable_callback_tracebacks
;
int
pysqlite_BaseTypeAdapted
;
PyObject
*
pysqlite_Error
=
NULL
;
PyObject
*
pysqlite_Warning
=
NULL
;
PyObject
*
pysqlite_InterfaceError
=
NULL
;
PyObject
*
pysqlite_DatabaseError
=
NULL
;
PyObject
*
pysqlite_InternalError
=
NULL
;
PyObject
*
pysqlite_OperationalError
=
NULL
;
PyObject
*
pysqlite_ProgrammingError
=
NULL
;
PyObject
*
pysqlite_IntegrityError
=
NULL
;
PyObject
*
pysqlite_DataError
=
NULL
;
PyObject
*
pysqlite_NotSupportedError
=
NULL
;
PyObject
*
converters
=
NULL
;
int
_enable_callback_tracebacks
=
0
;
int
pysqlite_BaseTypeAdapted
=
0
;
static
PyObject
*
module_connect
(
PyObject
*
self
,
PyObject
*
args
,
PyObject
*
kwargs
)
...
...
@@ -461,10 +468,6 @@ PyMODINIT_FUNC PyInit__sqlite3(void)
/* initialize the default converters */
converters_init
(
dict
);
_enable_callback_tracebacks
=
0
;
pysqlite_BaseTypeAdapted
=
0
;
error:
if
(
PyErr_Occurred
())
{
...
...
Parser/myreadline.c
Dosyayı görüntüle @
0a37a300
...
...
@@ -17,7 +17,7 @@
#endif
/* MS_WINDOWS */
PyThreadState
*
_PyOS_ReadlineTState
;
PyThreadState
*
_PyOS_ReadlineTState
=
NULL
;
#include "pythread.h"
static
PyThread_type_lock
_PyOS_ReadlineLock
=
NULL
;
...
...
@@ -284,7 +284,7 @@ PyOS_StdioReadline(FILE *sys_stdin, FILE *sys_stdout, const char *prompt)
Note: Python expects in return a buffer allocated with PyMem_Malloc. */
char
*
(
*
PyOS_ReadlineFunctionPointer
)(
FILE
*
,
FILE
*
,
const
char
*
);
char
*
(
*
PyOS_ReadlineFunctionPointer
)(
FILE
*
,
FILE
*
,
const
char
*
)
=
NULL
;
/* Interface used by tokenizer.c and bltinmodule.c */
...
...
Python/pyhash.c
Dosyayı görüntüle @
0a37a300
...
...
@@ -17,7 +17,7 @@
extern
"C"
{
#endif
_Py_HashSecret_t
_Py_HashSecret
;
_Py_HashSecret_t
_Py_HashSecret
=
{
0
}
;
#if Py_HASH_ALGORITHM == Py_HASH_EXTERNAL
extern
PyHash_FuncDef
PyHash_Func
;
...
...
Python/pylifecycle.c
Dosyayı görüntüle @
0a37a300
...
...
@@ -108,17 +108,17 @@ _Py_IsFinalizing(void)
/* Global configuration variable declarations are in pydebug.h */
/* XXX (ncoghlan): move those declarations to pylifecycle.h? */
int
Py_DebugFlag
;
/* Needed by parser.c */
int
Py_VerboseFlag
;
/* Needed by import.c */
int
Py_QuietFlag
;
/* Needed by sysmodule.c */
int
Py_InteractiveFlag
;
/* Needed by Py_FdIsInteractive() below */
int
Py_InspectFlag
;
/* Needed to determine whether to exit at SystemExit */
int
Py_DebugFlag
=
0
;
/* Needed by parser.c */
int
Py_VerboseFlag
=
0
;
/* Needed by import.c */
int
Py_QuietFlag
=
0
;
/* Needed by sysmodule.c */
int
Py_InteractiveFlag
=
0
;
/* Needed by Py_FdIsInteractive() below */
int
Py_InspectFlag
=
0
;
/* Needed to determine whether to exit at SystemExit */
int
Py_OptimizeFlag
=
0
;
/* Needed by compile.c */
int
Py_NoSiteFlag
;
/* Suppress 'import site' */
int
Py_BytesWarningFlag
;
/* Warn on str(bytes) and str(buffer) */
int
Py_FrozenFlag
;
/* Needed by getpath.c */
int
Py_IgnoreEnvironmentFlag
;
/* e.g. PYTHONPATH, PYTHONHOME */
int
Py_DontWriteBytecodeFlag
;
/* Suppress writing bytecode files (*.pyc) */
int
Py_NoSiteFlag
=
0
;
/* Suppress 'import site' */
int
Py_BytesWarningFlag
=
0
;
/* Warn on str(bytes) and str(buffer) */
int
Py_FrozenFlag
=
0
;
/* Needed by getpath.c */
int
Py_IgnoreEnvironmentFlag
=
0
;
/* e.g. PYTHONPATH, PYTHONHOME */
int
Py_DontWriteBytecodeFlag
=
0
;
/* Suppress writing bytecode files (*.pyc) */
int
Py_NoUserSiteDirectory
=
0
;
/* for -s and site.py */
int
Py_UnbufferedStdioFlag
=
0
;
/* Unbuffered binary std{in,out,err} */
int
Py_HashRandomizationFlag
=
0
;
/* for -R and PYTHONHASHSEED */
...
...
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