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
d5c84ede
Kaydet (Commit)
d5c84ede
authored
Tem 08, 2000
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ANSI-fication of the sources -- remove Py_PROTO!
üst
146b2808
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
35 deletions
+39
-35
modsupport.h
Include/modsupport.h
+17
-15
pyerrors.h
Include/pyerrors.h
+22
-20
No files found.
Include/modsupport.h
Dosyayı görüntüle @
d5c84ede
#ifndef Py_MODSUPPORT_H
#define Py_MODSUPPORT_H
#ifdef __cplusplus
extern
"C"
{
#endif
/***********************************************************
/***********************************************************
Copyright (c) 2000, BeOpen.com.
Copyright (c) 2000, BeOpen.com.
Copyright (c) 1995-2000, Corporation for National Research Initiatives.
Copyright (c) 1995-2000, Corporation for National Research Initiatives.
...
@@ -14,17 +8,23 @@ See the file "Misc/COPYRIGHT" for information on usage and
...
@@ -14,17 +8,23 @@ See the file "Misc/COPYRIGHT" for information on usage and
redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
******************************************************************/
******************************************************************/
#ifndef Py_MODSUPPORT_H
#define Py_MODSUPPORT_H
#ifdef __cplusplus
extern
"C"
{
#endif
/* Module support interface */
/* Module support interface */
#ifdef HAVE_STDARG_PROTOTYPES
#ifdef HAVE_STDARG_PROTOTYPES
#include <stdarg.h>
#include <stdarg.h>
extern
DL_IMPORT
(
int
)
PyArg_Parse
Py_PROTO
((
PyObject
*
,
char
*
,
...)
);
extern
DL_IMPORT
(
int
)
PyArg_Parse
(
PyObject
*
,
char
*
,
...
);
extern
DL_IMPORT
(
int
)
PyArg_ParseTuple
Py_PROTO
((
PyObject
*
,
char
*
,
...)
);
extern
DL_IMPORT
(
int
)
PyArg_ParseTuple
(
PyObject
*
,
char
*
,
...
);
extern
DL_IMPORT
(
int
)
PyArg_ParseTupleAndKeywords
Py_PROTO
(
(
PyObject
*
,
PyObject
*
,
extern
DL_IMPORT
(
int
)
PyArg_ParseTupleAndKeywords
(
PyObject
*
,
PyObject
*
,
char
*
,
char
**
,
...)
);
char
*
,
char
**
,
...
);
extern
DL_IMPORT
(
PyObject
*
)
Py_BuildValue
Py_PROTO
((
char
*
,
...)
);
extern
DL_IMPORT
(
PyObject
*
)
Py_BuildValue
(
char
*
,
...
);
#else
#else
...
@@ -37,8 +37,8 @@ extern DL_IMPORT(PyObject *) Py_BuildValue();
...
@@ -37,8 +37,8 @@ extern DL_IMPORT(PyObject *) Py_BuildValue();
#endif
#endif
extern
DL_IMPORT
(
int
)
PyArg_VaParse
Py_PROTO
((
PyObject
*
,
char
*
,
va_list
)
);
extern
DL_IMPORT
(
int
)
PyArg_VaParse
(
PyObject
*
,
char
*
,
va_list
);
extern
DL_IMPORT
(
PyObject
*
)
Py_VaBuildValue
Py_PROTO
((
char
*
,
va_list
)
);
extern
DL_IMPORT
(
PyObject
*
)
Py_VaBuildValue
(
char
*
,
va_list
);
#define PYTHON_API_VERSION 1009
#define PYTHON_API_VERSION 1009
#define PYTHON_API_STRING "1009"
#define PYTHON_API_STRING "1009"
...
@@ -90,8 +90,10 @@ extern DL_IMPORT(PyObject *) Py_VaBuildValue Py_PROTO((char *, va_list));
...
@@ -90,8 +90,10 @@ extern DL_IMPORT(PyObject *) Py_VaBuildValue Py_PROTO((char *, va_list));
#define Py_InitModule4 Py_InitModule4TraceRefs
#define Py_InitModule4 Py_InitModule4TraceRefs
#endif
#endif
extern
DL_IMPORT
(
PyObject
*
)
Py_InitModule4
Py_PROTO
((
char
*
,
PyMethodDef
*
,
extern
DL_IMPORT
(
PyObject
*
)
Py_InitModule4
(
char
*
name
,
PyMethodDef
*
methods
,
char
*
,
PyObject
*
,
int
));
char
*
doc
,
PyObject
*
self
,
int
apiver
);
#define Py_InitModule(name, methods) \
#define Py_InitModule(name, methods) \
Py_InitModule4(name, methods, (char *)NULL, (PyObject *)NULL, \
Py_InitModule4(name, methods, (char *)NULL, (PyObject *)NULL, \
PYTHON_API_VERSION)
PYTHON_API_VERSION)
...
...
Include/pyerrors.h
Dosyayı görüntüle @
d5c84ede
...
@@ -16,18 +16,18 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
...
@@ -16,18 +16,18 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
/* Error handling definitions */
/* Error handling definitions */
DL_IMPORT
(
void
)
PyErr_SetNone
Py_PROTO
((
PyObject
*
)
);
DL_IMPORT
(
void
)
PyErr_SetNone
(
PyObject
*
);
DL_IMPORT
(
void
)
PyErr_SetObject
Py_PROTO
((
PyObject
*
,
PyObject
*
)
);
DL_IMPORT
(
void
)
PyErr_SetObject
(
PyObject
*
,
PyObject
*
);
DL_IMPORT
(
void
)
PyErr_SetString
Py_PROTO
((
PyObject
*
,
const
char
*
)
);
DL_IMPORT
(
void
)
PyErr_SetString
(
PyObject
*
,
const
char
*
);
DL_IMPORT
(
PyObject
*
)
PyErr_Occurred
Py_PROTO
((
void
)
);
DL_IMPORT
(
PyObject
*
)
PyErr_Occurred
(
void
);
DL_IMPORT
(
void
)
PyErr_Clear
Py_PROTO
((
void
)
);
DL_IMPORT
(
void
)
PyErr_Clear
(
void
);
DL_IMPORT
(
void
)
PyErr_Fetch
Py_PROTO
((
PyObject
**
,
PyObject
**
,
PyObject
**
)
);
DL_IMPORT
(
void
)
PyErr_Fetch
(
PyObject
**
,
PyObject
**
,
PyObject
**
);
DL_IMPORT
(
void
)
PyErr_Restore
Py_PROTO
((
PyObject
*
,
PyObject
*
,
PyObject
*
)
);
DL_IMPORT
(
void
)
PyErr_Restore
(
PyObject
*
,
PyObject
*
,
PyObject
*
);
/* Error testing and normalization */
/* Error testing and normalization */
DL_IMPORT
(
int
)
PyErr_GivenExceptionMatches
Py_PROTO
((
PyObject
*
,
PyObject
*
)
);
DL_IMPORT
(
int
)
PyErr_GivenExceptionMatches
(
PyObject
*
,
PyObject
*
);
DL_IMPORT
(
int
)
PyErr_ExceptionMatches
Py_PROTO
((
PyObject
*
)
);
DL_IMPORT
(
int
)
PyErr_ExceptionMatches
(
PyObject
*
);
DL_IMPORT
(
void
)
PyErr_NormalizeException
Py_PROTO
((
PyObject
**
,
PyObject
**
,
PyObject
**
)
);
DL_IMPORT
(
void
)
PyErr_NormalizeException
(
PyObject
**
,
PyObject
**
,
PyObject
**
);
/* Predefined exceptions */
/* Predefined exceptions */
...
@@ -54,6 +54,8 @@ extern DL_IMPORT(PyObject *) PyExc_OverflowError;
...
@@ -54,6 +54,8 @@ extern DL_IMPORT(PyObject *) PyExc_OverflowError;
extern
DL_IMPORT
(
PyObject
*
)
PyExc_RuntimeError
;
extern
DL_IMPORT
(
PyObject
*
)
PyExc_RuntimeError
;
extern
DL_IMPORT
(
PyObject
*
)
PyExc_NotImplementedError
;
extern
DL_IMPORT
(
PyObject
*
)
PyExc_NotImplementedError
;
extern
DL_IMPORT
(
PyObject
*
)
PyExc_SyntaxError
;
extern
DL_IMPORT
(
PyObject
*
)
PyExc_SyntaxError
;
extern
DL_IMPORT
(
PyObject
*
)
PyExc_IndentationError
;
extern
DL_IMPORT
(
PyObject
*
)
PyExc_TabError
;
extern
DL_IMPORT
(
PyObject
*
)
PyExc_SystemError
;
extern
DL_IMPORT
(
PyObject
*
)
PyExc_SystemError
;
extern
DL_IMPORT
(
PyObject
*
)
PyExc_SystemExit
;
extern
DL_IMPORT
(
PyObject
*
)
PyExc_SystemExit
;
extern
DL_IMPORT
(
PyObject
*
)
PyExc_TypeError
;
extern
DL_IMPORT
(
PyObject
*
)
PyExc_TypeError
;
...
@@ -70,25 +72,25 @@ extern DL_IMPORT(PyObject *) PyExc_MemoryErrorInst;
...
@@ -70,25 +72,25 @@ extern DL_IMPORT(PyObject *) PyExc_MemoryErrorInst;
/* Convenience functions */
/* Convenience functions */
extern
DL_IMPORT
(
int
)
PyErr_BadArgument
Py_PROTO
((
void
)
);
extern
DL_IMPORT
(
int
)
PyErr_BadArgument
(
void
);
extern
DL_IMPORT
(
PyObject
*
)
PyErr_NoMemory
Py_PROTO
((
void
)
);
extern
DL_IMPORT
(
PyObject
*
)
PyErr_NoMemory
(
void
);
extern
DL_IMPORT
(
PyObject
*
)
PyErr_SetFromErrno
Py_PROTO
((
PyObject
*
)
);
extern
DL_IMPORT
(
PyObject
*
)
PyErr_SetFromErrno
(
PyObject
*
);
extern
DL_IMPORT
(
PyObject
*
)
PyErr_SetFromErrnoWithFilename
Py_PROTO
((
PyObject
*
,
char
*
)
);
extern
DL_IMPORT
(
PyObject
*
)
PyErr_SetFromErrnoWithFilename
(
PyObject
*
,
char
*
);
extern
DL_IMPORT
(
PyObject
*
)
PyErr_Format
Py_PROTO
((
PyObject
*
,
const
char
*
,
...)
);
extern
DL_IMPORT
(
PyObject
*
)
PyErr_Format
(
PyObject
*
,
const
char
*
,
...
);
#ifdef MS_WINDOWS
#ifdef MS_WINDOWS
extern
DL_IMPORT
(
PyObject
*
)
PyErr_SetFromWindowsErrWithFilename
(
int
,
const
char
*
);
extern
DL_IMPORT
(
PyObject
*
)
PyErr_SetFromWindowsErrWithFilename
(
int
,
const
char
*
);
extern
DL_IMPORT
(
PyObject
*
)
PyErr_SetFromWindowsErr
(
int
);
extern
DL_IMPORT
(
PyObject
*
)
PyErr_SetFromWindowsErr
(
int
);
#endif
#endif
extern
DL_IMPORT
(
void
)
PyErr_BadInternalCall
Py_PROTO
((
void
)
);
extern
DL_IMPORT
(
void
)
PyErr_BadInternalCall
(
void
);
/* Function to create a new exception */
/* Function to create a new exception */
DL_IMPORT
(
PyObject
*
)
PyErr_NewException
Py_PROTO
(
(
char
*
name
,
PyObject
*
base
,
DL_IMPORT
(
PyObject
*
)
PyErr_NewException
(
char
*
name
,
PyObject
*
base
,
PyObject
*
dict
)
);
PyObject
*
dict
);
/* In sigcheck.c or signalmodule.c */
/* In sigcheck.c or signalmodule.c */
extern
DL_IMPORT
(
int
)
PyErr_CheckSignals
Py_PROTO
((
void
)
);
extern
DL_IMPORT
(
int
)
PyErr_CheckSignals
(
void
);
extern
DL_IMPORT
(
void
)
PyErr_SetInterrupt
Py_PROTO
((
void
)
);
extern
DL_IMPORT
(
void
)
PyErr_SetInterrupt
(
void
);
#ifdef __cplusplus
#ifdef __cplusplus
...
...
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