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
3db4103e
Kaydet (Commit)
3db4103e
authored
Agu 23, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use MS_DLL_ID and similar changes
üst
8b9ea873
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
10 deletions
+7
-10
config.h
PC/config.h
+0
-4
getpath_nt.c
PC/getpath_nt.c
+1
-1
import_nt.c
PC/import_nt.c
+1
-2
python_nt.rc
PC/python_nt.rc
+5
-3
No files found.
PC/config.h
Dosyayı görüntüle @
3db4103e
...
@@ -44,10 +44,6 @@ compiler specific". Therefore, these should be very rare.
...
@@ -44,10 +44,6 @@ compiler specific". Therefore, these should be very rare.
#define PREFIX ""
#define PREFIX ""
#define EXEC_PREFIX ""
#define EXEC_PREFIX ""
#ifndef WIN32_PATCH_LEVEL
#define WIN32_PATCH_LEVEL "14"
#endif
/* Microsoft C defines _MSC_VER */
/* Microsoft C defines _MSC_VER */
#if defined(_MSC_VER) && _MSC_VER > 850
#if defined(_MSC_VER) && _MSC_VER > 850
...
...
PC/getpath_nt.c
Dosyayı görüntüle @
3db4103e
...
@@ -54,7 +54,7 @@ getpythonregpath(HKEY keyBase, BOOL bWin32s)
...
@@ -54,7 +54,7 @@ getpythonregpath(HKEY keyBase, BOOL bWin32s)
LONG
rc
;
LONG
rc
;
char
*
retval
=
NULL
;
char
*
retval
=
NULL
;
char
*
dataBuf
;
char
*
dataBuf
;
if
((
rc
=
RegOpenKey
(
keyBase
,
"Software
\\
Python
\\
PythonCore
\\
"
WIN32_PATCH_LEVEL
"
\\
PythonPath"
,
if
((
rc
=
RegOpenKey
(
keyBase
,
"Software
\\
Python
\\
PythonCore
\\
"
MS_DLL_ID
"
\\
PythonPath"
,
&
newKey
))
==
ERROR_SUCCESS
)
{
&
newKey
))
==
ERROR_SUCCESS
)
{
RegQueryInfoKey
(
newKey
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
RegQueryInfoKey
(
newKey
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
&
numEntries
,
&
nameSize
,
&
dataSize
,
NULL
,
NULL
);
&
numEntries
,
&
nameSize
,
&
dataSize
,
NULL
,
NULL
);
...
...
PC/import_nt.c
Dosyayı görüntüle @
3db4103e
...
@@ -9,7 +9,6 @@
...
@@ -9,7 +9,6 @@
#include "allobjects.h"
#include "allobjects.h"
#include "osdefs.h"
#include "osdefs.h"
#include <windows.h>
#include <windows.h>
#include "import.h"
#include "importdl.h"
#include "importdl.h"
extern
BOOL
PyWin_IsWin32s
();
extern
BOOL
PyWin_IsWin32s
();
...
@@ -21,7 +20,7 @@ FILE *PyWin_FindRegisteredModule( const char *moduleName, struct filedescr **ppF
...
@@ -21,7 +20,7 @@ FILE *PyWin_FindRegisteredModule( const char *moduleName, struct filedescr **ppF
FILE
*
fp
;
FILE
*
fp
;
int
modNameSize
=
pathLen
;
int
modNameSize
=
pathLen
;
HKEY
keyBase
=
PyWin_IsWin32s
()
?
HKEY_CLASSES_ROOT
:
HKEY_LOCAL_MACHINE
;
HKEY
keyBase
=
PyWin_IsWin32s
()
?
HKEY_CLASSES_ROOT
:
HKEY_LOCAL_MACHINE
;
strcpy
(
moduleKey
,
"Software
\\
Python
\\
PythonCore
\\
"
WIN32_PATCH_LEVEL
"
\\
Modules
\\
"
);
strcpy
(
moduleKey
,
"Software
\\
Python
\\
PythonCore
\\
"
MS_DLL_ID
"
\\
Modules
\\
"
);
strcat
(
moduleKey
,
moduleName
);
strcat
(
moduleKey
,
moduleName
);
if
(
RegQueryValue
(
keyBase
,
moduleKey
,
pathBuf
,
&
modNameSize
)
!=
ERROR_SUCCESS
)
if
(
RegQueryValue
(
keyBase
,
moduleKey
,
pathBuf
,
&
modNameSize
)
!=
ERROR_SUCCESS
)
return
NULL
;
return
NULL
;
...
...
PC/python_nt.rc
Dosyayı görüntüle @
3db4103e
...
@@ -10,6 +10,10 @@
...
@@ -10,6 +10,10 @@
#define PYTHON_VERSION MS_DLL_ID "." PYTHON_API_STRING "\0"
#define PYTHON_VERSION MS_DLL_ID "." PYTHON_API_STRING "\0"
#ifndef PYTHON_DLL_NAME
#define PYTHON_DLL_NAME "Python14.dll"
#endif
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
//
//
// Version
// Version
...
@@ -32,14 +36,12 @@ BEGIN
...
@@ -32,14 +36,12 @@ BEGIN
BEGIN
BEGIN
BLOCK "000004b0"
BLOCK "000004b0"
BEGIN
BEGIN
VALUE "CompanyName", "
PSA
\0"
VALUE "CompanyName", "
Corporation for National Research Initatives
\0"
VALUE "FileDescription", "Python Core\0"
VALUE "FileDescription", "Python Core\0"
VALUE "FileVersion", PYTHON_VERSION
VALUE "FileVersion", PYTHON_VERSION
VALUE "InternalName", "Python DLL\0"
VALUE "InternalName", "Python DLL\0"
VALUE "LegalCopyright", "Copyright 1991-1996 Stichting Mathematisch Centrum, Amsterdam\0"
VALUE "LegalCopyright", "Copyright 1991-1996 Stichting Mathematisch Centrum, Amsterdam\0"
#ifdef PYTHON_DLL_NAME
VALUE "OriginalFilename", PYTHON_DLL_NAME "\0"
VALUE "OriginalFilename", PYTHON_DLL_NAME "\0"
#endif
VALUE "ProductName", "Python\0"
VALUE "ProductName", "Python\0"
VALUE "ProductVersion", PYTHON_VERSION
VALUE "ProductVersion", PYTHON_VERSION
END
END
...
...
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