Antoine Pitrou
c83ea137d7
Untabify C files. Will watch buildbots.
2010-05-09 14:46:46 +00:00
Gregory P. Smith
b2b92ea7bc
Define TCSASOFT if the flag exists.
2009-10-31 21:23:39 +00:00
Gregory P. Smith
dd96db63f6
This reverts r63675 based on the discussion in this thread:
...
http://mail.python.org/pipermail/python-dev/2008-June/079988.html
Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names
in the spirit of 3.0 are available via a #define only. See the email thread.
2008-06-09 04:58:54 +00:00
Christian Heimes
593daf545b
Renamed PyString to PyBytes
2008-05-26 12:51:38 +00:00
Neal Norwitz
1ac754fa10
Check return result from Py_InitModule*(). This API can fail.
...
Probably should be backported.
2006-01-19 06:09:39 +00:00
Martin v. Löwis
be4fea6198
Patch #787189 : Explicitly define CTRL on SGI.
2003-10-31 13:01:24 +00:00
Neal Norwitz
8225103d2d
Get test_ioctl to pass on HPUX 11.
...
TIOCGPGRP and many other definitions come from bsdtty.h, so it needs
to be included at least on HPUX.
2003-05-23 14:35:24 +00:00
Mark Hammond
fe51c6d66e
Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype
...
for Py_Main().
Thanks to Kalle Svensson and Skip Montanaro for the patches.
2002-08-02 02:27:13 +00:00
Martin v. Löwis
14f8b4cfcb
Patch #568124 : Add doc string macros.
2002-06-13 20:33:02 +00:00
Andrew MacIntyre
7bf6833e17
OS/2 EMX port changes (Modules part of patch #450267 ):
...
Modules/
_hotshot.c
dbmmodule.c
fcntlmodule.c
main.c
pwdmodule.c
readline.c
selectmodule.c
signalmodule.c
termios.c
timemodule.c
unicodedata.c
2002-03-03 02:59:16 +00:00
Fred Drake
78f6c867ae
Use PyModule_AddObject() instead of accessing the module dict directly.
2002-02-14 07:11:23 +00:00
Martin v. Löwis
cdc4451222
Include <unistd.h> in Python.h. Fixes #500924 .
2002-01-12 11:05:12 +00:00
Thomas Wouters
2b30524ea9
Forward-port revision 2.24.2.4 from the release21-maint branch:
...
Protect several more uses of constants with #ifdefs; these are necessary on
(at least) SCO OpenServer 5. Fixes a non-SF-submitted bugreport by Michael
Kent.
2001-06-15 12:05:44 +00:00
Thomas Wouters
819bb2c502
Protect the use of the VWERASE symbol by an #ifdef, it's apparently missing
...
on (some versions of ?) AIX.
2001-06-11 15:25:16 +00:00
Fred Drake
d0b625d05a
Correct the sense of a couple of conditional compilations -- used #ifndef
...
when #ifdef was needed.
This closes (reallu!) SF bug #417418 .
2001-05-22 15:44:15 +00:00
Fred Drake
87068f1eaa
Include sys/modem.h if we have it; this is needed on HP-UX to provide
...
constants used by other macros from the headers.
Conditionalize VREPRINT and VDISCARD; these are not available on HP-UX.
This closes bug #417418 .
2001-05-11 16:14:17 +00:00
Fred Drake
c99ff60573
fdconv(): Do not second guess the error condition returned by
...
PyObject_AsFileDescriptor() -- it does the same thing everywhere, so
use it the same way everyone else does so that exceptions are
consistent. This means we have less code here, and we do not need to
resort to hackish ways of getting the Python-visible function name to
fdconv().
2001-05-09 20:14:09 +00:00
Fred Drake
b2877dd122
Only import termio.h on OSF, and add a comment about why it is needed there.
...
This header does not exist on all Unix flavors; FreeBSD in particular does
not include it.
This closes SF bug #422320 .
2001-05-09 17:53:06 +00:00
Fred Drake
b638aafef2
Michael Hudson <mwh21@cam.ac.uk>:
...
This patch does several things to termios:
(1) changes all functions to be METH_VARARGS
(2) changes all functions to be able to take a file object as the
first parameter, as per
http://mail.python.org/pipermail/python-dev/2001-February/012701.html
(3) give better error messages
(4) removes a bunch of comments that just repeat the docstrings
(5) #includes <termio.h> before #including <sys/ioctl.h> so more
#constants are actually #defined.
(6) a couple of docstring tweaks
I have tested this minimally (i.e. it builds, and
doesn't blow up too embarassingly) on OSF1/alpha and
on one of the sf compile farm's solaris boxes, and
rather more comprehansively on my linux/x86 box.
It still needs to be tested on all the other platforms
we build termios on.
This closes the code portion of SF patch #417081 .
2001-05-07 17:55:35 +00:00
Guido van Rossum
2242f2fbd0
Unixware 7 support by Billy G. Allie (SF patch 413011)
2001-04-11 20:58:20 +00:00
Fred Drake
29fd0317ba
Michael Hudson <mwh21@cam.ac.uk>:
...
Update the docstrings to no longer refer to the obsolete TERMIOS
module.
This is a partial acceptance of SF patch #413419 .
2001-04-09 19:32:52 +00:00
Fred Drake
d3908e2952
Effectively revert the previous change: leave the new #include in, but
...
comment it out with an explanation. This makes it easier for someone
who wants the additional symbols to try re-enabling it for their platform.
2001-04-05 18:26:31 +00:00
Fred Drake
9b3bc49575
Add an #include of sys/ioctl.h to pick up a lot of the constants supported
...
in the previous patch.
This closes (again!) SF patch #410267 .
2001-04-04 21:19:26 +00:00
Fred Drake
55a0034682
Michael Hudson <mwh21@cam.ac.uk>:
...
Add many more constants for some systems.
This closes SF patch #410267 .
2001-03-26 17:14:02 +00:00
Fred Drake
d85556c663
Wrap several more of the constants in #ifdef/#endif for FreeBSD; at least
...
some fairly recent versions have an anaemic selection of terminal-control
symbols.
This closes SF bug #405567 .
2001-03-03 18:08:52 +00:00