Thomas Wouters
334fb8985b
Use 'void' directly instead of the ANY #define, now that all code is ANSI C.
...
Leave the actual #define in for API compatibility.
2000-07-25 12:56:38 +00:00
Andrew M. Kuchling
bf680266da
Modified version of patch #100963 from Mark Favas: has_key() is an
...
ncurses extension, so it's made conditional depending on STRICT_SYSV_CURSES
2000-07-25 12:37:41 +00:00
Andrew M. Kuchling
c1b4624447
Made an error message slightly more useful if select() returns something goofy
2000-07-25 00:51:31 +00:00
Andrew M. Kuchling
4463acbc32
Bug report and partial patch from Michael Deegan <michael@ucc.gu.uwa.edu.au>:
...
reversed tests resulted in an exception when you supplied the correct number
of arguments
2000-07-24 23:54:49 +00:00
Fred Drake
498c18f4d0
Only use one initialization file for LaTeX2HTML; more recent versions only
...
use the last one specified on the command line instead of all of them.
Smaller changes to reflect updated support.
2000-07-24 23:03:32 +00:00
Fredrik Lundh
82c330e591
-- updated to include known problems in SRE 0.9.6
...
(cf. test/output/test_sre)
2000-07-24 22:35:11 +00:00
Jack Jansen
4fb67f4659
Oops, WaitNextEvent was hand-coded, and it also needed the h->H conversion for PyArg_ParseTuple format strings.
2000-07-24 19:59:17 +00:00
Jack Jansen
5bdbabd203
Added more prototypes.
2000-07-24 19:52:52 +00:00
Jack Jansen
1f9f2f4c49
Added PyMac_getscript() which returns the pythonic name of the current script. Not ideal and not complete, but good enough for the time being. Idea and most of the code by Fredrik Lund.
2000-07-24 19:50:16 +00:00
Jack Jansen
12d86c8240
Declare fileno() with prototype if USE_GUSI2 defined. This isn't really the right place, but it will have to do for now.
2000-07-24 19:46:27 +00:00
Jack Jansen
bc66f950e8
If any of the builds in a group fails offer to stop the fullbuild process and open the failing projects in codewarrior.
2000-07-24 19:45:07 +00:00
Jack Jansen
919d3267ff
Added a "compile-time" flag PPC_ONLY, if set we make ppc-only applications without posting the dialog. This is the normal situation since 1.6alfa (no more 68k support).
2000-07-24 19:44:17 +00:00
Jack Jansen
5199c54e38
Put in an earlier include of sys/signal.h (within ifdef USE_GUSI) to forestal a multiple define.
2000-07-24 19:42:53 +00:00
Fred Drake
e1b304db37
Fix small typos and markup consistency nits.
2000-07-24 19:35:52 +00:00
Thomas Wouters
c44221271a
Remove unused variable and what looks like an ancient relic of an old
...
version of SSLeay (now known as OpenSSL.)
2000-07-24 16:26:35 +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
Peter Schneider-Kamp
332c59c4ef
change some occurence of python15.dll to python20.dll
...
closes patch #100956
2000-07-24 16:02:00 +00:00
Thomas Wouters
5c669860e6
ANSIfy a bit more.
2000-07-24 15:49:08 +00:00
Thomas Wouters
ed77bac472
Fix floattime prototype ((void), not (double))
2000-07-24 15:26:39 +00:00
Thomas Wouters
58d0510245
ANSIfy some more forward declarations.
2000-07-24 14:43:35 +00:00
Thomas Wouters
8ec68fded2
Prototype yet another forward declaration.
2000-07-24 14:39:50 +00:00
Jack Jansen
ab48e905b5
Don't call BringToFront() on the dialog object, but call GetDialogWindow() to get a window object.
2000-07-24 14:07:15 +00:00
Thomas Wouters
4789b3ae05
... and yet more ANSIfications...
2000-07-24 11:36:47 +00:00
Thomas Wouters
770e4042db
ANSIfy yet another hidden function definition.
2000-07-24 11:26:25 +00:00
Thomas Wouters
eb61b6ebb6
Fix typo in previous patch.
2000-07-24 11:17:40 +00:00
Thomas Wouters
ccada2421b
*** empty log message ***
2000-07-24 11:09:37 +00:00
Thomas Wouters
94d8fea62e
Remove function-less prototype (old function that was removed ?) that
...
happens to be a C++ reserved word, too.
2000-07-24 10:58:31 +00:00
Fred Drake
1790dd4b66
Restore TestSkipped exception; appears to have disappeared in last checkin.
...
Make both TextFailed and TestSkipped subclasses of Error, which derives
from Exception. Docstrings have been added for the exceptions and module.
2000-07-24 06:55:00 +00:00
Eric S. Raymond
6899660a81
First round of curses documentation improvements; correct errors, flesh out
...
entry point descriptions.
2000-07-24 03:28:40 +00:00
Mark Hammond
46a733dfbf
Patch #100926 - Better error messages for socket exceptions on Windows. [Slight style differences from posted patch]
2000-07-24 01:45:11 +00:00
Thomas Wouters
e28c296f0f
Another missed ansification.
2000-07-23 22:21:32 +00:00
Thomas Wouters
c307352027
ANSIfy functions that were hiding inside a macro.
2000-07-23 22:09:59 +00:00
Fredrik Lundh
8a3ebf8ca8
-- SRE 0.9.6 sync. this includes:
...
+ added "regs" attribute
+ fixed "pos" and "endpos" attributes
+ reset "lastindex" and "lastgroup" in scanner methods
+ removed (?P#id) syntax; the "lastindex" and "lastgroup"
attributes are now always set
+ removed string module dependencies in sre_parse
+ better debugging support in sre_parse
+ various tweaks to build under 1.5.2
2000-07-23 21:46:17 +00:00
Tim Peters
4f1b2081e9
Removed all instances of RETSIGTYPE from the source code: signal
...
handlers "return void", according to ANSI C.
Removed the new Py_RETURN_FROM_SIGNAL_HANDLER macro.
Left RETSIGTYPE in the config stuff, because it's not clear to
me that others aren't relying on it (e.g., extension modules).
2000-07-23 21:18:09 +00:00
Fredrik Lundh
56055a4749
-- added code to the new Windows popen functions to make close
...
return the exit code. Only works on Windows NT/2000, due to
limitations in the Win9X shell.
(based on patch #100941 by David Bolen)
2000-07-23 19:47:12 +00:00
Tim Peters
8315ea5790
Included assert.h in Python.h -- it's absurd that this basic tool of
...
good C practice hasn't been available to everything all along.
Added Py_SAFE_DOWNCAST(VALUE, WIDE, NARROW) macro to pyport.h; this
just casts VALUE from type WIDE to type NARROW, but assert-fails if
Py_DEBUG is defined and info is lost due to casting.
Replaced a line in Fredrik's fix to marshal.c to use the new macro.
2000-07-23 19:28:35 +00:00
Tim Peters
e21107145a
Missed a return from a signal handler -- thanks to /F for pointing
...
it out!
2000-07-23 18:33:52 +00:00
Fredrik Lundh
115343849c
-- changed w_more to take an integer instead of a char
...
(this is what the callers expect).
2000-07-23 18:24:06 +00:00
Tim Peters
1be46844d9
Recent ANSIfication introduced a couple instances of
...
#if RETSIGTYPE != void
That isn't C, and MSVC properly refuses to compile it.
Introduced new Py_RETURN_FROM_SIGNAL_HANDLER macro in pyport.h
to expand to the correct thing based on RETSIGTYPE. However,
only void is ANSI! Do we still have platforms that return int?
The Unix config mess appears to #define RETSIGTYPE by magic
without being asked to, so I assume it's "a problem" across
Unices still.
2000-07-23 18:10:18 +00:00
Thomas Wouters
2f2370bfc9
Oops. One of last nights ANSIfication patches accidentily upped the bytecode
...
MAGIC number. When updating it next time, be sure it's higher than 50715 *
constants. (Shouldn't be a problem if everyone keeps to the proper
algorithm.)
2000-07-23 09:20:08 +00:00
Thomas Wouters
53e7fd77a7
Fix prototypes generated by makesetup, so they include '(void)' rather than
...
empty argumentlists.
2000-07-23 00:02:15 +00:00
Thomas Wouters
a534594fc7
ANSIfication: remove very-old-varargs code, fix function declarations so
...
they include prototypes.
2000-07-22 23:59:33 +00:00
Thomas Wouters
bd4bc4e9e9
Even more ANSIfication: fix as many function pointers and declarations as
...
possible.
2000-07-22 23:57:55 +00:00
Thomas Wouters
3b6448fbae
ANSIfication: add proper prototypes to function-pointers and declarations.
...
Also, fix a bug found by said declarations, where a string was defined as
unsigned char*, but used as signed.
2000-07-22 23:56:07 +00:00
Thomas Wouters
2c46eaf8e9
ANSIfication of function-pointers and declarations. Also, make sure to
...
return something if RETSIGTYPE is not void, in functions that are defined as
returning RETSIGTYPE.
2000-07-22 23:51:19 +00:00
Thomas Wouters
0796b00279
Further ANSIfication of functionpointers and declarations. Also, make sure
...
to return something if RETSIGTYPE isn't void, in functions that are defined
to return RETSIGTYPE. Work around an argumentlist mismatch ('void' vs.
'void *') by using a static wrapper function.
2000-07-22 23:49:30 +00:00
Thomas Wouters
b4bd21cf79
ANSIfy as many declarations as possible.
2000-07-22 23:38:01 +00:00
Thomas Wouters
bd8ad942fe
Remember to return something if RETSIGTYPE is not 'void'. Do we still need
...
to worry about systems that have signal-handlers return 'int' ? Not all of
the code does, though nothing will break because of it.
2000-07-22 23:33:22 +00:00
Thomas Wouters
5f37591a16
ANSIfications: fix empty arglists, and remove the checks for
...
'HAVE_STDARG_PROTOTYPES' (consider it true, remove false branch)
2000-07-22 23:30:03 +00:00
Thomas Wouters
7889010731
Miscelaneous ANSIfications. I'm assuming here 'main' should take (int,
...
char**) and return an int even on PC platforms. If not, please fix
PC/utils/makesrc.c ;-P
2000-07-22 19:25:51 +00:00