Peter Schneider-Kamp
cb27c35aa6
ANSI-fication, not really tested, but should (hopefully) compile
2000-07-10 17:06:38 +00:00
Peter Schneider-Kamp
6a85027a97
ANSI-fication of the SGI modules (note that svmodule.c and sgimodule.c
...
have already been checked in)
UNTESTED!
2000-07-10 17:04:33 +00:00
Fredrik Lundh
10723347c6
- stupid typo.
2000-07-10 16:38:09 +00:00
Fredrik Lundh
44328e60df
-- get rid of a compiler warning on unix. (as reported
...
for #100836 , but implemented in a different way)
2000-07-10 15:59:30 +00:00
Peter Schneider-Kamp
39e0e5a180
ANSI-fication
2000-07-10 13:12:27 +00:00
Peter Schneider-Kamp
7d0c71ac8c
ANSI-fication
2000-07-10 13:05:29 +00:00
Peter Schneider-Kamp
286da3b46a
ANSI-fying
...
added excplicit node * parameter to termvalid argument in
validate_two_chain_ops of parsermodule.c (as proposed by fred)
2000-07-10 12:43:58 +00:00
Peter Schneider-Kamp
41c36ffe83
ANSI-fication
2000-07-10 12:29:26 +00:00
Peter Schneider-Kamp
416d413527
ANSI-fication
2000-07-10 12:15:54 +00:00
Peter Schneider-Kamp
e89b15691e
ANSI-fication
2000-07-10 12:04:18 +00:00
Peter Schneider-Kamp
c4bc0e0895
ANSI-fication
2000-07-10 11:56:03 +00:00
Peter Schneider-Kamp
0659b4af46
ANSI-fication
2000-07-10 10:49:30 +00:00
Peter Schneider-Kamp
3707efef9b
ANSI-fication
2000-07-10 10:03:58 +00:00
Peter Schneider-Kamp
a788a7f0fb
ANSI-fication
2000-07-10 09:57:19 +00:00
Peter Schneider-Kamp
fe74263cec
ANSI-fication
2000-07-10 09:55:32 +00:00
Peter Schneider-Kamp
8235f1c834
ANSI-fication
2000-07-10 09:43:24 +00:00
Peter Schneider-Kamp
f1ca898d85
ANSI-fication
2000-07-10 09:31:34 +00:00
Peter Schneider-Kamp
faaad372ec
ANSI-fication (and test if committing files works now)
2000-07-10 09:26:41 +00:00
Vladimir Marangozov
b16714b4d0
Initialize the return value in collect_generations() since it is updated
...
conditionally in the code.
2000-07-10 05:37:39 +00:00
Fred Drake
859bad00cb
Guido said include these in the Great ANSI-fication, so here they are!
2000-07-10 04:20:57 +00:00
Fredrik Lundh
9ac81f69b2
- changed the nt.popen2 return values back to
...
(write, read, ...), based on feedback from GvR.
- added tuple-swapping code to popen2.py
- fixed some runaway indentation in posixmodule.c
2000-07-09 23:35:24 +00:00
Fredrik Lundh
620f37723f
- changed 1.5 to 2.0 in the help text
...
(the PYTHONHOMEHELP define)
- ANSI-fication
(patch #100794 by Peter Schneider-Kamp)
2000-07-09 20:42:34 +00:00
Fredrik Lundh
faa209d6bd
- ANSI-fication
...
(patch #100805 by Peter Schneider-Kamp)
2000-07-09 20:35:15 +00:00
Fredrik Lundh
bb7eeff44a
- added popen.popen2/popen3/popen4 support for
...
windows.
- added optional mode argument to popen2/popen3
for unix; if the second argument is an integer,
it's assumed to be the buffer size.
- changed nt.popen2/popen3/popen4 return values
to match the popen2 module (stdout first, not
stdin).
2000-07-09 17:59:32 +00:00
Fredrik Lundh
766ccdcf18
- added optional bufsize argument to new popen methods.
...
for the moment, this argument must be left out or set
to -1 (only the default bufsize is supported, that is)
2000-07-09 17:41:01 +00:00
Fredrik Lundh
f5accf38ea
- ANSI-fication
...
(patch #100784 by Peter Schneider-Kamp)
2000-07-09 15:14:52 +00:00
Fredrik Lundh
3c5d43d342
- ANSI-ification
...
(patch #100770 by Peter Schneider-Kamp)
2000-07-09 15:09:56 +00:00
Fredrik Lundh
ffb9c770f8
- improved os.popen support for windows, based on win32pipe
...
by Bill Tutt.
note: to run this on Windows 95/98, you need to have the
w9xpopen.exe helper in the same directory as the python DLL.
2000-07-09 14:49:51 +00:00
Fred Drake
3cd2ee4037
Remove use of HAVE_OLD_CPP to support non-ANSI preprocessors.
2000-07-09 14:36:13 +00:00
Andrew M. Kuchling
ad9b1f8533
Patch from Peter Schneider-Kamp: convert curses module to ANSI prototypes,
...
and substitute the conventional "args" instead of "arg".
2000-07-09 14:35:00 +00:00
Fredrik Lundh
5cccf50931
- added (long) casts to a couple of Py_BuildValue calls,
...
just for the sake of it.
note that this only covers the unlikely case that size_t
is smaller than a long; it's probably more likely that
there are platforms out there where size_t is *larger*
than a long, and mmapmodule cannot really deal with that
today.
2000-07-09 13:16:13 +00:00
Fredrik Lundh
e25cfd8662
- fixed pointer size test in spawn functions. also added
...
cast to make sure Py_BuildValue gets the right thing.
this change eliminates bogus return codes from successful
spawn calls (e.g. 2167387144924954624 instead of 0).
2000-07-09 13:10:40 +00:00
Tim Peters
dbd9ba6a6c
Nuke all remaining occurrences of Py_PROTO and Py_FPROTO.
2000-07-09 03:09:57 +00:00
Fredrik Lundh
ff7df9d7b8
this one's a bit risky, but I've spent some considerable time
...
staring at the diffs before checking this one in. let me know
asap if it breaks things on your platform.
-- ANSI-fying
(patch #100763 by Peter Schneider-Kamp, minus the
indentation changes and minus the changes the broke
the windows build)
2000-07-08 22:48:53 +00:00
Fredrik Lundh
54cf3dc88c
-- ANSI-fying, names
...
(patch #100762 by Peter Schneider-Kamp, minus the
indentation changes)
-- added INT_PTR workaround to make it build under VC 5.0
2000-07-08 22:05:01 +00:00
Fredrik Lundh
89610a4d50
- _getdefaultlocale shouldn't accept arguments
...
- some more spacification...
2000-07-08 20:07:24 +00:00
Fredrik Lundh
8f017a01f8
- added _getdefaultlocale implementation for WIN32
...
- ansified, reindentified, spacified, nullified
2000-07-08 19:57:37 +00:00
Fred Drake
51b6bc55e3
ANSI-fication of the sources, convert to 4-space indents.
...
Use PyArg_ParseTuple() to get better error messages.
Add docstrings all around.
2000-07-08 16:56:26 +00:00
Fred Drake
2c4a3dceaf
ANSI-fied sources, converted to four-space indentation.
...
Converted to PyArg_ParseTuple() with method names to get better error
messages.
2000-07-08 06:41:03 +00:00
Fred Drake
edabdc1e9e
ANSI-fied sources, converted to four-space indentation.
2000-07-08 06:16:37 +00:00
Fred Drake
da940d8f8d
Add method names to PyArg_ParseTuple() calls for better error messages.
...
Convert to four-space indents.
2000-07-08 06:05:58 +00:00
Fred Drake
e3a41c653a
ANSI-fy the sources.
...
Convert to using PyArg_ParseTuple() as appropriate to allow method names
in error messages.
Re-indent to four-space indentation.
2000-07-08 05:00:07 +00:00
Fred Drake
0c89d4ec9a
Pretensions of the 20th century... remove old-style preprocessor
...
hackery (/**/), leaving only new-style preprocessor hackery (##).
2000-07-08 04:53:48 +00:00
Fred Drake
5639ba4896
ANSI-fy the sources.
2000-07-08 04:12:08 +00:00
Fred Drake
509d79adaf
Removed Py_PROTO, ANSI-fied sources.
2000-07-08 04:04:38 +00:00
Fred Drake
e55d5446ea
Thomas Wouters <thomas@xs4all.net>:
...
Allow -f* parameters to be passed to the compiler from Setup files.
2000-07-07 16:21:31 +00:00
Marc-André Lemburg
71f36983b9
Removed a prototype which is not used in socketmodule.c
...
Patch by T. Wouters.
2000-07-07 14:13:29 +00:00
Fred Drake
49b0c3bafe
Fix bug #392 , reported by Jonathan Giddy <jon@dstc.edu.au>:
...
In posixmodule.c:posix_fork, the function PyOS_AfterFork is called for
both the parent and the child, despite the docs stating that it should
be called in the new (child) process.
This causes problems in the parent since the forking thread becomes the
main thread according to the signal module.
Calling PyOS_AfterFork() only in the child fixes this. Changed for both
fork() and forkpty().
2000-07-06 19:42:19 +00:00
Fred Drake
589c35bcc7
Python 2.0 is not supposed to use string exceptions in the standard library
...
& extensions, so create exceptions in extension modules using the
PyErr_NewException() API.
2000-07-06 19:38:49 +00:00
Skip Montanaro
28067821e2
added read_history_file and write_history_file
...
XXX should perhaps support history truncation as well
2000-07-06 18:55:12 +00:00