Commit Graph

1289 Commits

Author SHA1 Message Date
Guido van Rossum b9d338cbfb Fill pad bytes with zeros (fixing a bug dating from the very first version!). 1997-01-03 15:40:33 +00:00
Barry Warsaw b9a781e177 Scratch the ears of gcc -Wall. 1997-01-03 00:26:28 +00:00
Barry Warsaw 929711765e Several changes:
- Conform to standard Python C coding styles.

- All static symbols were renamed and shorted.

- Eyeballed all return values and memory references.

- Fixed a bug in signal.pause() so that exceptions raised in signal
  handlers are now properly caught after pause() returns.

- Removed SIGCPU and SIGFSZ.  We surmise that these were typos for the
  previously missing SIGXCPU and SIGXFSZ.
1997-01-03 00:14:25 +00:00
Guido van Rossum 4ccc531f34 Ok, ok, I've fixed gradual underflow on packing too.
Still don't know what to do with Inf/NaN, so I raise an exception on
pack(), and something random decided by ldexp() will happen on
unpack().
1997-01-02 23:23:20 +00:00
Guido van Rossum 07ef655222 Oops -- unpack float/double didn't do the right thing if e==0. 1997-01-02 22:31:07 +00:00
Guido van Rossum 74679b455f Support float and double in non-native formats.
These use the ANSI/IEEE standard, which is also used by XDR;
so the _xdr module may become obsolete.
1997-01-02 22:21:36 +00:00
Barry Warsaw 9e3fceb5b3 rotorobj_setkey(): A single string argument is now required (i.e. no
long optional with nearly-no-op missing).
1997-01-02 20:36:36 +00:00
Guido van Rossum 60c50614e1 Added better handling of unsigned longs -- a Python long returned by
unpack('L', ...) is now acceptable to pack('L', ...).
1996-12-31 16:29:52 +00:00
Guido van Rossum 3aa27fd315 Fix the first bugs... treatment of 0 count was wrong, and memchr()
should be memset().
1996-12-31 02:10:45 +00:00
Guido van Rossum f7e6b4b388 Pretty much rewritten to fulfull several long-standing wishes:
-- The whole implementation is now more table-driven.

-- Unsigned integers.  Format characters 'B', 'H', 'I' and 'L'
mean unsigned byte, short, int and long.  For 'I' and 'L', the return
value is a Python long integer if a Python plain integer can't
represent the required range (note: this is dependent on the size of
the relevant C types only, not of the sign of the actual value).

-- A new format character 's' packs/unpacks a string.  When given a
count prefix, this is the size of the string, not a repeat count like
for the other format characters; e.g. '10s' means a single 10-byte
string, while '10c' means 10 characters.  For packing, the string is
truncated or padded with null bytes as appropriate to make it fit.
For unpacking, the resulting string always has exactly the specified
number of bytes.  As a special case, '0s' means a single, empty
string (while '0c' means 0 characters).

-- Various byte order options.  The first character of the format
string determines the byte order, size and alignment, as follows:

First character		Byte order		size and alignment

	'@'		native			native
	'='		native			standard
	'<'		little-endian		standard
	'>'		big-endian		standard
	'!'		network (= big-endian)	standard

If the first character is not one of these, '@' is assumed.

Native byte order is big-endian or little-endian, depending on the
host system (e.g. Motorola and Sun are big-endian; Intel and DEC are
little-endian).

Native size and alignment are determined using the C compiler's sizeof
expression.  This is always combined with native byte order.

Standard size and alignment are as follows: no alignment is required
for any type (so you have to use pad bytes); short is 2 bytes; int and
long are 4 bytes.  In this mode, there is no support for float and
double.

Note the difference between '@' and '=': both use native byte order,
but the size and alignment of the latter is standardized.

The form '!' is available for those poor souls who can't remember
whether network byte order is big-endian or little-endian.

There is no way to indicate non-native byte order (i.e. force
byte-swapping); use the appropriate choice of '<' or '>'.
1996-12-31 01:41:25 +00:00
Roger E. Masse fbd1d74286 Renamed.
However: "cgensupport.h" is still present... otherwise I get
	maaaany type errors... not sure if this needs more attention.
1996-12-24 19:39:23 +00:00
Barry Warsaw aeb207c6b6 Reworked to check for memory problems (one potential found),
non-checked error return values, and where appropriate,
PyArg_ParseTuple() style argument parsing.

I also changed some function names and converted all malloc/free calls
to PyMem_NEW/PyMem_DEL.

Some stylistic changes and formatting standardization.
1996-12-23 23:36:24 +00:00
Roger E. Masse 7f33e403a4 Renamed. 1996-12-20 21:56:08 +00:00
Barry Warsaw c357325663 Several changes. Test program to follow.
- Where optional arguments were being used, converted to
  PyArg_ParseTuple() style instead of nested PyArg_Parse() style.

- Check for and handle many potential error conditions that were never
  being tested.

- internal reg_* functions renamed to regobj_* (makes it easier to
  figure out which are global regex functions and which are for regex
  objects).

- reg_group (now regobj_group) was quite extensively reworked.  it no
  longer recurses to do its job (by factoring core functionality into
  a separate function that knows about string and integer indexes).

- some minor formatting fixes.

- regex_set_syntax() now invalidates the cache.  Without this change
  (in the example below), the second search would produce different
  output depending on whether the first search were performed or not
  (since performing the first search would cache the compiled object
  with RE_SYNTAX_EMACS, causing the second test to unexpectedly fail).

  regex.search('(a+)|(b+)', 'cdb')
  prev = regex.set_syntax(RE_SYNTAX_AWK)
  regex.search('(a+)|(b+)', 'cdb')
1996-12-20 21:56:07 +00:00
Roger E. Masse a141f8a31a Renamed. 1996-12-20 20:50:39 +00:00
Barry Warsaw 4a34209468 1. Export open(2) flag constants for every defined constant
2. Reworked error checking in initposix() and initnt().
1996-12-19 23:50:02 +00:00
Barry Warsaw bab218e420 Minor formatting changes. 1996-12-19 22:22:32 +00:00
Barry Warsaw 43d68b8fb0 Minor formatting changes. 1996-12-19 22:10:44 +00:00
Guido van Rossum 25405c786b Added the new getprotobyname() call to the module overview at the top. 1996-12-19 16:42:52 +00:00
Guido van Rossum 3901d85277 Added getprotobyname() interface. 1996-12-19 16:35:04 +00:00
Roger E. Masse 20c6381856 Removed references to getdoublearg and get2doublearg rename macros and
substituted the appropriate PyArg_Parse calls.  Retested.  All appears well.
1996-12-18 21:59:01 +00:00
Roger E. Masse ec0b4af3d4 Eradicated all references to getintarg and getstrarg and substituded the
proper functions as defined in rename2.h.  Thanks Barry!
1996-12-18 20:07:39 +00:00
Roger E. Masse cfe3b61c02 Opps, left out two defines needed for argument parsing. 1996-12-18 19:56:48 +00:00
Barry Warsaw 19f61ae196 Tabification changes only; the module was already newly named. 1996-12-18 19:50:00 +00:00
Roger E. Masse b2b44e5b8a Renamed. 1996-12-18 19:37:32 +00:00
Guido van Rossum 2e6313930e Added Jeremy's resource module. 1996-12-18 18:37:27 +00:00
Guido van Rossum 4a4880966b Correct *another* mistake (initmath() always fell through to fatal error).
Watch it, Barry! :-)
1996-12-18 14:14:33 +00:00
Guido van Rossum 4c4cbf397b Correct 1-char typo / syntax error. 1996-12-18 14:12:22 +00:00
Guido van Rossum c88c9cb23f Corrected two errors introduced by the renaming (and the subsequent
style corrections, I presume), found by Jack.  Added warning that this
has not been tested (Jack could only compile and link it).
1996-12-17 20:43:55 +00:00
Roger E. Masse b15bef85a7 Renamed in a grand-ee-ous way! 1996-12-17 19:55:33 +00:00
Roger E. Masse 4ca4b07516 Opps, left in a /*#include "modsupport.h"*/ 1996-12-17 17:46:28 +00:00
Roger E. Masse 919213a098 Grandly renamed. 1996-12-17 17:42:22 +00:00
Guido van Rossum 4004e21484 Another fix for Split() -- don't refuse {"} but turn it into ".
This is needed because if a configure option has " as its value,
it will be rendered as {"}; after stripping one level of quoting it's
just ", on which splitlist will barf.
1996-12-17 01:25:36 +00:00
Guido van Rossum 0f868375ff Check errors returned by recursive call to Split(). 1996-12-17 01:02:18 +00:00
Barry Warsaw fc93f75da7 Better error checking in initmath(). 1996-12-17 00:47:03 +00:00
Barry Warsaw d0c1042ff2 Renamed. 1996-12-17 00:05:22 +00:00
Barry Warsaw 10f124c951 Updated to standard Python C coding style, and fixed a few error
checking nits.
1996-12-17 00:01:40 +00:00
Barry Warsaw 14ed5fb1ec initsignal(): Added SIGXCPU and SIGXFSZ. Left in the definitions for
SIGCPU and SIGFSZ but we're (Jeremy and I) are actually unsure whether
these were typos or if there are systems that use these alternate
names.  We've checked Solaris, SunOS, and IRIX; they contain only the
SIGX* names.
1996-12-16 20:24:22 +00:00
Barry Warsaw 529fcfe31f list2set(): correct return value (an int, not a PyObject*). 1996-12-16 18:15:34 +00:00
Roger E. Masse 81a6fe9b98 Removed a #inlclude <errno.h> since it's implied with "Python.h" 1996-12-13 23:29:09 +00:00
Barry Warsaw 24c4b3d4e8 list2set(): PyList_GetItem could fail. 1996-12-13 23:22:42 +00:00
Roger E. Masse 0e12032748 Renamed. 1996-12-13 20:33:44 +00:00
Guido van Rossum 4e7f62229e Get rid of it -- use bsddb! 1996-12-13 16:24:06 +00:00
Roger E. Masse bd4b961a0d Opps, fixed a couple of newly introduced wrapping problems. 1996-12-13 15:59:22 +00:00
Roger E. Masse e7ee8c3753 Reindented via GvR recomendation ala Bwarsaw cppy-style.el 1996-12-13 15:55:22 +00:00
Guido van Rossum fbcfd52a9a Added the example "thin ice" from the extensions manual. 1996-12-13 02:57:25 +00:00
Barry Warsaw f630f6b93d Renamed, and scrutinized for missed potential error conditions.
Alas, I don't have an Indigo, so I could not even compile this.
1996-12-13 01:24:29 +00:00
Barry Warsaw 8496d39478 Renamed, however there is no test case. I did test some of the module
out manually, and it does compile, but I'm not sure how to write a
useful portable test case.  Maybe later...
1996-12-13 00:11:04 +00:00
Barry Warsaw 30695fa3cd Renamed. 1996-12-12 23:32:31 +00:00
Barry Warsaw c2feec3378 Renamed, but *not* tested or compiled. I don't even have the STDWIN
library.
1996-12-12 22:48:20 +00:00
Barry Warsaw c1cb360683 Reworked to eliminate all potential memory problems, including
deletion of object from list argument during callout to fileno().
1996-12-12 22:16:21 +00:00
Barry Warsaw e4ac0aa618 Several changes... Guido *please* take a look!
1. Renamed

2. Several coding styles were being used here, owing to the multiple
   contributors.  I tried to convert everything to standard "python"
   coding style for indentation, paren and brace placement, etc.

3. There were several potential error conditions that were never being
   checked, and where I saw them, I added checks of return values,
   etc.  I'm pretty sure I got them all.

4. There were some old-style (pre PyArg_ParseTuple) argument
   extraction and these were converted to use PyArg_ParseTuple.

All changes compile and run with the new test_select.py module, at
least on my Solaris/Sparc box.
1996-12-12 00:04:35 +00:00
Barry Warsaw 7bd9fbdea2 Grandly renamed.
Note that since I have no idea how to test this, I didn't write a test
case.  It does seem to at least compile on my system though.
1996-12-11 21:33:16 +00:00
Barry Warsaw 50c5cf132a Renamed. 1996-12-11 16:54:40 +00:00
Barry Warsaw 1abda0fb12 cat and puste errors 1996-12-11 01:00:46 +00:00
Barry Warsaw 3696c524a4 nis_maplist(): Use check of yp_get_default_domain() return value
that's used in other parts of this module.

nis_maps(): use PyArg_NoArgs().
1996-12-11 00:29:14 +00:00
Barry Warsaw adbf4e66df Renamed, and bug fixed:
Two interesting problems in nis_maplist().  First, it is possible that
clnt_create() will return NULL.  This was being caught, but no Python
error was being set.  I use clnt_spcreateerror() to generate the value
of the exception.

But why would clnt_create() fail?  It's because no server was being
found.  And why was this?  It was because nis_maplist() tried only to
get the NIS master for the first map in the aliases list, which is
passwd.byname, and guess what?  That's the one NIS map CNRI does *not*
export!  So the yp_master() call was failing to return a valid
server.  I now cycle through all the map aliases until I find a valid
master.  If not, a different exception is set.

I'm not sure this is the completely correct way to do all this, but
short of rewriting the entire nismodule.c (to expose the proper API to
Python), it should do the trick.
1996-12-11 00:15:58 +00:00
Barry Warsaw 53699e9ec1 Renamed.
Note that there is no test suite for this module, and I don't plan to
write one just now.
1996-12-10 23:23:01 +00:00
Barry Warsaw a6b7c7146c Renamed. 1996-12-10 16:25:56 +00:00
Guido van Rossum caf783793d Added remaining declarations needed/used in glmodule.c; keeps gcc -Wall happy. 1996-12-10 15:41:19 +00:00
Guido van Rossum 36dd0d27c4 Fix operator priority bug found thanks to gcc -Wall. 1996-12-10 15:23:00 +00:00
Guido van Rossum e29ed8fa7c Make gcc -Wall happy; remove dummy variable (can't see where it's needed). 1996-12-10 15:21:30 +00:00
Guido van Rossum fb4130d1f1 Added extern decl for gethostname() to keep gcc -Wall happy. 1996-12-10 15:17:08 +00:00
Guido van Rossum 55db515a51 Great renaming.
Also got rid of the dummy variable, which was last needed in IRIX 4.x.
1996-12-10 00:32:31 +00:00
Guido van Rossum 09f99dfdba Removed redundant inclusion of <errno.h> (sorry, Roj!). 1996-12-10 00:12:14 +00:00
Roger E. Masse b0dfe969d9 renamed in a grand fashion. 1996-12-10 00:07:00 +00:00
Barry Warsaw abb7efeb7c Renamed a few symbols that were found in comments. 1996-12-09 23:22:35 +00:00
Barry Warsaw 3bdf746c5c Renamed, ungrandly. We don't have the GNU MP library here so we can't
really test this module, or even compile it without a lot of work.

I'll make a note of it that this has not been tested!
1996-12-09 23:16:31 +00:00
Roger E. Masse 56c345b235 renamed grandly. 1996-12-09 23:14:26 +00:00
Roger E. Masse 24070ca391 Renamed Grandly 1996-12-09 22:59:53 +00:00
Barry Warsaw 8b43b19ec9 Renamed 1996-12-09 22:32:36 +00:00
Roger E. Masse 5817f8f717 Removed some unneeded header files and reedited with a fixed-width font
from emacs as per recomendation from GvR
1996-12-09 22:24:19 +00:00
Roger E. Masse 2919eaaf08 Renamed Grandly (I think). 1996-12-09 20:10:36 +00:00
Guido van Rossum ece35bc22f Changes to keep gcc -Wall happy. 1996-12-09 18:52:11 +00:00
Guido van Rossum 7ce52be627 Added `void' to declaration of initgl(), to keep gcc -Wall happy. 1996-12-09 18:51:51 +00:00
Guido van Rossum 665f9198fe Added a bunch of extern void decls, to keep gcc -Wall happy. 1996-12-09 18:49:42 +00:00
Guido van Rossum 3d65fa3488 Include <sys/ioctl.h>, to keep gcc -Wall happy. 1996-12-09 18:49:14 +00:00
Guido van Rossum cd165cc092 Make dummy int public (with _Py_ prefix), to keep gcc -Wall happy. 1996-12-09 18:48:32 +00:00
Guido van Rossum 37273177be Add ``extern void bzero();'' for SGI, to keep gcc -Wall happy. 1996-12-09 18:47:43 +00:00
Guido van Rossum 66a7013c5c Include unistd.h to keep gcc -Wall happy. 1996-12-09 18:46:58 +00:00
Guido van Rossum 259552dbd9 Added ``extern int get_default_domain();'' for SGI, to keep gcc -Wall happy. 1996-12-09 18:46:28 +00:00
Guido van Rossum 52174577eb Added #ifdef around ``extern int ftime();'' for MS WINDOWS (which has
a conflicting definition somewhere).
Resolved line wrap for error message in ins().
1996-12-09 18:38:52 +00:00
Barry Warsaw f52560197f Greatly renamed. 1996-12-09 18:35:56 +00:00
Barry Warsaw ec775c52a2 ins(): missed a renaming in a string: dictinsert =>
PyDict_SetItemString.

GvR: note the long line > 80 chars.  Wrapping suggestions?
1996-12-09 18:24:35 +00:00
Barry Warsaw 9a2a8a8d31 Greatly renamed. 1996-12-06 23:32:14 +00:00
Guido van Rossum 1bb126fa13 Add extern decl of ftime() to make gcc -Wall happy. 1996-12-06 20:17:44 +00:00
Guido van Rossum a376cc5cc8 Keep gcc -Wall happy. 1996-12-05 23:43:35 +00:00
Guido van Rossum 60fca2c90f Add case for 'R' and a little bit of cleanup. Andrew Kuchling. 1996-12-05 23:41:26 +00:00
Guido van Rossum 049cd90b93 Jim F's brainchild 1996-12-05 23:30:48 +00:00
Guido van Rossum 81b24c0221 Fix bad format char in error msg (%s should be %d).
Keep gcc -Wall happy.
1996-12-05 23:30:16 +00:00
Guido van Rossum 36a484fb52 Correct typo -- repeat implements *, not +. 1996-12-05 19:01:16 +00:00
Guido van Rossum b916faf66a Upgraded new.function() contributed by Tommy. Also got rid of #if 0'ed code. 1996-11-21 16:02:12 +00:00
Guido van Rossum 0b1ff66920 Should compare errno to 0, not NULL 1996-11-02 17:31:22 +00:00
Guido van Rossum d266eb460e New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
Guido van Rossum 0cbaff440d Fix case where you start a new group immediately after a label.
Thanks to Ka-Ping Yee.
1996-10-23 17:53:06 +00:00
Guido van Rossum 1d6fddb776 Changed _Py_EllipsesObject -> _Py_EllipsisObject. 1996-10-21 15:11:12 +00:00
Guido van Rossum a1b1cdbab2 Major upgrade by Vladimir Marangozov. 1996-10-21 15:10:39 +00:00
Guido van Rossum 084814624d Don't close an already closed socket. 1996-10-12 14:07:22 +00:00
Guido van Rossum 6e8583dcb3 Check for NULL pointer returned from localtime()/gmtime(). 1996-10-08 14:19:52 +00:00
Guido van Rossum c196202e3d Speedup of makeresult() by keeping a filler of (-1, -1) around. 1996-10-08 14:18:42 +00:00
Guido van Rossum a0ca4c402d Replace all uses of strncmp (in split, find, rfind) with memcmp, so
embedded \0 in the delimiter is handled properly.  Thanks to Sjoerd
for suggesting this.
1996-10-04 13:39:37 +00:00
Guido van Rossum 07886d0e01 Rationalize MS #ifdefs 1996-09-11 23:31:42 +00:00
Guido van Rossum f156f503cd Correct typo: return -1 for error, not 0 1996-09-11 23:31:23 +00:00
Guido van Rossum 3863abb921 Correct typo: return -1 for error, not NULL 1996-09-11 23:31:07 +00:00
Guido van Rossum c35f933c44 Add text of argument to errors for atoi(), atol(), atof(). 1996-09-11 23:30:42 +00:00
Guido van Rossum 6beb479b39 Force O_BINARY in flags if defined, for e.g. Microsoft platforms. 1996-09-11 23:22:25 +00:00
Guido van Rossum 622f577eac Dynamically initialize ob_type field, for Windows DLL 1996-09-11 23:18:43 +00:00
Guido van Rossum c864364395 Added lockf() call 1996-09-11 23:17:20 +00:00
Guido van Rossum 6fe01d4ba0 Added Setup.local feature; make shared libs readonly 1996-09-11 23:13:07 +00:00
Fred Drake e1607a8d0e (parsermodule.c): Fixed sloppy typo: '==' -> '=' 1996-09-11 21:58:26 +00:00
Guido van Rossum f62e5bf339 Update based on Python 1.4b3. 1996-09-10 18:09:44 +00:00
Guido van Rossum 87755a24c2 Use #ifdef MS_WIN32 instead of _MSC_VER > 850. 1996-09-07 00:59:43 +00:00
Guido van Rossum b2fb36498d Sleep() turns out to be win32 specific.
The timezone etc. overrides are win16 specific.
Hope I got this right now...
1996-09-07 00:47:35 +00:00
Guido van Rossum cac6c72105 Some changes for better Windows portability. 1996-09-06 13:34:02 +00:00
Guido van Rossum 6eed906533 Typo (missing _) in _xdr line. 1996-08-30 20:41:30 +00:00
Guido van Rossum 6c0b234006 #include <netconfig.h> seems not needed and is harmful on NeXT, so drop it.
Add proper initialization of rtn = NULL in unpack_double.
1996-08-30 20:39:43 +00:00
Guido van Rossum 213a685cd8 Move backup definition for hypot() to Python/hypot.c. 1996-08-29 18:13:16 +00:00
Guido van Rossum c9970eecc2 Call __initialize(), not __sinit() on Mac dynamic loading entry. 1996-08-26 14:37:15 +00:00
Guido van Rossum 497aedd2ff Get rid of unused local variable. 1996-08-21 23:46:01 +00:00
Guido van Rossum 4f903463b8 Removed environment, objc, sybase modules 1996-08-21 22:15:03 +00:00
Guido van Rossum f00eb71d90 Get rid of some obsolete modules:
- environment.c (we now have os.putenv)
- sybase (a better one is in contrib/Databases/Sybase.*)
- objc.c (incomplete and unsupportable by us)
1996-08-21 22:11:54 +00:00
Guido van Rossum 2a2884645d Patches to make it compile with K&R C 1996-08-21 21:55:43 +00:00
Guido van Rossum 3bcf7d2f0b Avoid complaint about inconsistent hypot() linkage on NT. 1996-08-21 20:36:52 +00:00
Guido van Rossum 171191efb2 Raise ValueError on empty string passed into atoi(), atol(), atof(). 1996-08-21 20:02:25 +00:00
Guido van Rossum 360a934609 Support for old CPP 1996-08-21 19:04:10 +00:00
Guido van Rossum ae92f01029 Hacks to support being a Windows DLL 1996-08-21 19:03:36 +00:00
Guido van Rossum c9fb47ef08 Added delslice and delitem.
Renamed and, or to and_, or_.
Renamed all internal identifiers so as not to start with '__' (which is
a compiler privilege); remove AIX hack.
1996-08-21 17:40:51 +00:00
Guido van Rossum 4747887880 New batch from Fred 1996-08-21 14:32:37 +00:00
Guido van Rossum bf0dc9fb14 Add #define MAC_TCL for Mac. 1996-08-20 20:49:56 +00:00
Guido van Rossum 613b943bf9 *noconfig* -> *shared*.
Add # -lm comment to modules that need it as sharedlib.
1996-08-20 19:50:17 +00:00
Guido van Rossum 4355454232 Support *shared* and *static* as aliases for *noconfig* and *config*. 1996-08-20 19:49:13 +00:00
Guido van Rossum d62d8bced3 Test for xdrmem_create() failure.
Minor lay-out changes.
1996-08-20 19:47:44 +00:00
Guido van Rossum cde317ae62 Install shared libs with executable mode -- needed for HPUX,
doesn't hurt elsewhere.
1996-08-20 19:46:35 +00:00
Guido van Rossum 272841c439 Changes by Rob Hooft for GMP 2.0.2 1996-08-19 23:06:45 +00:00
Guido van Rossum 73363b526e Added _xdr module 1996-08-19 22:58:53 +00:00
Guido van Rossum 7cf1fcf347 Always include config.h 1996-08-19 22:12:39 +00:00
Guido van Rossum 8f3032da10 Declare initregex() as returning void, as it should be. 1996-08-19 22:03:12 +00:00
Guido van Rossum 860986812a Remove some unused variables. 1996-08-19 22:02:43 +00:00
Guido van Rossum 2977e5d660 Declare a bunch of internal routines as returning void. 1996-08-19 22:02:19 +00:00
Guido van Rossum 1720230399 Made it palatable for K&R preprocessors. The spam macros don't have
to work as hard (but "stringizing" is still used, so we test the newly
introduced HAVE_OLD_CPP config define).
1996-08-19 22:01:39 +00:00
Guido van Rossum a29756c1dd Recognize *.sl and *.so as library (i.e. linker) arguments 1996-08-19 22:00:05 +00:00
Guido van Rossum 07b983da99 Incorporate LDFLAGS calculated by configure (for --with-readline) 1996-08-19 21:59:32 +00:00
Guido van Rossum 7ffa7617c7 Changes for Windows NT -- this time it works, with Tcl4.1p1 (p1!!!) etc.
- Use ckalloc(), ckfree() everywhere.
- Default FREECAST to (char *).
- Added comment with Tcl/Tk version info.
1996-08-13 21:10:16 +00:00
Guido van Rossum 99d90c0d0e Include "mymath.h" instead of manually declaring math functions. 1996-08-08 19:17:45 +00:00
Guido van Rossum 7999a5c525 Added lstrip() and rstrip().
Extended split() (and hence splitfields(), which is the same function)
to support an optional third parameter giving the maximum number of
delimiters to parse.
1996-08-08 19:16:15 +00:00
Guido van Rossum 339cfa39d8 Need config.h (for Win etc.) 1996-08-08 19:12:37 +00:00
Guido van Rossum ec185bde77 Added hack to get it to compile on AIX. 1996-08-08 19:12:05 +00:00
Guido van Rossum 8a170cbed6 Rearrange include headers (needed on some platforms). 1996-08-08 19:11:41 +00:00
Guido van Rossum 6412b1de5d Hack for Mac (where fabs is not usable as a function pointer). 1996-08-08 19:10:21 +00:00
Guido van Rossum 97867b2ce2 Add optional casts to free() calls. (Jack)
Set Tk variable argv0 to classname passed in to Tkapp_New.  (Fred)
1996-08-08 19:09:53 +00:00
Guido van Rossum 82df03e35f Rationalized instructions for _tkinter.c 1996-08-08 19:08:47 +00:00
Guido van Rossum 6554419e1b Also remove *.sl (AIX shared libs) in make clean. 1996-08-08 19:07:46 +00:00
Guido van Rossum 1dc19ba2ee Removed 1996-08-08 19:07:06 +00:00
Guido van Rossum a93b504a23 Latest AIX changes from Vlad 1996-08-08 19:06:31 +00:00
Guido van Rossum b4ae6a3999 Re-install aix files (what happened?) 1996-08-08 19:05:09 +00:00
Guido van Rossum 3bedce0185 removed old file 1996-08-08 18:58:45 +00:00
Guido van Rossum 9e43ae4770 Use Tcl/Tk 7.5/4.1 by default. 1996-08-01 00:56:03 +00:00
Guido van Rossum 02530b0f74 Changes for AIX shared libs 1996-07-31 22:43:38 +00:00
Guido van Rossum 32aa1a72b2 getprogramname --> Py_GetProgramName 1996-07-31 19:51:15 +00:00
Guido van Rossum 0c5e3c8d6a DESTLIB and MACHDESTLIB are now derived from variables set by the Makefile.
Clarified some comments.
1996-07-31 17:49:01 +00:00
Guido van Rossum 276de58927 Collect together all detailed installation directories. 1996-07-31 17:37:07 +00:00
Guido van Rossum 557d6d6608 Don't make an exception for NeXT (BBUM says it's no longer needed).
(But hypot() should really be defined in a separate file, triggered by
configure.)
1996-07-30 20:44:31 +00:00
Guido van Rossum 02ca3ab4f7 Remove "." from default path. Also rearrange so that SITEPATH comes
after DESTPATH.
1996-07-30 20:36:59 +00:00
Guido van Rossum 6e12d56cfd Don't have "." in the default path. 1996-07-30 20:36:12 +00:00
Guido van Rossum 2b65444b9f Converted to new style 1996-07-30 16:56:16 +00:00
Guido van Rossum 037b940cd7 Operators like __add__ 1996-07-30 16:55:54 +00:00
Guido van Rossum 63df09acfb Some NeXT changes (default certain symbols to others) 1996-07-30 16:55:34 +00:00
Guido van Rossum d3c1bd3931 Added operator.c. Moved errno.c.
Changes to PYTHONPATH so it includes VERSION
1996-07-30 16:54:03 +00:00
Guido van Rossum 704fef2268 Refinements to installation, now uses $(VERSION) etc. 1996-07-30 16:53:14 +00:00
Guido van Rossum 4daf6adfe1 Added version number to destination.
Forget about the trick to create directories through dependencies --
it's impossible to get it right in the light of parallellizing Make
implementations and the inability to specify dependencies between
directories (because creating the subdirectory modifies the parent).
1996-07-24 02:33:33 +00:00
Guido van Rossum 4dc6622057 Added Sam Rushing's errno module 1996-07-24 00:51:51 +00:00
Guido van Rossum dfe8ad969c Converted to new style names by Skip Montanaro 1996-07-24 00:51:20 +00:00
Guido van Rossum 9687a921c8 Different lines for bsddb module. 1996-07-24 00:42:42 +00:00
Guido van Rossum f1af3fe8eb Added simple-minded (i.e. leaking :-) putenv() interface, if os has it. 1996-07-23 19:18:10 +00:00
Guido van Rossum ed7253ca50 Added 3rd optional argument to translate(), a string of characters to delete.
Added maketrans(), a utility to create a translation table.
1996-07-23 18:12:39 +00:00
Guido van Rossum 450b9b33a2 Added Jim Fulton's "asharedmodule" target 1996-07-21 02:35:58 +00:00
Guido van Rossum be6da271a1 Use INT_MAX/LONG_MAX instead of non-ANSI LONG_BIT 1996-07-21 02:34:55 +00:00
Guido van Rossum 3d602e31b1 New submission by Fred Drake. 1996-07-21 02:33:56 +00:00
Guido van Rossum ac56b03f9a New style names for getprogramname and getargcargv 1996-07-21 02:33:38 +00:00
Guido van Rossum 3be7140d31 Rewritten keys() and has_key() to avoid memory leaks. 1996-07-21 02:32:44 +00:00
Guido van Rossum 9e720e390a complex -> Py_complex 1996-07-21 02:31:35 +00:00
Guido van Rossum 6f489d989d Slightly different Windows ifdefs 1996-06-28 20:15:15 +00:00
Guido van Rossum 919c576254 added comments about tcl/tk -l options 1996-06-28 20:13:08 +00:00
Guido van Rossum c012547142 Added plock() system call.
Changed test for Windows times() emulation.
1996-06-28 18:55:32 +00:00
Guido van Rossum 7d844a7c8a aix sharedlib helpers 1996-06-26 21:15:02 +00:00
Guido van Rossum 845547d54b Added CWI copyright.
Updated some comments.
Fixed bug in Merge() called with NULL args.
Get rid of TkDefaultAppName() -- it is not used anywhere.
Pass error message on when Appinit fails.
Create/Delete FileHandler assume fd is a socket on Windows.
1996-06-26 18:26:04 +00:00
Guido van Rossum 8d665e6b51 changed windows test symbols; removed debug printf from sockets 1996-06-26 18:22:49 +00:00
Guido van Rossum 8026febbd6 Made comment for getprogramname() more helpful. 1996-06-20 16:49:26 +00:00
Guido van Rossum be32c8921c More rational support for Windows (tested on Roj's NT 3.5 machine only).
Use PyArg_ParseTuple() where it makes sense.
1996-06-20 16:25:29 +00:00
Guido van Rossum fd03e2b4b1 Clear waitpid() status arg in case there's no process to report with
WNOHANG set.
1996-06-19 23:17:02 +00:00
Guido van Rossum 2bd37e6c9b Added more entries to create required target subdirectories for sharedinstall. 1996-06-17 17:33:11 +00:00
Guido van Rossum 529c963d36 Test for zero-length argument in capitalize(). 1996-06-17 16:59:33 +00:00
Guido van Rossum 26b310a3fd Added new.instance(class, dict). 1996-06-17 16:56:56 +00:00
Guido van Rossum 2745753b91 added capitalize() 1996-06-12 04:24:52 +00:00
Guido van Rossum 4f0fbf884b Yet another pass at fd2obj -- this time for Windows 1996-06-12 04:22:53 +00:00
Guido van Rossum c34c9a5001 provide access to $(exec_)prefix 1996-06-12 04:20:27 +00:00
Guido van Rossum 006bf91530 ntohs, ntohl, htons, htonl -- thanks to Lance 1996-06-12 04:04:55 +00:00
Guido van Rossum d639d4d6d6 more changes for Windows, sigh 1996-06-12 04:04:22 +00:00
Guido van Rossum 8bac546e11 Avoid core dump in resizestring() on read() with 0 bytes. 1996-06-11 18:38:48 +00:00
Guido van Rossum 65af28a0f4 Calculate length of AF_UNIX addr struct portably in getsockaddrarg(). 1996-06-11 18:36:33 +00:00
Guido van Rossum 53a9bf8164 Get rid of obsolete allowbroadcast().
Avoid core dumps in resizestring().
1996-06-11 18:35:24 +00:00
Guido van Rossum ab28c56fd3 Avoid core dump on symcomp(""). 1996-06-11 18:33:14 +00:00
Guido van Rossum 3c0b79ca0f A fcntl implementation for systems (like Solaris) without flock() call.
By Sjoerd.
1996-06-11 15:11:34 +00:00
Guido van Rossum 1835c4f1b4 Use correct field of sigaction struct 1996-05-29 14:15:19 +00:00
Guido van Rossum a0e71303d9 Changed NT -> MSC or WATCOM 1996-05-28 22:30:38 +00:00
Guido van Rossum 582646aecc grand renaming; added copyright to some files 1996-05-28 22:30:17 +00:00
Guido van Rossum ddcb36b5da Use ../install-sh to install files. 1996-05-24 21:14:44 +00:00
Guido van Rossum 9c8a0c4b1c Made all c_* symbols static. 1996-05-24 21:12:28 +00:00
Guido van Rossum 53d0de4b05 rename exported symbols with _Py_ prefix 1996-05-24 20:51:38 +00:00
Guido van Rossum 3d86cc0dbc make soundex_hash static 1996-05-24 20:50:57 +00:00
Guido van Rossum a4916fa54f Added mkfifo, ftruncate. Windows/PC changes. 1996-05-23 22:58:55 +00:00
Guido van Rossum dd96ca77da Be more careful about default args. 1996-05-23 22:57:54 +00:00
Guido van Rossum 2c26cfe776 Use struct _inittab def from import.h 1996-05-23 22:57:18 +00:00
Guido van Rossum 3539b1e919 Added flock(). 1996-05-23 22:56:38 +00:00
Guido van Rossum 7081cf54bf Microsoft C changes 1996-05-23 22:56:19 +00:00
Guido van Rossum 88661e8f41 Subtle Windows changes 1996-05-23 22:55:58 +00:00
Guido van Rossum fb0df944ca Use sigaction if possible 1996-05-23 22:55:35 +00:00
Guido van Rossum 5555854e85 Windows/PC changes 1996-05-23 22:54:50 +00:00
Guido van Rossum 5038412d0f Added __doc__ strings. Added get_soundex(). 1996-05-23 22:54:17 +00:00
Guido van Rossum bceeac8dc1 Watcom changes.
Add mktime() overflow test and make it NeXT robust by initializing
the structure from localtime().
1996-05-23 22:53:47 +00:00
Guido van Rossum 6878436366 Patch from the net for 4.1 file handler changes. 1996-05-16 17:17:31 +00:00
Guido van Rossum 54ac1891fb Add __sinit() call according to Jack. 1996-05-16 17:14:03 +00:00
Guido van Rossum dc1c64a148 remove unused variables 1996-02-27 15:21:19 +00:00
Guido van Rossum 1b66a4f01d default CLOCKS_PER_SEC to CLK_TCK if it exists 1996-02-25 04:50:33 +00:00
Guido van Rossum b0824db52c Made 2nd arg to mkdir optional 1996-02-25 04:50:32 +00:00
Guido van Rossum 1266a01e47 Include ncurses.h where needed 1996-02-25 04:50:31 +00:00
Guido van Rossum 468fc6af68 Include stdlib.h or declare getenv 1996-02-25 04:50:31 +00:00
Guido van Rossum 485f2da5a1 Add unsigned char cast 1996-02-25 04:50:30 +00:00
Guido van Rossum ec22c92e36 Changes needed to build with Tcl/Tk beta 2! 1996-02-25 04:50:29 +00:00
Guido van Rossum dfd428dd7e Changes to make it work with Tcl/Tk beta 1. 1996-02-25 04:46:40 +00:00
Jack Jansen 508537b9c9 Include GUSI.h if using gusi-sockets 1996-02-14 15:57:45 +00:00
Guido van Rossum 5416e20037 mark strftime as varargs 1996-02-13 00:14:09 +00:00
Guido van Rossum f4a5912d51 add remove==unlink; mark strftime as varargs 1996-02-13 00:12:56 +00:00
Guido van Rossum ad1f7eeb32 get rid of bogus name for init_tkinter() 1996-02-13 00:11:37 +00:00
Guido van Rossum 05a6d8f4c7 remove rcs history 1996-01-26 21:10:22 +00:00
Guido van Rossum e36e1fe516 support fast mode for gdmb 1996-01-26 21:08:01 +00:00
Jack Jansen 76c79e9ba8 Added 16-bit pixel support for some operations. 1996-01-22 14:55:15 +00:00
Jack Jansen ba1de3bafb Fixed off-by-one error in rle-decode, and allow whitespace in base64
ascii input (thanks to Donald Beaudry for pointing these out)
1996-01-22 10:47:15 +00:00
Guido van Rossum 00bd2e5853 adde cmath; added version numbers to tk/tcl libs 1996-01-12 01:40:19 +00:00
Guido van Rossum 3206268692 added default hypot() implementation 1996-01-12 01:39:11 +00:00
Guido van Rossum b123691384 64-bit patch 1996-01-12 01:38:49 +00:00
Guido van Rossum b28911cdef added new.classobj() 1996-01-12 01:38:22 +00:00
Guido van Rossum c0fd1c0b83 fix argcount bug for build_node_children 1996-01-12 01:37:02 +00:00
Guido van Rossum ca42b1673b clear addr buffer before calling getsockname 1996-01-12 01:36:05 +00:00
Guido van Rossum 71aa32f4af complex math 1996-01-12 01:34:57 +00:00
Jack Jansen 5d9579707f Allow '@' for ' ' in uuencoded files. 1995-11-14 10:35:19 +00:00
Jack Jansen 40b546d40e Initialize GUSI on the mac. 1995-11-14 10:34:45 +00:00
Jack Jansen 34cc5c31e8 Fix to load needed resources on a mac 1995-10-31 16:15:12 +00:00
Jack Jansen ba0311ecff Renamed module tkinter to _tkinter, moved source to _tkinter.c 1995-10-23 14:34:14 +00:00
Guido van Rossum b50667d229 rename binasciimodule.c -> binascii.c; disable parsermodule.c 1995-10-12 00:41:40 +00:00
Guido van Rossum d9e9f9c05d Fred Drake's new parser module 1995-10-11 17:35:38 +00:00
Guido van Rossum c1822a4dd1 changes by Steve Clift 1995-10-11 16:15:28 +00:00
Sjoerd Mullender 7d0590b544 Removed declaration of sginap because it conflicted with a header file. 1995-10-11 08:47:28 +00:00
Sjoerd Mullender 4237efc7f0 Propagate variable calls both to the linker and the compiler. 1995-10-11 08:45:15 +00:00
Guido van Rossum 903f487684 add BGN/END_SAVE macros around fcntl/ioctl calls 1995-10-07 19:18:22 +00:00
Jack Jansen 84bbc2e3e3 Added base64 support 1995-10-04 16:38:44 +00:00
Jack Jansen 8ccfc93c2f Removed unused variable 1995-10-03 14:39:44 +00:00
Guido van Rossum 275fbe21c9 Move some stuff around so customizations in Setup take precedence 1995-09-30 17:01:49 +00:00
Guido van Rossum 896fc7ed4a re-enable new.code(...) with new args 1995-09-30 17:01:02 +00:00
Guido van Rossum 64b24fb062 clear quitMainLoop when we fall through the main loop 1995-09-30 17:00:24 +00:00
Guido van Rossum 9722ad8883 Mac changes 1995-09-22 23:49:28 +00:00
Guido van Rossum 7c53b77733 plug some leaks 1995-09-13 18:39:47 +00:00
Guido van Rossum 1c20648ba2 added SITEPATH and DESTPATH variables 1995-09-13 18:39:04 +00:00
Guido van Rossum bbc3410fa8 added 5th return item, clock time, to posix.times() 1995-09-13 17:39:51 +00:00
Guido van Rossum a3127e8e11 added strop.translate(s, table) 1995-09-13 17:39:06 +00:00
Guido van Rossum 8d8c1eeed7 added time.strftime() 1995-09-13 17:38:35 +00:00
Jack Jansen 0223aa11d8 Obscure bugfix 1995-08-31 13:44:23 +00:00
Guido van Rossum f45e586ed0 fix typo in bsddb entry 1995-08-30 23:44:41 +00:00
Guido van Rossum 1100dca602 Initial revision 1995-08-30 23:43:03 +00:00
Guido van Rossum d639b45ed6 dbhash -> bsddb 1995-08-28 02:59:06 +00:00
Guido van Rossum e03f277a22 fix bug in close() 1995-08-28 02:58:31 +00:00
Guido van Rossum 66017aa1b8 fix leaks in keys(); fix bug in close() 1995-08-28 02:58:00 +00:00
Jack Jansen eaeb1c825d Added missing 'leftchar' initializer. 1995-08-14 12:17:57 +00:00
Jack Jansen dc977a99e0 Shuffled include's around (name conflict on Mac wrt teclick()) 1995-08-14 12:17:18 +00:00
Guido van Rossum 45a910475c added MACHDEP back in 1995-08-08 14:18:12 +00:00
Jack Jansen 727811907c Helper module for uuencode and binhex coders 1995-08-07 14:34:15 +00:00
Guido van Rossum 667d704997 Initial revision 1995-08-04 04:20:48 +00:00
Guido van Rossum 37ba0bc50b split config.c in 1000 parts; new main; new unfinished objective-C module 1995-08-04 04:20:45 +00:00
Guido van Rossum b158909b45 \temporary 'fix' for brokenness 1995-07-28 16:44:53 +00:00
Guido van Rossum 07b14dd8bc add locking where it exists 1995-07-26 17:33:44 +00:00
Guido van Rossum ef38b78f94 use newgetargs 1995-07-26 17:33:10 +00:00
Guido van Rossum f8afdcfef0 improved comments for curses, dbhash 1995-07-26 17:31:41 +00:00
Guido van Rossum e42fc2fd37 use getnewargs where it makes sense 1995-07-26 17:29:45 +00:00
Guido van Rossum cf1025ba0d fixed arg checking for keys() and close() 1995-07-18 18:33:09 +00:00
Guido van Rossum 79ae53e8f0 Initial revision 1995-07-18 18:23:44 +00:00
Guido van Rossum ae75f4955e added dbhash; Tk is now officially at 4.0 1995-07-18 18:18:11 +00:00
Guido van Rossum 24f42ac74c suppress . and .. in listdir return value 1995-07-18 18:16:52 +00:00
Guido van Rossum 064a62bc8a err() should be varargs -- and fix one call 1995-07-07 22:39:14 +00:00
Guido van Rossum ef4ee62a0f added getpalatform() 1995-07-07 22:38:14 +00:00
Guido van Rossum 807b7bec06 normalized flag arg and made flag, mode default args; minor cosmetics 1995-07-07 22:37:11 +00:00
Guido van Rossum 55ea8a7b5b pass $PLATFORM into config.c 1995-07-07 22:35:21 +00:00
Guido van Rossum 36bc68024f sys/wait.h; NeXT changes (no unistd, utime; getcwd?) 1995-06-14 22:54:23 +00:00
Guido van Rossum 4a2698648e fix NL for Linux bash bug; special processing for -u options 1995-06-14 22:52:06 +00:00
Guido van Rossum ac56297421 edited RCS cruft 1995-06-14 22:49:20 +00:00
Guido van Rossum 31affb2e42 new modules soundex.c and environment.c 1995-06-14 22:31:38 +00:00
Guido van Rossum 30b6b2b032 add setblocking(); NT changes; null-terminate Unix path 1995-06-14 22:28:08 +00:00
Guido van Rossum 6e69fc7a72 removed rcs cruft 1995-06-14 22:23:17 +00:00
Guido van Rossum 9caac91641 NeXT doesn't like me to declare hypot(double, double) 1995-06-14 22:17:37 +00:00
Sjoerd Mullender 3db845b6f7 Make constants from cl.h include file available as module variables.
Also added Irix 5.3 constants.
1995-05-17 11:16:52 +00:00
Guido van Rossum 009e79bf02 unified join(fields), split(fields) 1995-05-03 17:40:23 +00:00
Guido van Rossum f4449def3b small clarifications / lay out 1995-04-10 11:37:18 +00:00
Guido van Rossum 74ee2878b6 move decl of realmain() out of #ifdef 1995-03-30 11:00:56 +00:00
Guido van Rossum de4e124c9b add WNOHANG 1995-03-30 10:56:54 +00:00
Guido van Rossum 07432c0ef6 fix subtle refcnt bug 1995-03-29 16:47:45 +00:00
Sjoerd Mullender 542659bbd0 Use newgetargs instead of getargs.
Check if objects are closed in getattr function instead of in each
method.
Removed functions sbtoa and timetoa.
Added functions msftoframe.
Added variables that used to be in standard module CD.
1995-03-28 12:06:23 +00:00
Sjoerd Mullender 14ece169ab Added some (method) casts. 1995-03-17 12:18:38 +00:00
Guido van Rossum 385e7c6919 implement exit_thread through SystemExit exception 1995-03-17 10:42:27 +00:00
Guido van Rossum fbd30e9159 added firstkey(), nextkey(), reorganize() methods 1995-03-16 16:07:34 +00:00
Guido van Rossum 27e177d005 fixed up comments describing interface 1995-03-16 15:43:47 +00:00
Guido van Rossum f4b012a9e0 use PyCallable_Check; split some lines 1995-03-16 15:43:29 +00:00
Guido van Rossum cc08112ff4 tiny additions for Windows 3.1 1995-03-14 15:05:41 +00:00
Guido van Rossum 6b14491bb4 mode and optional bufsize for makefile() 1995-03-14 15:05:13 +00:00
Guido van Rossum b045afc711 plugged some memory leaks (Steve Clift) 1995-03-14 15:04:40 +00:00
Guido van Rossum e333d167fe 1995 copyright 1995-03-14 15:04:19 +00:00
Guido van Rossum 6f4f5f7892 some more changes for NT and Borland 1995-03-10 15:14:41 +00:00
Guido van Rossum caffcdfc8c moved some stuff around for fewer confusion 1995-03-10 15:14:13 +00:00
Guido van Rossum 06d511ddf5 added PyErr_SetInterrupt(); NT ifdefs 1995-03-10 15:13:48 +00:00
Guido van Rossum a320fd308c changes for MPW 1995-03-09 12:14:15 +00:00
Guido van Rossum b6fe7048e7 add casts to malloc() calls 1995-03-09 12:13:43 +00:00
Guido van Rossum ad0ee8369c changes for NT/Borland C 1995-03-01 10:34:45 +00:00
Guido van Rossum 6964f73b85 include mymath.h 1995-03-01 10:34:29 +00:00
Guido van Rossum 585c6dcf88 more fixes by Steve Clift 1995-02-24 13:45:43 +00:00
Guido van Rossum 295d171650 explicitly init flags in methodlists 1995-02-19 15:55:19 +00:00
Guido van Rossum 8bdd33386d changes for CFM-68K mac 1995-02-18 14:53:14 +00:00
Guido van Rossum 6b13ba22d9 continue after failing for loop 1995-02-17 15:12:13 +00:00
Guido van Rossum 9e575ff7d8 remove bogus ## in front of gcc __VERSION__ 1995-02-17 15:11:57 +00:00
Guido van Rossum a38a503576 fix comment opener after #endif 1995-02-17 15:11:36 +00:00
Guido van Rossum 5f05eb421a add INADDR_* symbols 1995-02-17 15:11:07 +00:00
Guido van Rossum 8fbf82b26e bump version, add __version__ back in 1995-02-17 13:54:04 +00:00
Guido van Rossum 8573847a4d Steve Clifts version 1995-02-17 13:50:17 +00:00
Guido van Rossum d4837daa8d added some clarifying comments about -lcrypt and Tk 4.0 1995-02-14 09:43:25 +00:00
Guido van Rossum ee1813de2a fix stupid bug in strip and split 1995-02-14 00:58:59 +00:00
Guido van Rossum 57c33af90e tack compiler name/version to version string if known 1995-02-13 17:10:11 +00:00
Guido van Rossum 7f7f274839 use Py_CHARMASK 1995-02-10 17:01:56 +00:00
Guido van Rossum 760dd1031a add some casts 1995-02-10 17:01:08 +00:00
Guido van Rossum a3c3f2c5b0 use PyCallable_Check; export TK_VERSION and TCL_VERSION strings;
some Tk 4.0 specific changes
1995-02-07 15:41:02 +00:00
Guido van Rossum 3fdf58b5cc add socket related constants 1995-02-07 15:39:52 +00:00
Guido van Rossum d1b3481d69 correct typo in utime stub 1995-02-07 15:39:29 +00:00
Guido van Rossum 03e8ffa345 patches for NeXT weirdness 1995-02-07 15:38:56 +00:00
Guido van Rossum f5c6d47e96 clear errors between failing calls to PyArg_Parse 1995-02-07 15:38:32 +00:00
Jack Jansen 971e1df3df Quick hack so PowerPC macs can access system structures 1995-02-02 14:29:10 +00:00
Guido van Rossum d503913594 plug leak and improve error handling in dbm_keys() 1995-01-30 12:45:38 +00:00
Jack Jansen d56c109272 Changed the way mac mainloop event checking is turned off 1995-01-27 14:44:16 +00:00
Jack Jansen 3d7f6bd3b7 Added a global 'stdwin is active' flag. 1995-01-26 16:40:10 +00:00
Guido van Rossum f8803dd6c3 uname 64-bit fix 1995-01-26 00:37:45 +00:00
Guido van Rossum 39cb5ce85d unused vars 1995-01-26 00:37:10 +00:00
Guido van Rossum 1253960407 mem leak 1995-01-26 00:37:01 +00:00
Guido van Rossum 8239f0ffa0 fix leaks 1995-01-22 00:49:01 +00:00
Guido van Rossum 62de97f29c make routines static 1995-01-22 00:48:41 +00:00
Guido van Rossum 27fda28973 cleanup 1995-01-22 00:48:16 +00:00
Guido van Rossum 811fbbc4ce create $(DESTSHARED) library if needed 1995-01-22 00:47:59 +00:00
Guido van Rossum ec25b91ba3 rename sigcheck so signal handling works again 1995-01-22 00:46:57 +00:00
Guido van Rossum cd938fc5a1 Made some more things static, and other cleanup for new naming scheme 1995-01-17 16:13:48 +00:00
Guido van Rossum 087579ea51 added $& to $(LIB) target for Sequent 1995-01-17 16:11:29 +00:00
Guido van Rossum caa6380886 The great renaming, phase two: all header files have been updated to
use the new names exclusively, and the linker will see the new names.
Files that import "Python.h" also only see the new names.  Files that
import "allobjects.h" will continue to be able to use the old names,
due to the inclusion (in allobjects.h) of "rename2.h".
1995-01-12 11:45:45 +00:00
Guido van Rossum a3c04b003f cosmetics 1995-01-12 11:29:01 +00:00
Guido van Rossum b9418686ba rearrange declarations somewhat 1995-01-12 11:28:16 +00:00
Guido van Rossum a597dde3f1 cosmetic changes so these modules will work with the strict new naming scheme 1995-01-10 20:56:29 +00:00
Guido van Rossum 6c1874fc2b changes for C++ (Tim MacKenzie) 1995-01-10 17:43:33 +00:00
Guido van Rossum 062cfb0c4e added interface to Tk_DoOneEvent (R Lindsay Todd) 1995-01-10 17:42:51 +00:00
Guido van Rossum ca9b323c52 better test for existence of hstrerror() 1995-01-10 16:30:54 +00:00
Guido van Rossum a6a1e536ac added bufsize parameter to fdopen and popen 1995-01-10 15:36:38 +00:00
Guido van Rossum 37431fbbd0 initmodule3 -> initmodule3 1995-01-09 17:49:26 +00:00
Guido van Rossum f9888eb2fb totally revamped 1995-01-07 11:50:36 +00:00
Guido van Rossum 9558825dad do not call newmethodobject directly 1995-01-07 11:50:04 +00:00
Guido van Rossum 6d023c98b0 Added 1995 to copyright message.
bltinmodule.c: fixed coerce() nightmare in ternary pow().
modsupport.c (initmodule2): pass METH_FREENAME flag to newmethodobject().
pythonrun.c: move flushline() into and around print_error().
1995-01-04 19:12:13 +00:00
Guido van Rossum 524b588553 Added 1995 to copyright message.
Setup.in: clarified Tk comments somewhat.
structmodule.c: use memcpy() instead of double precision assignment.
1995-01-04 19:10:35 +00:00
Guido van Rossum 5799b52008 Added 1995 copyright.
object.h: made sizes and refcnts signed ints.
stringobject.h: make getstrsize() signed int.
methodobject.h: add METH_VARARGS and METH_FREENAME flag bit definitions.
1995-01-04 19:06:22 +00:00
Guido van Rossum 3bbc62e9c2 Another bulky set of minor changes.
Note addition of gethostbyaddr() and improved repr() for sockets,
renaming of md5.md5() to md5.new(), and fixing of leaks in threads.
1995-01-02 19:30:30 +00:00
Jack Jansen 44fff3cfb5 Added missing initialization 1994-12-14 12:55:17 +00:00
Guido van Rossum f34cadda28 added timer and file callbacks and global mainloop and quit fns 1994-11-10 22:50:21 +00:00
Guido van Rossum 5e8e8327f8 don't use backslashes for continuation lines 1994-11-10 22:49:52 +00:00
Guido van Rossum 132f5c2d77 don't fail moving empty list of shared modules 1994-11-10 22:44:15 +00:00
Guido van Rossum 05bf280d47 clarifications 1994-10-20 22:01:38 +00:00
Guido van Rossum 411a8bd799 add hypot() 1994-10-20 22:00:28 +00:00
Guido van Rossum 2ce15a59f7 always make sharedmods 1994-10-20 21:59:38 +00:00
Guido van Rossum 89910656d1 makesetup should use $cc not cc 1994-10-20 21:58:30 +00:00
Guido van Rossum 6493389a8c distinguish between getpgrp and setpgrp arg requirements 1994-10-20 21:56:42 +00:00
Sjoerd Mullender 2abc49458b Free was called with a struct as argument instead of a field from the
struct.
1994-10-13 09:11:13 +00:00
Sjoerd Mullender 4eba0c9b91 Escaped $(LDSHARED) in a string. 1994-10-13 09:09:05 +00:00
Guido van Rossum 73624e9c3b new style 1994-10-10 17:59:00 +00:00
Guido van Rossum c3706076ee Add pointer to GPL-free MP library 1994-10-06 16:12:06 +00:00
Guido van Rossum 0c57abb7ce Removed this module (will be distributed with Jack's package) 1994-10-06 15:39:55 +00:00
Guido van Rossum e8a1e8cef3 Fix getpythonpath() fix; never #include frozen.c. 1994-10-05 14:48:22 +00:00
Guido van Rossum 6e890b86a8 Save static pointer to malloc'ed buffer 1994-10-05 12:25:12 +00:00
Guido van Rossum 14ed0b2cd3 * Modules/xxmodule.c: integrated with xxobject.c by Jack
* Modules/(posix,socket}module.c: more NT changes
1994-09-29 09:50:09 +00:00
Guido van Rossum be9f149574 Various layout changes; some extra warnings; for IRIX, IRIX 5 is the default. 1994-09-21 12:31:05 +00:00
Sjoerd Mullender cc1b8d5030 Specified libraries for flmodule. 1994-09-21 11:51:10 +00:00
Sjoerd Mullender bf677edc45 Put a comment start symbol at the start of a comment that lacked one. 1994-09-15 14:50:05 +00:00
Guido van Rossum 602099a756 * various modules: #include "Python.h" and remove most remporary
renaming hacks
1994-09-14 13:32:22 +00:00
Guido van Rossum f5e0ea89db * Modules/Setup.in: define PYTHONPATH using COREPYTHONPATH for
extensions; add -lm to math module definition

	* Modules/Makefile.pre.in: remove *.so and so_locations on clobber
1994-09-12 15:35:36 +00:00
Sjoerd Mullender 73737abead If an argument on a Setup line starts with `$', treat it as a library,
but only if it does not end in a known suffix.
1994-09-12 15:31:01 +00:00
Guido van Rossum 7cc5abd454 Support shared library creation. 1994-09-12 10:42:20 +00:00
Guido van Rossum 9adae8e182 Steen Lumholt's termios interface. 1994-09-12 10:41:22 +00:00
Guido van Rossum 43021932bc Added _getpty interface. 1994-09-12 10:40:46 +00:00
Guido van Rossum e4485b064d Setup.in: added tkinter; rearranged the definition of PYTHONPATH so
that the module-specific components are in the section for that
module.

cursesmodule.c: patched it so it actually works.

tkintermodule.c: call Py_AtExit instead of atexit().

signalmodule.c: converted to new naming style; added
BGN/END SAVE around pause() call.

socketmodule.c: added setblocking() after Tommy Burnette.
1994-09-07 14:32:49 +00:00
Sjoerd Mullender a142613678 Added minmax function. 1994-09-06 16:19:33 +00:00
Guido van Rossum 56bf235d4c Lance's release 1.1 -- fixes some problems with 1.0 1994-08-31 22:06:24 +00:00
Guido van Rossum fbea2f3e7c Release 1.0 by Lance 1994-08-31 22:05:27 +00:00
Guido van Rossum f6971e2958 Lance has converted his modules to the new naming conventions, and
contributed a curses interface.
Setup.in uses .c instead of .o now.
1994-08-30 12:25:20 +00:00
Guido van Rossum 224b289efa * Modules/makesetup: bugfix: add objects from sources to OBJS 1994-08-30 09:27:16 +00:00
Guido van Rossum 1d5735e846 Merge back to main trunk 1994-08-30 08:27:36 +00:00
Guido van Rossum b078ce10d4 Move #endif for NT 1994-08-29 14:01:43 +00:00
Guido van Rossum 7b1e974b4b Makefile.pre.in: add $(OPT) to link command
audioop.c: fix for MPW
config.c.in: save original argc/argv for Lance
rotormodule.c: new coding conventions
timemodule.c: add casts for Lance
1994-08-29 10:46:42 +00:00
Guido van Rossum 794b93ea8a * Modules/Setup.*: removed all except Setup.in (huh? I thought
I'd done that already?!); disable gdbm by default
	* configure.in, */Makefile*.in: OPT can now be specified in the
	env at configure time and will then be put in all Makefiles as
	default
	* */Makefile*.in: remove lib*.a before adding to it
1994-08-23 13:51:25 +00:00
Guido van Rossum aa0f4c73e5 * Modules/signalmodule.c: added pause(). 1994-08-23 13:49:37 +00:00
Guido van Rossum 0b498beea2 * Modules/makesetup: support C++ files now; these should be given
as file.C or file.cc or file.c++; C files can be given as file.c
	(instead of file.o, which is still supported)
1994-08-23 13:49:15 +00:00
Guido van Rossum 794d81313b * Modules/posixmodule.c: some more NT changes 1994-08-23 13:48:48 +00:00
Guido van Rossum 9731d4470f * Modules/config.c.in: change mac specific things 1994-08-23 13:48:30 +00:00
Guido van Rossum 72824bab44 Move all code from version.c into config.c 1994-08-19 12:03:04 +00:00
Guido van Rossum 0c7095484e Changes for Mac 1994-08-19 12:01:32 +00:00
Guido van Rossum 6a3eb5f14d Changes to make it work and compile on NT, by Mark Hammond.
(NT changes for posixmodule.c re-invented by Guido.)
1994-08-18 15:42:46 +00:00
Guido van Rossum 5806a4f5c3 * Modules/stropmodule.c: implement find/rfind instead of
index/rindex (raising and catching an exception is much more
	expensive than returning and testing -1)
1994-08-17 13:15:46 +00:00
Guido van Rossum 9bb4fd6061 * tkintermodule.c (*FileHandler): generalize to arbitrary file ids
and objects that hav a fileno() method; fix bug in FileHandler
	(should call XDECREF instead of DECREF)
1994-08-09 14:15:19 +00:00
Guido van Rossum 4b4c664d2e * Modules/{Setup.in, gdbmmodule.c}, Doc/{lib,libgdbm}.tex: added
Anthony Baxter's gdbm module (derived from Jack's dbm module)
1994-08-08 08:06:37 +00:00
Guido van Rossum c65a525cdc * Modules/{Setup.in,Makefile.pre.in}: renamed some modules to
shorter names (dropped the "module" from the name): sunaudiodev,
	imgformat, audioop, imageop, imgfile

	* Modules/stropmodule.c (strop_rindex): make rindex('abc', '') do
	the right thing (i.e. return 3 instead of 0)

	* Modules/socketmodule.c: disabled allowbroadcast() socket method
1994-08-05 13:44:50 +00:00
Guido van Rossum e2ca9bd156 * tkintermodule.c: OK, I've fixed the "tty" problem. You're right
no need for the stdin handler, a Tk_DoOneEvent(TK_DONT_WAIT) did
	the trick.  I've included a diff to tkintermodule.c.
1994-08-03 08:01:43 +00:00
Guido van Rossum b6775db241 Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
Guido van Rossum e44e373cbc Added some names to Setup.in, and added syslogmodule.c.
posixmodule.c: use pclose, not fclose!
selectmodule.c: trap negative fileno's, change some error messages.
stropmodule.c: change semantics of rindex to match string.py.
1994-07-14 13:56:50 +00:00
Guido van Rossum d308e2ba3e * tkintermodule.c
(PyInit_tkinter): Only create stdin file handler when stdin
	 is a tty.
	 (Tkinter_Cleanup): New function.  This is an exit handler that
	 cleanup Tk.
1994-07-07 09:25:12 +00:00
Guido van Rossum f713247ed7 Initial revision 1994-06-27 08:00:16 +00:00
Guido van Rossum 7687522309 * tkintermodule.c (Tkapp_New): Remove #ifdef WITH_APPINIT.
* tkintermodule.c (FileHandler): Make arg a tuple; bug found
	by <tnb2d@cs.virginia.edu>.  Call the Python file handler
	function with (file, mask) argument.  Fix a few of my refcnt bugs.
1994-06-27 07:59:42 +00:00
Guido van Rossum bb4ba12242 * Modules/signalmodule.c: added thread compatibility (only main
thread uses signals); much improved efficiency; intrcheck()
doesn't call sigcheck() but only tests and clears the SIGINT
tripped flag.
1994-06-23 11:25:45 +00:00
Guido van Rossum 20882d5067 Split pwd in pwd and grp; added imgformat (by Jack) 1994-06-23 11:15:44 +00:00
Guido van Rossum 1846882254 Initial revision 1994-06-20 07:49:28 +00:00
Guido van Rossum 6299d1ee03 Speed up checking for signals and define intrcheck differently 1994-05-31 12:51:13 +00:00
Guido van Rossum 34162a123a Added some new modules 1994-05-23 12:37:57 +00:00
Guido van Rossum 398d9fec3c New experimental modules -- signal and sybase 1994-05-11 08:59:13 +00:00
Guido van Rossum e4c6131baa crypt module (Steve M's) 1994-05-06 14:25:39 +00:00
Guido van Rossum 094183ebeb At the release of 1.0.1. 1994-02-15 16:04:53 +00:00
Guido van Rossum cbcd8d796f Make more robust against Minix and Mac 1994-01-14 16:55:50 +00:00
Guido van Rossum 4de6cbccf0 new file, setup for minix 1994-01-14 16:55:10 +00:00
Guido van Rossum 7590193909 Add colon to TESTPATH (oops!) 1994-01-13 16:03:27 +00:00
Guido van Rossum 42f69dab7e Added TESTPATH 1994-01-13 16:01:38 +00:00
Guido van Rossum 6eb1d4a4da Clarified comments about build process.
Removed whitespace from variables used to build PYTHONPATH.
1994-01-11 11:31:44 +00:00
Sjoerd Mullender 8b03cae9a8 Integers are specified as "i" and not as "d". 1994-01-07 11:47:39 +00:00
Guido van Rossum 7dd31d0608 Makefile.pre.in (renamed from Makefile.in.in), makesetup: changes to
support new build process and VPATH
Setup*: disable nis and fix comments
rest: fix compiler warnings
1994-01-04 22:08:35 +00:00
Sjoerd Mullender 93fcb9bbbd One NULL should have been 0. 1994-01-03 14:03:25 +00:00
Guido van Rossum 4b35ef5297 Implemented sort of a solution for PYTHONPATH.
Added Setup.guido with my own preferences.
1994-01-03 01:26:03 +00:00
Guido van Rossum 116857ca01 Added George Neville-Neil's timing module 1994-01-02 23:22:21 +00:00
Guido van Rossum a1c996c9d6 1994 Copyright 1994-01-02 02:11:40 +00:00
Guido van Rossum fba715ab6c Added some files to new module 1994-01-02 00:26:09 +00:00
Sjoerd Mullender 0d2d397bc5 Added function ttob. 1993-12-24 14:51:14 +00:00
Guido van Rossum be0e9420a1 New files. 1993-12-24 10:32:00 +00:00
Sjoerd Mullender 92fa23fd6d ANSIfied somewhat. 1993-12-24 10:05:51 +00:00
Sjoerd Mullender c4f169cc5a rgbimgmodule.c, Makefile, config.c: new module to read RGB image files.
Does not need any SGI-specific libraries.
cgen.py, cstubs, Makefile: Generate glmodule.c differently so that it
	can be compiled using an ANSI compiler.
1993-12-21 17:06:12 +00:00
Sjoerd Mullender 7030b1ff2d almodule.c: added close method, equivalent to closeport.
thread.h: use PROTO instead of _P for prototypes.
1993-12-20 17:26:34 +00:00
Guido van Rossum 248a50c168 * Grammar: corrected old typo (class instead of 'class')
* dosmodule.c: MSDOS specific stuff from posixmodule.c.
* posixmodule.c: removed all MSDOS specific stuff.
* tokenizer.h, parsetok.h: in prototypes, don't mix named and unnamed
  parameters (MSC doesn't like this).
1993-12-20 12:53:10 +00:00
Guido van Rossum 67a5fdbcc2 * mpzmodule.c: cast some methods to the proper type.
* traceback.c (tb_print): use sys.tracebacklimit as a maximum number of
  traceback entries to print (default 1000).
* ceval.c (printtraceback): Don't print stack trace header -- this is now
  done by tb_print().
1993-12-17 12:09:14 +00:00
Sjoerd Mullender c4801ed513 Added minmax function:
-- function of module audioop: minmax (FRAGMENT, WIDTH)
    Minmax returns a tuple consisting of the minimum and maximum
    values of all samples in the sound fragment.
1993-12-13 12:06:27 +00:00
Sjoerd Mullender 66bca326cb Port to Solaris 2.3. 1993-12-03 16:54:45 +00:00
Guido van Rossum b376a4ad18 * timemodule.c: Add hack for Solaris 2.
* posixmodule.c: don't prototype getcwd() -- it's not portable...
* mappingobject.c: double-check validity of last_name_char in
  dict{lookup,insert,remove}.
* arraymodule.c: need memmove only for non-STDC Suns.
* Makefile: comment out HTML_LIBS and XT_USE by default
* pythonmain.c: don't prototype getopt() -- it's not standardized
* socketmodule.c: cast flags arg to {get,set}sockopt() and addrbuf arg to
  recvfrom() to (ANY*).
* pythonrun.c (initsigs): fix prototype, make it static
* intobject.c (LONG_BIT): only #define it if not already defined
* classobject.[ch]: remove all references to unused instance_convert()
* mappingobject.c (getmappingsize): Don't return NULL in int function.
1993-11-23 17:53:17 +00:00
Guido van Rossum c45611d0e3 * import.c (get_module): total rewrite, to ensure proper search order: for
each dir in sys.path, try each possible extension.  (Note: C extensions
  are loaded before Python modules in the same directory, to allow having
  a C version used when dynamic loading is supported and a Python version
  as a back-up.)
* import.c (reload_module): test for error from getmodulename()
* moduleobject.c: implement module name as dict entry '__name__' instead
  of special-casing it in module_getattr(); this way a module (or
  function!) can access its own module name, and programs that know what
  they are doing can rename modules.
* stdwinmodule.c (initstdwin): strip ".py" suffix of argv[0].
1993-11-17 22:58:56 +00:00
Guido van Rossum 52f2c05401 * parsermodule.c, Makefile, config.c: rudimentary interface to the Python
parser.
* mappingobject.c (lookmapping): 'freeslot' was never used due to a bug in
  the code.
1993-11-10 12:53:24 +00:00
Guido van Rossum a3d78fb268 * posixmodule.c: added set{uid,gid}.
* {tuple,list,mapping,array}object.c: call printobject with 0 for flags
* compile.c (parsestr): use quote instead of '\'' at one crucial point
* arraymodule.c (array_getattr): Added __members__ attribute
1993-11-10 09:23:53 +00:00
Guido van Rossum c600411755 * mpzmodule.c: removed redundant mpz_print function.
* object.[ch], bltinmodule.c, fileobject.c: changed str() to call
  strobject() which calls an object's __str__ method if it has one.
  strobject() is also called by writeobject() when PRINT_RAW is passed.
* ceval.c: rationalize code for PRINT_ITEM (no change in function!)
* funcobject.c, codeobject.c: added compare and hash functionality.
  Functions with identical code objects and the same global dictionary are
  equal.  Code objects are equal when their code, constants list and names
  list are identical (i.e. the filename and code name don't count).
  (hash doesn't work yet since the constants are in a list and lists can't
  be hashed -- suppose this should really be done with a tuple now we have
  resizetuple!)
1993-11-05 10:22:19 +00:00
Guido van Rossum 32be3a7a88 Fix stupib bug in concatenation 1993-11-05 10:16:27 +00:00
Guido van Rossum c6dcc9f407 Added execve; change getstrarg into getargs with "s" format 1993-11-05 10:15:19 +00:00
Guido van Rossum 572d2d994d Fix memory leaks in join & joinfields 1993-11-05 10:14:49 +00:00
Guido van Rossum e77a757094 * nismodule.c: database keys and values can contain null bytes. be more
careful about these.
* arraymodule.c: added 8 byte swap; added 'i' format character; added
  reverse() method; rename read/write to fromfile/tofile.
* config.c: Set version to 0.9.9++.
* rotormodule.c (r_rand): declare k1..k5 as unsigned longs so the shifts
  will have a well-defined effect independent of word size.
* bltinmodule.c: renamed bagof() to filter().
1993-11-03 15:01:26 +00:00
Sjoerd Mullender 78ed420314 Fixed a couple of bugs: getargs doesn't use % escapes, and seconds
must be set after timeout is initialized.
1993-11-02 15:34:23 +00:00
Guido van Rossum b73cc04e62 * ceval.c, longobject.c, methodobject.c, listnode.c, arraymodule.c,
pythonrun.c: added static forward declarations
* pythonrun.h, ceval.h, longobject.h, node.h: removed declarations of
  static routines
1993-11-01 16:28:59 +00:00
Guido van Rossum c7a22703e7 * selectmodule.c (select_select): timeout argument may be None with same
meaning as no 4th argument
1993-11-01 16:27:16 +00:00
Guido van Rossum c70b61fe6d Hacks for NEXTSTEP. 1993-11-01 16:23:18 +00:00
Guido van Rossum 0667626694 Replace <<-13 by >>13. Leave old code in #ifdef BUGGY_CODE_BW_COMPAT. 1993-11-01 16:20:18 +00:00
Guido van Rossum 13ecc7a1a2 Simplify life for md5: include (slightly modified) md5.h and md5c.c
from RFC 1321 here, and point to that RFC instead of a non-existant
incompatible file on rsa.com.
1993-11-01 16:19:05 +00:00
Guido van Rossum ee9012f58f Added rindex(). index() and rindex() interpret negative start index
as normal indexing does.
1993-10-26 15:23:55 +00:00
Guido van Rossum 06191530b6 Work around a bug in the DEC alpha OSF/1 C preprocessor. 1993-10-26 15:22:37 +00:00
Guido van Rossum 89b3325dc4 * import.c (MAGIC): Changed magic word to avoid confusion about exec
function vs. exec statement
* bltinmodule.c: renamed the module to __builtin__.
* posixmodule.c (posix_execv): renamed exec --> execv since it is now a
  reserved word.
1993-10-22 14:26:06 +00:00
Sjoerd Mullender 3bb8a05947 Several optimizations and speed improvements.
cstubs: Use Matrix type instead of float[4][4].
1993-10-22 12:04:32 +00:00
Guido van Rossum cacd9579d4 * stdwinmodule.c (stdwin_done): interface to shutdown stdwin (now this is
no longer done by config.c).
* stdwinmodule.c (initstdwin), config.c (initall): get command line
  arguments from sys.argv instead of special-casing stdwin in config.c
* import.c (get_module): fix core dump when foomodule.o does not define
  initfoo().
* ChangeLog: documented changes by Sjoerd.
1993-10-18 11:44:47 +00:00
Guido van Rossum 21d335ed9e Makefile, import.c: Lance's alternative module search (allow .pyc file
without .py file); Bill's dynamic loading for SunOS using shared
libraries.

pwdmodule.c (mkgrent): remove DECREF of uninitialized variable.

classobject.c (instance_getattr): Fix case when class lookup returns
unbound method instead of function.
1993-10-15 13:01:11 +00:00
Sjoerd Mullender a9c3c22c33 * Extended X interface: pixmap objects, colormap objects visual objects,
image objects, and lots of new methods.
* Added counting of allocations and deallocations of builtin types if
  COUNT_ALLOCS is defined.  Had to move calls to NEWREF down in some
  files.
* Bug fix in sorting lists.
1993-10-11 12:54:31 +00:00
Sjoerd Mullender d96ec44f38 Bug fix: check whether call succeeded *after* the call. 1993-09-14 08:37:39 +00:00
Sjoerd Mullender f64992e95d * clmodule.c (doParams): free PVbuffer in error condition.
* frameobject.c (newframeobject): initialize ob_type if taking entry
  from the free list, since it is zeroed out when DEBUG is defined.
1993-08-03 15:11:36 +00:00
Guido van Rossum e906606f5d Final touch before release. 1993-07-29 13:14:32 +00:00
Guido van Rossum 1fc238a813 Minor fixes / changes for Mac compatibility. 1993-07-29 08:25:09 +00:00
Guido van Rossum a3309960a5 * Added support for X11 modules.
* Makefile: change location of FORMS library.
* posixmodule.c: turn #if 0 into #ifdef MSDOS (stuff in unistd.h or not)
* Almost all .h files: added CPP magic to avoid duplicate inclusions and
  to support inclusion from C++.
1993-07-28 09:05:47 +00:00
Guido van Rossum f6da4f62b4 forms_set_event_call_back: argument of None resets event callback to NULL. 1993-07-26 15:24:57 +00:00
Guido van Rossum e22e6442b7 * config.c: different default PYTHONPATH for MS-DOS
* timemodule.c: change #ifdef TURBO_C into #ifdef MSDOS
* posixmodule.c: MSDOS changes by Marcel van der Peijl (Digicash)
* stropmodule.c: use C isspace(c) to test for whitespace; add
  whitespace, lowercase and uppercase variables to the module.
1993-07-09 10:51:31 +00:00
Guido van Rossum d05eb8b0fc stropmodule.c: use C isspace(c) to test for whitespace; add
whitespace variable to module dict.
1993-07-08 11:12:36 +00:00
Guido van Rossum f1dc566328 * Makefile: added all: and default: targets.
* many files: made some functions static; removed "extern int errno;".
* frozenmain.c: fixed bugs introduced on 24 June...
* flmodule.c: remove 1.5 bw compat hacks, add new functions in 2.2a
  (and some old functions that were omitted).
* timemodule.c: added MSDOS floatsleep version .
* pgenmain.c: changed exit() to goaway() and added defn of goaway().
* intrcheck.c: add hack (to UNIX only) so interrupting 3 times
  will exit from a hanging program.  The second interrupt prints
  a message explaining this to the user.
1993-07-05 10:31:29 +00:00
Guido van Rossum 9e90a672b4 * pythonmain.c: -k option, usage message, more environment flags.
(the latter also in frozenmain.c)
* ceval.c: global 'killprint' flag raises exception when printing an
  expression statement's value (useful for finding stray output)
* timemodule.c: add asctime() and ctime().  Change julian date to
  1-based origin (as intended and documented).
* Removed unused DO_TIMES stuff from timemodule.c.  Added 'epoch' and
  'day0' globals (year where time.time() == 0 and day of the week the
  epoch started).
1993-06-24 11:10:19 +00:00
Guido van Rossum 234f942aef * Added gmtime/localtime/mktime and SYSV timezone globals to timemodule.c.
Added $(SYSDEF) to its build rule in Makefile.
* cgensupport.[ch], modsupport.[ch]: removed some old stuff.  Also
  changed files that still used it...  And made several things static
  that weren't but should have been...  And other minor cleanups...
* listobject.[ch]: add external interfaces {set,get}listslice
* socketmodule.c: fix bugs in new send() argument parsing.
* sunaudiodevmodule.c: added flush() and close().
1993-06-17 12:35:49 +00:00
Guido van Rossum 18c9a4f8ea * socketmodule.c: fix long-standing bug in recvfrom() -- addrlen
wasn't initialized.
1993-05-25 12:16:29 +00:00
Guido van Rossum eb6b33a837 * classobject.c: in instance_getattr, don't make a method out of a
function found as instance data.
* socketmodule.c: added 'flags' argument sendto/recvfrom, rewrite
  argument parsing in send/recv.
* More changes related to access (terminology change: owner instead of
  class; allow any object as owner; local/global variables are owned
  by their dictionary, only class/instance data is owned by the class;
  "from...import *" now only imports objects with public access; etc.)
1993-05-25 09:38:27 +00:00
Guido van Rossum 687dd13bfe New posix functions open, close, dup, dup2, lseek, read, write, fstat, pipe.
Improved some comments and defaults in the Makefile.
1993-05-17 08:34:16 +00:00
Guido van Rossum a849b834f1 * selectmodule.c: fix (another!) two memory leaks -- this time in list2set
* tokenizer.[ch]: allow continuation without \ inside () [] {}.
1993-05-12 11:35:44 +00:00
Guido van Rossum acbe8da4f8 (I suggest a recompile after getting this, the ceval.c bugfix may be crucial!)
* Makefile: removed superfluous AR=ar, fixed misleading comment.
* ceval.c: fixed debugging code; save/restore errors in locals_2_fast.
* intrcheck.c: for SunOS etc., turn off syscall resumption.
* regexpr.h: bump number of registers to 100.
1993-04-15 15:33:52 +00:00
Guido van Rossum 9575a44575 * Microscopic corrections to make things compile on the Cray APP.
* Removed one use of $> in Makefile and warned about others.
  Added configurable lines in Makefile to change CC and AR.
1993-04-07 14:06:14 +00:00
Guido van Rossum f56e3db1dd Support for frozen scripts; added -i option. 1993-04-01 20:59:32 +00:00
Guido van Rossum 8b17d6bd89 Changes to speed up local variables enormously, by avoiding dictionary
lookup (opcode.h, ceval.[ch], compile.c, frameobject.[ch],
pythonrun.c, import.c).  The .pyc MAGIC number is changed again.
Added get_menu_text to flmodule.
1993-03-30 13:18:41 +00:00
Guido van Rossum 9bfef44d97 * Changed all copyright messages to include 1993.
* Stubs for faster implementation of local variables (not yet finished)
* Added function name to code object.  Print it for code and function
  objects.  THIS MAKES THE .PYC FILE FORMAT INCOMPATIBLE (the version
  number has changed accordingly)
* Print address of self for built-in methods
* New internal functions getattro and setattro (getattr/setattr with
  string object arg)
* Replaced "dictobject" with more powerful "mappingobject"
* New per-type functio tp_hash to implement arbitrary object hashing,
  and hashobject() to interface to it
* Added built-in functions hash(v) and hasattr(v, 'name')
* classobject: made some functions static that accidentally weren't;
  added __hash__ special instance method to implement hash()
* Added proper comparison for built-in methods and functions
1993-03-29 10:43:31 +00:00
Sjoerd Mullender 6b517fdc95 Added conversion routines to sv module. 1993-03-16 12:25:30 +00:00
Guido van Rossum e537240c25 * Changed many files to use mkvalue() instead of newtupleobject().
* Fixcprt.py: added [-y file] option, do only files younger than file.
* modsupport.[ch]: added vmkvalue().
* intobject.c: use mkvalue().
* stringobject.c: added "formatstring"; renamed string* to string_*;
  ceval.c: call formatstring for string % value.
* longobject.c: close memory leak in divmod.
* parsetok.c: set result node to NULL when returning an error.
1993-03-16 12:15:04 +00:00
Guido van Rossum ccd5bad471 Extensive changes to regex module (group(), casefold, etc.) 1993-02-23 13:42:39 +00:00
Jack Jansen 337b20e23e Added audioop.reverse() which reverses an audio sample 1993-02-23 13:39:57 +00:00
Guido van Rossum 36d330bf36 * regexmodule.c: added use of translation table, substring() method. 1993-02-21 20:12:16 +00:00
Guido van Rossum 778983b481 Added new module "array" (for now optional) defining array objects. 1993-02-19 15:55:02 +00:00
Jack Jansen 4fada9c8e0 Added converters for rgb<->rgb8 and rgb<->grey 1993-02-19 15:51:41 +00:00
Jack Jansen fa1b9f63c9 Added dither() routine 1993-02-19 12:53:12 +00:00
Jack Jansen a90805f1c0 This time really check in the new routines :-) 1993-02-17 14:29:28 +00:00
Jack Jansen dd8a6eac57 Added lin2lin, findmax, findfactor and fintfit routines 1993-02-17 14:21:09 +00:00
Sjoerd Mullender 22e44cd0b5 * clmodule.c: the documentation was wrong, so changed the interface
accordingly: SetMin, SetMax, SetDefault are no longer methods of the
  compressor/decompressor but are functions of the cl module and they
  take a first argument which is a compression scheme
1993-02-17 09:11:14 +00:00
Sjoerd Mullender 4e2a4278e8 * clmodule.c: use function prototypes (found and fixed some bugs this
way); more efficiently check whether parameters are float; removed
  one argument from DecompressImage method; use clGetParam instead of
  clGetParams where it makes sense; convert int parameters in
  SetParams, SetParam, SetMin, SetMax, and SetDefault to float when
  needed; added QuerySchemeFromHandle method
* Makefile: interchanged cstubs and cgen.py so that $> in rule gets
  them in the right order
1993-02-16 11:55:17 +00:00
Jack Jansen 5fc677363f Added readdisplay() routine 1993-02-16 09:25:15 +00:00
Jack Jansen e8a3c28f8d Added new audio library functionality (getstatus, float sample fmts) 1993-02-10 14:10:56 +00:00
Sjoerd Mullender 38a22baea9 Fixed some memory leaks when things go wrong. 1993-02-10 13:31:01 +00:00
Jack Jansen 55cea47bae Changed adpcm routines to use 2-element state (was 3 element) 1993-02-10 13:21:59 +00:00
Guido van Rossum bf80e5407f * stdwinmodule.c: various new commands: setwin{pos,size},
listfontnames, bitmap ops.
* listobject.c: use mkvalue() when possible; avoid weird error when
  calling append() without args.
* modsupport.c: new feature in getargs(): if the format string
  contains a semicolor the string after that is used as the error
  message instead of "bad argument list (format %s)" when there's an
  error.
1993-02-08 15:49:17 +00:00
Guido van Rossum 6f5afc9a73 * ceval.c: ifdef out the last argument passing compat hack.
* Fixed memory leaks in socket, select and sv modules: mkvalue("O", v)
  does INCREF(v) so if v is brand new it should be XDECREF'd
1993-02-05 09:46:15 +00:00
Sjoerd Mullender 3a997279d5 CL.py, clmodule.c: Adapted to new CL library. Lots of new methods.
aifc.py: Several small improvements.  Use new methods from CL module.
1993-02-04 16:43:28 +00:00
Guido van Rossum 34679b7661 * Added Fixcprt.py: script to fix copyright message.
* various modules: added 1993 to copyright.
* thread.c: added copyright notice.
* ceval.c: minor change to error message for "+"
* stdwinmodule.c: check for error from wfetchcolor
* config.c: MS-DOS fixes (define PYTHONPATH, use DELIM, use osdefs.h)
* Add declaration of inittab to import.h
* sysmodule.c: added sys.builtin_module_names
* xxmodule.c, xxobject.c: fix minor errors
1993-01-26 13:33:44 +00:00
Jack Jansen d26b458325 Added tovideo routine 1993-01-22 15:34:43 +00:00
Guido van Rossum 0b0db8e3a0 Added separate main program for the Mac: macmain.c
stdwinmodule.c: wsetfont can now return an error
Makefile: add CL_USE and CL_LIB*S; config.c: move CL part around
New things in imgfile; also in Makefile.
longobject.c: fix comparison of negative long ints...  [REAL BUG!]
marshal.c: add dumps() and loads() to read/write strings
timemodule.c: make sure there's always a floatsleep()
posixmodule.c: rationalize struct returned by times()
Makefile: add test target, disable imgfile by default
thread.c: Improved coexistance with dl module (sjoerd)
stdwinmodule.c: Change include stdwin.h if macintosh
rotormodule.c: added missing last argument to RTR_?_region calls
confic.c: merged with configmac.c, added 1993 to copyright message
fileobject.c: int compared to NULL in writestring(); change fopenRF ifdef
timemodule.c: simplify times() using mkvalue; include myselect.h
  earlier (for sequent).
posixmodule: for sequent, include unistd.h instead of explicit
  extern definitions and don't define rename()
Makefile: change misleading/wrong MD5 comments
1993-01-21 16:07:51 +00:00
Jack Jansen 09cbf9a7a6 Use full path for izoom.h include file 1993-01-19 15:33:13 +00:00
Jack Jansen 3c2eb5c5cb Added (optional) better scaling to readscaled 1993-01-19 15:17:13 +00:00
Guido van Rossum e35399ea7b Checking in last-minute changes that are already part of release 0.9.8 1993-01-10 18:33:56 +00:00
Guido van Rossum 775f4dacbc * Makefile: use cp -r to install the library
* ceval.c: use #ifdef COMPAT_HACKS instead of #if 0
* Makefile: fix to make clmodule.c compile;
  make config.o dependent on libpython.a (so date is always correct)
* timemodule.c: now sleep() also takes a float argument.
* posixmodule.c: added nice().
1993-01-09 17:18:52 +00:00
Jack Jansen d513f0bcb6 Fixed various bugs in the adpcm routines 1993-01-08 14:40:53 +00:00
Sjoerd Mullender ed59d205a9 Various changes.
* Makefile: svmodule.c.proto and svgen.py are gone, svmodule.c came in
	their stead.  Also, pass -DUSE_DL flag to thread.c and give
	the user a possibility to add the -DDEBUG to just thread.c.
* ceval.c: init_save_thread() can be called more than once now.
* svgen.py, svmodule.c.proto, svmodule.c: Removed prototype file and
	replaced it by the generated file.
* thread.c: Added some more checks; added call to DL library when it
	is also used to tell it where the shared arena is so that DL
	can use some other area.
* threadmodule.c: Call init_save_thread from another place.  Also,
	added new function getlocklock() which does to lock objects
	what getfilefile does to file objects.
1993-01-06 13:36:38 +00:00
Guido van Rossum a2b7f40513 * Configure.py: use #!/usr/local/bin/python
* posixmodule.c: move extern function declarations to top
* listobject.c: cmp() arguments must be void* if __STDC__
* Makefile, allobjects.h, panelmodule.c, modsupport.c: get rid of
  strdup() -- it is a portability risk
* Makefile: enclosed ranlib command in parentheses for Sequent Make
  which aborts if the command is not found even if '-' is present
* timemodule.c: time() returns a floating point number, in microsecond
  precision if BSD_TIME is defined.
1993-01-04 09:09:59 +00:00
Jack Jansen de3adf9ef7 Added 2 and 4 bits grey formats 1992-12-22 14:05:55 +00:00
Guido van Rossum 5f59d6018e * mymalloc.h: always allocate one extra byte, since some malloc's
return NULL for malloc(0) or realloc(p, 0).  (This should be done
  differently than wasting one byte, but alas...)
* Moved "add'l libraries" option in Makefile to an earlier place.
* Remove argument compatibility hacks (b) and (c).
* Add grey2mono, dither2mono and mono2grey to imageop.
* Dup the fd in socket.fromfd().
* Added new modules mpz, md5 (by JH, requiring GNU MP 1.2).  Affects
  Makefile and config.c.
* socketmodule.c: added socket.fromfd(fd, family, type, [proto]),
  converted socket() to use of getargs().
1992-12-14 16:59:51 +00:00
Sjoerd Mullender 8dd054d918 adapted to newest version of CL library. 1992-12-14 13:17:29 +00:00
Guido van Rossum 8ed294150e Added new modules mpz, md5 (by JH, requiring GNU MP). 1992-12-08 16:10:18 +00:00
Guido van Rossum 2a7178efe1 socketmodule.c: added socket.fromfd(fd, family, type, [proto]);
converted socket() to use of getargs().
1992-12-08 13:38:24 +00:00
Guido van Rossum c89705d697 * config.c: Added audioop to lists.
* Makefile: change default source directory
* socketmodule.c: added getsockname and getpeername
* bltinmodule.c: corrected typo in type() error message
* Added new built-in functions str() and repr(): repr(x) == `x`;
  str(x) == x if x is a string, otherwise str(x) == repr(x).
* Added joinfields to stropmodule.c (string.join calls joinfields now)
1992-11-26 08:54:07 +00:00
Guido van Rossum 0317a4719b Added imageopmodule.c, also added them to Makefile and config.c.
Fixed a bug in Addmodule.sh that caused a crash in Configure.py.
Fixed the crash in Configure.py...
1992-10-26 13:40:15 +00:00
Guido van Rossum a9e7dc1081 * bltinmodule.c: added built-in function cmp(a, b)
* flmodule.c: added {do,check}_only_forms to fl's list of functions;
  and don't print a message when an unknown object is returned.

* pythonrun.c: catch SIGHUP and SIGTERM to do essential cleanup.

* Made jpegmodule.c smaller by using getargs() and mkvalue() consistently.

* Increased parser stack size to 500 in parser.h.

* Implemented custom allocation of stack frames to frameobject.c and
  added dynamic stack overflow checks (value stack only) to ceval.c.
  (There seems to be a bug left: sometimes stack traces don't make sense.)
1992-10-18 18:53:57 +00:00
Sjoerd Mullender 384f24816b Lots of little fixes.
- merged CloseCompressor and CloseDecompressor into one function
- keep existing errors in error function (for exceptions raised in the
  Compress or Decompress callback functions)
- remove newline from error string generated by error function
- allocate less memory when compressing multiple frames
- keep existing errors when clCompress or clDecompress fails
- raise an exception when compressed data doesn't fit within
  dataMaxSize bytes
- allocate frameSize bytes for decompression buffer instead of
  dataMaxSize
- use mkvalue more often
- new function QueryParams which will accept CL.AUDIO and CL.VIDEO
  args
- changed some function names
1992-09-29 16:43:43 +00:00
Guido van Rossum 3a40ae4ef3 New shell script Addmodule.sh makes it easier to add a new optional
module by editing Makefile and config.c in all the right places.
Used it to add most modules currently known.  Added markers to help
the script to Makefile and config.c.
1992-09-25 21:54:05 +00:00
Sjoerd Mullender 7c4eb40a1a Changed an ifdef from IRIX_405 to CDsetcallback. 1992-09-25 11:15:58 +00:00
Sjoerd Mullender 37f17b726c Fixed the last known bugs. 1992-09-25 10:28:20 +00:00
Sjoerd Mullender 46927bac96 Defined exception cd.error which is used for errors other than
TypeError, MemoryError and such.
1992-09-24 10:48:40 +00:00
Sjoerd Mullender d53a4f3d14 New built-in module "cl" (Compression Library). Only for Irix 4.0.5
and higher.  Made a few improvements to previous version.
1992-09-24 10:37:39 +00:00
Sjoerd Mullender c431549e21 New built-in module cl, the Compression Library. 1992-09-23 14:53:00 +00:00
Guido van Rossum 7066dd75c5 * Makefile: added IMGFILE; moved some stuff around.
* flmodule.c: added some missing functions; changed readonly flags of
  some data members based upon FORMS documentation.
* listobject.c: fixed int/long arg lint bug (bites PC compilers).
* several: removed redundant print methods (repr is good enough).
* posixmodule.c: added (still experimental) process group functions.
1992-09-17 17:54:56 +00:00
Guido van Rossum c2670a000b posix: added setpgrp() and, if sgi, setsid() and setpgid(pid, pgid) 1992-09-13 20:07:29 +00:00
Guido van Rossum 5c85062e1c Makefile uses $> more often; cgen supports filename argument; added
lower, upper and swapcase to strop; cosmetics.
1992-09-11 23:55:51 +00:00
Guido van Rossum aee087946d Made struct a standard built-in module; added string args to {set,get}sockopt;
added gl.gversion().
1992-09-08 09:05:33 +00:00
Guido van Rossum 94472a0374 classobject.c moduleobject.c stdwinmodule.c xxobject.c:
raise AttributeError, not KeyError, when attribute deletion fails.
sunaudiodevmodule.c: check for deletion before calling setmember.
1992-09-04 09:45:18 +00:00
Guido van Rossum 97f0277208 Restructured (yet again) to treat all modules more alike. 1992-09-03 20:49:55 +00:00
Guido van Rossum a5f61380f8 Got rid the bogus cache code and fix some unchecked errors. 1992-09-03 20:41:22 +00:00
Guido van Rossum aa7ca2dc1a Use getargs() everywhere now. Standardize lay-out yet more (an ongoing
project :-).  Change object administration: objects are removed from the
list of known objects as soon as their form is destroyed.
1992-09-03 20:37:02 +00:00
Guido van Rossum 3d1e146086 Improve check for offset out of range 1992-09-03 20:35:01 +00:00
Guido van Rossum e270b432f3 Re-implement some operations from string.py in C, for speed. 1992-09-03 20:21:07 +00:00
Jack Jansen e1b4d7ce14 Added rms, maxpp and avgpp methods. 1992-08-24 14:36:31 +00:00
Jack Jansen 8eace20f68 Removed debug statement 1992-08-24 14:35:38 +00:00
Jack Jansen 3accf984b3 Added method to write image files. 1992-08-20 11:54:27 +00:00
Guido van Rossum b001f7adb1 rearranged modules alphabetically 1992-08-19 16:44:41 +00:00
Guido van Rossum 90ddb7b5cb unpack() now returns a tuple, not a list 1992-08-19 16:44:15 +00:00
Guido van Rossum 3af03d8f3e don't call gl.foreground and create a new window after all (seems to
break window positions in .Xdefaults)
1992-08-19 16:42:53 +00:00
Guido van Rossum 448f4bf45a added getname, getdefault and getminmax functions 1992-08-19 16:41:15 +00:00
Guido van Rossum f9f2e82fca New thread.c from Sjoerd, supports _exit_prog(). Use this in goaway()
to avoid hanging in cleanup().
1992-08-17 08:59:08 +00:00
Guido van Rossum 0297512a08 struct: pack/unpack binary structs; fcntl: fcntl(), ioctl(). 1992-08-17 08:55:12 +00:00
Guido van Rossum 6d946f98bd * macmodule.c: include allobjects.h, not .c
* timemodule.c: the mac has no unistd.h
* classobject.c: fixed several cases of return NULL that should be
  return -1 !!!
1992-08-14 13:49:30 +00:00
Guido van Rossum 39789030bd Fix bug introduced by Jack (duplicate def of qread) 1992-08-13 14:23:56 +00:00
Jack Jansen 743db36cd2 Modified to allow other threads to run in a multithreaded environment. 1992-08-13 14:13:11 +00:00
Guido van Rossum 423d6c6bca DO_TIMES must now be defined in the Makefile 1992-08-12 15:34:02 +00:00
Guido van Rossum 38fbf52b8e Made module regex optional; added optional module nis. 1992-08-12 15:28:52 +00:00
Guido van Rossum 3562d52e93 Added error handling and free resources. 1992-08-12 15:26:16 +00:00
Guido van Rossum 9de7a01e0e NIS interface by Fred Gansevles <Fred.Gansevles@cs.utwente.nl>. 1992-08-12 14:57:12 +00:00
Guido van Rossum a1ed37cb59 Last-minute changes for release. 1992-08-10 14:55:00 +00:00
Guido van Rossum 21803b8a6f Makefile, Configure.py: ##ask --> ##[el]if[yes|no]
posixmodule.c: waitpid() is separate
1992-08-09 12:55:27 +00:00
Guido van Rossum de126a6ff8 Replaced max=-1 by max = -1. 1992-08-06 16:53:58 +00:00
Guido van Rossum ff4949eeee * Makefile: cosmetics
* socketmodule.c: get rid of makepair(); fix makesocketaddr to fix
  broken recvfrom()
* socketmodule: get rid of getStrarg()
* ceval.h: move eval_code() to new file eval.h, so compile.h is no
  longer needed.
* ceval.c: move thread comments to ceval.h; always make save/restore
  thread functions available (for dynloaded modules)
* cdmodule.c, listobject.c: don't include compile.h
* flmodule.c: include ceval.h
* import.c: include eval.h instead of ceval.h
* cgen.py: add forground(); noport(); winopen(""); to initgl().
* bltinmodule.c, socketmodule.c, fileobject.c, posixmodule.c,
  selectmodule.c:
  adapt to threads (add BGN/END SAVE macros)
* stdwinmodule.c: adapt to threads and use a special stdwin lock.
* pythonmain.c: don't include getpythonpath().
* pythonrun.c: use BGN/END SAVE instead of direct calls; also more
  BGN/END SAVE calls etc.
* thread.c: bigger stack size for sun; change exit() to _exit()
* threadmodule.c: use BGN/END SAVE macros where possible
* timemodule.c: adapt better to threads; use BGN/END SAVE; add
  longsleep internal function if BSD_TIME; cosmetics
1992-08-05 19:58:53 +00:00
Guido van Rossum 25bec8c8dc Sometimes, recvfrom() returns an empty address; this is not an error.
Also, get rid of makepair() in favor of mkvalue().
1992-08-05 19:00:45 +00:00
Guido van Rossum 1984f1e1c6 * Makefile adapted to changes below.
* split pythonmain.c in two: most stuff goes to pythonrun.c, in the library.
* new optional built-in threadmodule.c, build upon Sjoerd's thread.{c,h}.
* new module from Sjoerd: mmmodule.c (dynamically loaded).
* new module from Sjoerd: sv (svgen.py, svmodule.c.proto).
* new files thread.{c,h} (from Sjoerd).
* new xxmodule.c (example only).
* myselect.h: bzero -> memset
* select.c: bzero -> memset; removed global variable
1992-08-04 12:41:02 +00:00
Guido van Rossum 4fbf798f86 * myselect.h: bzero -> memset
* select.c: bzero -> memset; removed global variable
1992-08-04 09:13:45 +00:00
Guido van Rossum f16eda5ff8 cdmodule.c: 2 minor changes by Sjoerd. 1992-08-03 19:06:59 +00:00
Guido van Rossum 7b2c03f39b New rotor methods: setkey(), encryptmore() and decryptmore(). 1992-08-02 09:00:06 +00:00
Guido van Rossum e6e9fe18bb Changes to make it compile under SGI -- revamped new/dealloc a bit. 1992-07-31 15:11:01 +00:00
Guido van Rossum 500982062f New file rotormodule.c (by Lance Ellinghouse). 1992-07-31 15:10:13 +00:00
Guido van Rossum b64e63545f Added conversions to/from ADPCM(-4); renamed adpcm to adpcm3 (what it
really was).
1992-07-06 14:21:56 +00:00
Guido van Rossum 3ee199e0cd added WE_KEY detail format to stdwinmodule.c. 1992-06-30 12:48:26 +00:00
Guido van Rossum dd9ed839d6 Added qgetfd() to cstubs for GL.
Added new module dbm (interface to ndbm).
1992-06-29 17:10:40 +00:00
Guido van Rossum 8e7a0f026e Added adpcm2lin and lin2adpcm. 1992-06-23 15:23:57 +00:00
Guido van Rossum 9d47992719 Use "myselect.h" as intended. 1992-06-23 15:23:28 +00:00
Guido van Rossum ed233a5696 Changes for new UNIX-specific built-in module 'select' and new header for
interfaces to variants of select() system call, "myselect.h".  This includes
adding fileno() methods to files, sockets and stdwin.
1992-06-23 09:07:03 +00:00
Guido van Rossum 710e1df585 Some UNIX types want the exact size of the address structure 1992-06-12 10:39:36 +00:00
Guido van Rossum dfd6e46779 Fix for SEQUENT by Jaap Vermeulen 1992-06-12 10:39:22 +00:00
Guido van Rossum aad5344fc1 Fix bug in ulaw2lin for 4-byte values 1992-06-05 15:11:56 +00:00
Guido van Rossum 0e69587dc0 Added {get,set}sockopt(). allowbroadcast is now obsolete. 1992-06-05 15:11:30 +00:00
Guido van Rossum 3dd8c9895e fixed bugs in generic_setattr (returned NULL instead of
-1 for errors)
1992-06-03 17:07:49 +00:00
Guido van Rossum f0476350b8 Added 1992 to copyright notice 1992-06-03 17:07:06 +00:00
Guido van Rossum 2c4be64f20 added readscaled() function. 1992-06-03 17:06:36 +00:00
Guido van Rossum 9c52e0ff32 Initial revision 1992-06-03 17:06:14 +00:00
Guido van Rossum c888bf7cae append the default path to $PYTHONPATH; ignore empty $PYTHONPATH.
default DATE is now 3 Jun 1992
1992-06-03 17:05:13 +00:00
Guido van Rossum b66efa0d75 Initial revision 1992-06-01 16:01:24 +00:00
Guido van Rossum 5773798e50 Mark's name is Callow, not Callows 1992-05-15 11:06:29 +00:00
Guido van Rossum 178969df92 Added support for CD module 1992-05-15 11:06:12 +00:00
Guido van Rossum 86d2568e16 Initial revision 1992-05-15 11:05:54 +00:00
Guido van Rossum 46003ff66a Added gete?[gu]id functions 1992-05-15 11:05:24 +00:00
Guido van Rossum c3c7ac8ba7 Wanneer er geen disk in de speler zit falen sommige routines. De
exceptie heeft nu in dat geval als argument "no disc in player", behalve
wanneer de bibliotheek routine errno zet.  In dat laatste geval wordt
(nog steeds) err_errno() gebruikt.

Wanneer een routine uit de bibliotheek faalt wordt nu altijd een IOError
gegenereerd.  Een RuntimeError treedt alleen op bij verkeerde argumenten.
1992-05-06 09:48:30 +00:00
Guido van Rossum cbcdff7fcf Don't use \ for continuation lines; minor changes. 1992-05-06 09:47:10 +00:00
Guido van Rossum ece6efe5d1 Return more structured data in some cases 1992-04-15 15:56:11 +00:00
Guido van Rossum 16b8f3047f Initial revision 1992-04-13 18:22:53 +00:00
Guido van Rossum 2ee12f4090 Use mkvalue() instead of painfully constructing values 1992-04-13 15:54:35 +00:00
Guido van Rossum d9f5733a92 change the date to say >= 6 Apr 1992 1992-04-08 11:17:17 +00:00