Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a7a84709
Commit
a7a84709
authored
Jan 10, 2001
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Part of SF patch #102409 by jlt63 to support building these modules
under CYGWIN as shared libraries (DLLs).
parent
cc843f4f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
11 deletions
+10
-11
Modules/mmapmodule.c
Modules/mmapmodule.c
+1
-7
Modules/readline.c
Modules/readline.c
+6
-2
Modules/rotormodule.c
Modules/rotormodule.c
+2
-1
Modules/shamodule.c
Modules/shamodule.c
+1
-1
No files found.
Modules/mmapmodule.c
View file @
a7a84709
...
@@ -952,13 +952,7 @@ static struct PyMethodDef mmap_functions[] = {
...
@@ -952,13 +952,7 @@ static struct PyMethodDef mmap_functions[] = {
{
NULL
,
NULL
}
/* Sentinel */
{
NULL
,
NULL
}
/* Sentinel */
};
};
#ifdef MS_WIN32
DL_EXPORT
(
void
)
__declspec
(
dllexport
)
void
#endif
/* MS_WIN32 */
#ifdef UNIX
extern
void
#endif
initmmap
(
void
)
initmmap
(
void
)
{
{
PyObject
*
dict
,
*
module
;
PyObject
*
dict
,
*
module
;
...
...
Modules/readline.c
View file @
a7a84709
...
@@ -27,6 +27,9 @@
...
@@ -27,6 +27,9 @@
#else
#else
#include <readline/readline.h>
/* You may need to add an -I option to Setup */
#include <readline/readline.h>
/* You may need to add an -I option to Setup */
#ifdef __CYGWIN__
#include <readline/history.h>
#else
/* !__CYGWIN__ */
extern
int
rl_parse_and_bind
(
char
*
);
extern
int
rl_parse_and_bind
(
char
*
);
extern
int
rl_read_init_file
(
char
*
);
extern
int
rl_read_init_file
(
char
*
);
extern
int
rl_insert_text
(
char
*
);
extern
int
rl_insert_text
(
char
*
);
...
@@ -38,11 +41,12 @@ extern int read_history(char *);
...
@@ -38,11 +41,12 @@ extern int read_history(char *);
extern
int
write_history
(
char
*
);
extern
int
write_history
(
char
*
);
extern
int
history_truncate_file
(
char
*
,
int
);
extern
int
history_truncate_file
(
char
*
,
int
);
extern
Function
*
rl_event_hook
;
extern
Function
*
rl_event_hook
;
#endif
/* !__CYGWIN__ */
#endif
#endif
/* Pointers needed from outside (but not declared in a header file). */
/* Pointers needed from outside (but not declared in a header file). */
extern
int
(
*
PyOS_InputHook
)(
void
);
extern
DL_IMPORT
(
int
)
(
*
PyOS_InputHook
)(
void
);
extern
char
*
(
*
PyOS_ReadlineFunctionPointer
)(
char
*
);
extern
DL_IMPORT
(
char
)
*
(
*
PyOS_ReadlineFunctionPointer
)(
char
*
);
/* Exported function to send one line to readline's init file parser */
/* Exported function to send one line to readline's init file parser */
...
...
Modules/rotormodule.c
View file @
a7a84709
...
@@ -576,7 +576,7 @@ rotorobj_getattr(Rotorobj *s, char *name)
...
@@ -576,7 +576,7 @@ rotorobj_getattr(Rotorobj *s, char *name)
statichere
PyTypeObject
Rotor_Type
=
{
statichere
PyTypeObject
Rotor_Type
=
{
PyObject_HEAD_INIT
(
&
PyType_Type
)
PyObject_HEAD_INIT
(
NULL
)
0
,
/*ob_size*/
0
,
/*ob_size*/
"rotor"
,
/*tp_name*/
"rotor"
,
/*tp_name*/
sizeof
(
Rotorobj
),
/*tp_size*/
sizeof
(
Rotorobj
),
/*tp_size*/
...
@@ -619,5 +619,6 @@ rotor_methods[] = {
...
@@ -619,5 +619,6 @@ rotor_methods[] = {
DL_EXPORT
(
void
)
DL_EXPORT
(
void
)
initrotor
(
void
)
initrotor
(
void
)
{
{
Rotor_Type
.
ob_type
=
&
PyType_Type
;
(
void
)
Py_InitModule
(
"rotor"
,
rotor_methods
);
(
void
)
Py_InitModule
(
"rotor"
,
rotor_methods
);
}
}
Modules/shamodule.c
View file @
a7a84709
...
@@ -529,7 +529,7 @@ static struct PyMethodDef SHA_functions[] = {
...
@@ -529,7 +529,7 @@ static struct PyMethodDef SHA_functions[] = {
if (o!=NULL) PyDict_SetItemString(d,n,o); \
if (o!=NULL) PyDict_SetItemString(d,n,o); \
Py_XDECREF(o); }
Py_XDECREF(o); }
void
DL_EXPORT
(
void
)
initsha
(
void
)
initsha
(
void
)
{
{
PyObject
*
d
,
*
m
;
PyObject
*
d
,
*
m
;
...
...
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