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
6c1874fc
Kaydet (Commit)
6c1874fc
authored
Ock 10, 1995
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
changes for C++ (Tim MacKenzie)
üst
062cfb0c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
7 deletions
+33
-7
mymalloc.h
Include/mymalloc.h
+9
-5
Makefile.pre.in
Modules/Makefile.pre.in
+3
-2
config.c.in
Modules/config.c.in
+21
-0
No files found.
Include/mymalloc.h
Dosyayı görüntüle @
6c1874fc
#ifndef Py_MYMALLOC_H
#define Py_MYMALLOC_H
#ifdef __cplusplus
extern
"C"
{
#endif
/***********************************************************
Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
The Netherlands.
...
...
@@ -52,7 +48,15 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#else
/* !HAVE_STDLIB */
#endif
#ifdef __cplusplus
// Move this down here since some C++ #include's don't like to be included
// inside an extern "C"
extern
"C"
{
#endif
#ifndef HAVE_STDLIB_H
extern
ANY
*
malloc
PROTO
((
size_t
));
extern
ANY
*
calloc
PROTO
((
size_t
,
size_t
));
extern
ANY
*
realloc
PROTO
((
ANY
*
,
size_t
));
...
...
Modules/Makefile.pre.in
Dosyayı görüntüle @
6c1874fc
...
...
@@ -6,6 +6,7 @@
# brought up to date by running "make Makefile". (The makesetup also
# creates config.c from config.c.in in the source directory.)
LINKCC
=
$(CC)
# === Variables set by makesetup ===
MODOBJS
=
_MODOBJS_
...
...
@@ -79,12 +80,12 @@ $(LIB): $(OBJS) Makefile
$(RANLIB)
$(LIB)
../python
:
config.o $(MYLIBS) Makefile
$(CC)
$(OPT)
config.o
$(LINKFORSHARED)
\
$(
LINK
CC)
$(OPT)
config.o
$(LINKFORSHARED)
\
$(MYLIBS)
$(MODLIBS)
$(LIBS)
$(SYSLIBS)
-o
python
mv
python ../python
config.o
:
config.c Makefile $(MYLIBS)
$(CC)
$(CFLAGS)
-DPYTHONPATH
=
\"
$(PYTHONPATH)
\"
-c
config.c
$(
LINK
CC)
$(CFLAGS)
-DPYTHONPATH
=
\"
$(PYTHONPATH)
\"
-c
config.c
clean
:
-
rm
-f
*
.o python core
*
~
[
@,#]
*
*
.old
*
.orig
*
.rej
...
...
Modules/config.c.in
Dosyayı görüntüle @
6c1874fc
...
...
@@ -41,6 +41,9 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "osdefs.h"
#include "intrcheck.h"
#if defined(__cplusplus)
extern "C" {
#endif
#ifndef NO_MAIN
...
...
@@ -59,9 +62,14 @@ static char *argv0;
static char **orig_argv;
static int orig_argc;
#if defined(__cplusplus)
int realmain(int, char**);
main(int argc, char **argv)
#else
main(argc, argv)
int argc;
char **argv;
#endif
{
orig_argc = argc;
orig_argv = argv;
...
...
@@ -76,9 +84,13 @@ getprogramname()
}
void
#if defined(__cplusplus)
getargcargv(int *argc, char ***argv)
#else
getargcargv(argc,argv)
int *argc;
char ***argv;
#endif
{
*argc = orig_argc;
*argv = orig_argv;
...
...
@@ -144,11 +156,16 @@ getcopyright()
#define PYTHONPATH ".:/usr/local/lib/python"
#endif /* !PYTHONPATH */
#ifndef __cplusplus
extern char *getenv();
#endif
char *
getpythonpath()
{
#ifdef __cplusplus
void fatal(char *);
#endif
char *path = getenv("PYTHONPATH");
char *defpath = PYTHONPATH;
static char *buf = NULL;
...
...
@@ -215,3 +232,7 @@ struct frozen {
{0, 0, 0}
};
#endif
#if defined(__cplusplus)
}
#endif
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