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
602099a7
Kaydet (Commit)
602099a7
authored
Eyl 14, 1994
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
* various modules: #include "Python.h" and remove most remporary
renaming hacks
üst
a9672090
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
67 deletions
+20
-67
_cursesmodule.c
Modules/_cursesmodule.c
+1
-5
_tkinter.c
Modules/_tkinter.c
+2
-28
rotormodule.c
Modules/rotormodule.c
+2
-5
signalmodule.c
Modules/signalmodule.c
+10
-5
stropmodule.c
Modules/stropmodule.c
+4
-8
termios.c
Modules/termios.c
+1
-16
No files found.
Modules/_cursesmodule.c
Dosyayı görüntüle @
602099a7
...
@@ -138,14 +138,10 @@ None notimeout(int) int=0 or int=1
...
@@ -138,14 +138,10 @@ None notimeout(int) int=0 or int=1
/* curses module */
/* curses module */
#include "allobjects.h"
#include "Python.h"
#include "fileobject.h"
#include "modsupport.h"
#include <curses.h>
#include <curses.h>
#include "rename1.h"
typedef
struct
{
typedef
struct
{
PyObject_HEAD
PyObject_HEAD
SCREEN
*
scr
;
SCREEN
*
scr
;
...
...
Modules/_tkinter.c
Dosyayı görüntüle @
602099a7
/* tkintermodule.c -- Interface to libtk.a and libtcl.a.
/* tkintermodule.c -- Interface to libtk.a and libtcl.a.
Copyright (C) 1994 Steen Lumholt */
Copyright (C) 1994 Steen Lumholt */
#if 0
#include <Python.h>
#include <Py/Python.h>
#else
#include "allobjects.h"
#include "pythonrun.h"
#include "intrcheck.h"
#include "modsupport.h"
#include "sysmodule.h"
#ifndef PyObject
#define PyObject object
typedef
struct
methodlist
PyMethodDef
;
#endif
#define PyInit_tkinter inittkinter
#undef Py_True
#define Py_True ((object *) &TrueObject)
#undef True
#undef Py_False
#define Py_False ((object *) &FalseObject)
#undef False
#undef Py_None
#define PyInit_tkinter inittkinter
#define Py_None (&NoObject)
#undef None
#endif
/* 0 */
#include <tcl.h>
#include <tcl.h>
#include <tk.h>
#include <tk.h>
...
...
Modules/rotormodule.c
Dosyayı görüntüle @
602099a7
...
@@ -55,16 +55,13 @@ NOTE: you MUST use the SAME key in rotor.newrotor()
...
@@ -55,16 +55,13 @@ NOTE: you MUST use the SAME key in rotor.newrotor()
/* Rotor objects */
/* Rotor objects */
#include "
allobjects
.h"
#include "
Python
.h"
#include "modsupport.h"
#include <stdio.h>
#include <stdio.h>
#include <math.h>
#include <math.h>
#define TRUE 1
#define TRUE 1
#define FALSE 0
#define FALSE 0
/* This is temp until the renaming effort is done with Python */
#include "rename1.h"
typedef
struct
{
typedef
struct
{
PyObject_HEAD
PyObject_HEAD
int
seed
[
3
];
int
seed
[
3
];
...
...
Modules/signalmodule.c
Dosyayı görüntüle @
602099a7
...
@@ -24,16 +24,12 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
...
@@ -24,16 +24,12 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/* Signal module -- many thanks to Lance Ellinghouse */
/* Signal module -- many thanks to Lance Ellinghouse */
#include "allobjects.h"
#include "Python.h"
#include "modsupport.h"
#include "ceval.h"
#include "intrcheck.h"
#include "intrcheck.h"
#include <signal.h>
#include <signal.h>
#include <errno.h>
#include <errno.h>
#include "rename1.h"
#ifndef SIG_ERR
#ifndef SIG_ERR
#define SIG_ERR ((RETSIGTYPE (*)())-1)
#define SIG_ERR ((RETSIGTYPE (*)())-1)
#endif
#endif
...
@@ -103,6 +99,15 @@ PySignal_Handler(sig_num)
...
@@ -103,6 +99,15 @@ PySignal_Handler(sig_num)
PySignal_SignalHandlerArray
[
sig_num
].
tripped
=
1
;
PySignal_SignalHandlerArray
[
sig_num
].
tripped
=
1
;
#ifdef WITH_THREAD
#ifdef WITH_THREAD
}
}
#endif
#ifdef SIGCHLD
if
(
sig_num
==
SIGCHLD
)
{
/* To avoid infinite recursion, this signal remains
reset until explicit re-instated.
Don't clear the 'func' field as it is our pointer
to the Python handler... */
return
;
}
#endif
#endif
(
void
*
)
signal
(
sig_num
,
&
PySignal_Handler
);
(
void
*
)
signal
(
sig_num
,
&
PySignal_Handler
);
}
}
...
...
Modules/stropmodule.c
Dosyayı görüntüle @
602099a7
...
@@ -206,10 +206,8 @@ strop_find(self, args)
...
@@ -206,10 +206,8 @@ strop_find(self, args)
if
(
getargs
(
args
,
"(s#s#i)"
,
&
s
,
&
len
,
&
sub
,
&
n
,
&
i
))
{
if
(
getargs
(
args
,
"(s#s#i)"
,
&
s
,
&
len
,
&
sub
,
&
n
,
&
i
))
{
if
(
i
<
0
)
if
(
i
<
0
)
i
+=
len
;
i
+=
len
;
if
(
i
<
0
||
i
+
n
>
len
)
{
if
(
i
<
0
)
err_setstr
(
ValueError
,
"start offset out of range"
);
i
=
0
;
return
NULL
;
}
}
}
else
{
else
{
err_clear
();
err_clear
();
...
@@ -242,10 +240,8 @@ strop_rfind(self, args)
...
@@ -242,10 +240,8 @@ strop_rfind(self, args)
if
(
getargs
(
args
,
"(s#s#i)"
,
&
s
,
&
len
,
&
sub
,
&
n
,
&
i
))
{
if
(
getargs
(
args
,
"(s#s#i)"
,
&
s
,
&
len
,
&
sub
,
&
n
,
&
i
))
{
if
(
i
<
0
)
if
(
i
<
0
)
i
+=
len
;
i
+=
len
;
if
(
i
<
0
||
i
+
n
>
len
)
{
if
(
i
<
0
)
err_setstr
(
ValueError
,
"start offset out of range"
);
i
=
0
;
return
NULL
;
}
}
}
else
{
else
{
err_clear
();
err_clear
();
...
...
Modules/termios.c
Dosyayı görüntüle @
602099a7
/* termiosmodule.c -- POSIX terminal I/O module implementation. */
/* termiosmodule.c -- POSIX terminal I/O module implementation. */
#if 0
#include <Python.h>
#include <Py/Python.h>
#else
#include "allobjects.h"
#include "pythonrun.h"
#include "intrcheck.h"
#include "modsupport.h"
#include "sysmodule.h"
#ifndef PyObject
#define PyObject object
typedef
struct
methodlist
PyMethodDef
;
#endif
#define PyInit_termios inittermios
#define PyInit_termios inittermios
#endif
/* 0 */
#include <termios.h>
#include <termios.h>
#define BAD "bad termios argument"
#define BAD "bad termios argument"
...
...
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