Serhiy Storchaka
a07a8b4f18
Issue #6083 : Fix multiple segmentation faults occured when PyArg_ParseTuple
...
parses nested mutating sequence.
2013-02-04 12:45:46 +02:00
Antoine Pitrou
c83ea137d7
Untabify C files. Will watch buildbots.
2010-05-09 14:46:46 +00:00
Mark Dickinson
083d1f9f9a
Issue #5933 : Fix gcc -Wextra compiler warnings (and remove some
...
trailing whitespace).
2009-05-08 20:58:08 +00:00
Martin v. Löwis
43fd99c8f8
Patch #1557515 : Add RLIMIT_SBSIZE.
2006-09-16 17:36:37 +00:00
Georg Brandl
96a8c3954c
Make use of METH_O and METH_NOARGS where possible.
...
Use Py_UnpackTuple instead of PyArg_ParseTuple where possible.
2006-05-29 21:04:52 +00:00
Martin v. Löwis
19ab6c98cf
Initialize structseq types only once.
2006-04-16 18:55:50 +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
0cb3c63503
Patch #1005568 : Use _SC_PAGESIZE on Irix.
...
Backported to 2.3.
2004-08-12 13:26:56 +00:00
Neal Norwitz
1ac3e39913
Get build working with pre-C99 compilers
2003-03-30 20:51:29 +00:00
Martin v. Löwis
f26d63b3e1
Patch #650412 : Check whether the address of flock and getpagesize
...
can be taken, and use _SC_PAGE_SIZE if getpagesize is not available.
2003-03-30 17:23:49 +00:00
Martin v. Löwis
b9a0f91218
Rename LONG_LONG to PY_LONG_LONG. Fixes #710285 .
2003-03-29 10:06:18 +00:00
Neal Norwitz
94a83fdc15
Fix SF #632624 , test_resource failure on alpha/64bit
...
Return PyLongs instead ot PyInts.
On alphas, 9223372036854775807 became -1.
2002-11-02 17:46: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
Jeremy Hylton
d95efe4257
Check for overflow errors in setrlimit(),
...
and reflow a long line.
2002-04-23 20:15:04 +00:00
Martin v. Löwis
688357e035
Patch #512005 : getrusage() returns struct-like object.
2002-04-08 21:28:20 +00:00
Neil Schemenauer
29ac3cb7ed
Expose RLIM_INFINITY constant. Closes SF patch 489066.
2002-03-24 22:27:39 +00:00
Fred Drake
cca657b8fe
Use PyModule_AddIntConstant() instead of creating a private helper function.
...
This also avoids directly accessing the module'd __dict__.
2002-02-14 06:59:26 +00:00
Martin v. Löwis
43b936d08c
Patch #477750 : Use METH_ constants in Modules.
2002-01-17 23:15:58 +00:00
Martin v. Löwis
cdc4451222
Include <unistd.h> in Python.h. Fixes #500924 .
2002-01-12 11:05:12 +00:00
Andrew M. Kuchling
fda3c3ddae
[Patch #462255 , from Jason Tishler] Re-enables building the resouce
...
module on the Cygwin platform.
2001-09-17 16:19:16 +00:00
Guido van Rossum
8586991099
REMOVED all CWI, CNRI and BeOpen copyright markings.
...
This should match the situation in the 1.6b1 tree.
2000-09-01 23:29:29 +00:00
Peter Schneider-Kamp
7e01890986
merge Include/my*.h into Include/pyport.h
...
marked my*.h as obsolete
2000-07-31 15:28:04 +00:00
Thomas Wouters
1e0c2f4bee
Create a new section of pyport.h to hold all external function declarations
...
for systems that are missing those declarations from system include files.
Start by moving a pointy-haired ones from their previous locations to the
new section.
(The gethostname() one, for instance, breaks on several systems, because
some define it as (char *, size_t) and some as (char *, int).)
I purposely decided not to include the summary of used #defines like Tim did
in the first section of pyport.h. In my opinion, the number of #defines
likedly to be used by this section would make such an overview unwieldy. I
would suggest documenting the non-obvious ones, though.
2000-07-24 16:06:23 +00:00
Thomas Wouters
f3f33dcf03
Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)',
...
and a couple of functions that were missed in the previous batches. Not
terribly tested, but very carefully scrutinized, three times.
All these were found by the little findkrc.py that I posted to python-dev,
which means there might be more lurking. Cases such as this:
long
func(a, b)
long a;
long b; /* flagword */
{
and other cases where the last ; in the argument list isn't followed by a
newline and an opening curly bracket. Regexps to catch all are welcome, of
course ;)
2000-07-21 06:00:07 +00:00