summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Bug fix: check whether call succeeded *after* the call.Sjoerd Mullender1993-09-141-1/+1
|
* * clmodule.c (doParams): free PVbuffer in error condition.Sjoerd Mullender1993-08-031-1/+3
| | | | | * frameobject.c (newframeobject): initialize ob_type if taking entry from the free list, since it is zeroed out when DEBUG is defined.
* Final touch before release.Guido van Rossum1993-07-292-4/+19
|
* Minor fixes / changes for Mac compatibility.Guido van Rossum1993-07-291-2/+2
|
* * Added support for X11 modules.Guido van Rossum1993-07-285-3/+71
| | | | | | | * 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++.
* forms_set_event_call_back: argument of None resets event callback to NULL.Guido van Rossum1993-07-261-0/+2
|
* * config.c: different default PYTHONPATH for MS-DOSGuido van Rossum1993-07-094-21/+98
| | | | | | | * 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.
* stropmodule.c: use C isspace(c) to test for whitespace; addGuido van Rossum1993-07-081-7/+19
| | | | whitespace variable to module dict.
* * Makefile: added all: and default: targets.Guido van Rossum1993-07-053-126/+95
| | | | | | | | | | | | * 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.
* * pythonmain.c: -k option, usage message, more environment flags.Guido van Rossum1993-06-241-50/+60
| | | | | | | | | | | (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).
* * Added gmtime/localtime/mktime and SYSV timezone globals to timemodule.c.Guido van Rossum1993-06-1718-64/+225
| | | | | | | | | | 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().
* * socketmodule.c: fix long-standing bug in recvfrom() -- addrlenGuido van Rossum1993-05-251-2/+5
| | | | wasn't initialized.
* * classobject.c: in instance_getattr, don't make a method out of aGuido van Rossum1993-05-251-27/+30
| | | | | | | | | | 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.)
* New posix functions open, close, dup, dup2, lseek, read, write, fstat, pipe.Guido van Rossum1993-05-171-27/+233
| | | | Improved some comments and defaults in the Makefile.
* * selectmodule.c: fix (another!) two memory leaks -- this time in list2setGuido van Rossum1993-05-121-0/+2
| | | | * tokenizer.[ch]: allow continuation without \ inside () [] {}.
* (I suggest a recompile after getting this, the ceval.c bugfix may be crucial!)Guido van Rossum1993-04-151-1/+1
| | | | | | | * 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.
* * Microscopic corrections to make things compile on the Cray APP.Guido van Rossum1993-04-073-0/+22
| | | | | * Removed one use of $> in Makefile and warned about others. Added configurable lines in Makefile to change CC and AR.
* Support for frozen scripts; added -i option.Guido van Rossum1993-04-011-1/+19
|
* Changes to speed up local variables enormously, by avoiding dictionaryGuido van Rossum1993-03-301-0/+9
| | | | | | 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.
* * Changed all copyright messages to include 1993.Guido van Rossum1993-03-2911-21/+21
| | | | | | | | | | | | | | | | | * 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
* Added conversion routines to sv module.Sjoerd Mullender1993-03-163-10/+259
|
* * Changed many files to use mkvalue() instead of newtupleobject().Guido van Rossum1993-03-169-176/+72
| | | | | | | | | | * 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.
* Extensive changes to regex module (group(), casefold, etc.)Guido van Rossum1993-02-231-12/+46
|
* Added audioop.reverse() which reverses an audio sampleJack Jansen1993-02-231-0/+40
|
* * regexmodule.c: added use of translation table, substring() method.Guido van Rossum1993-02-211-38/+117
|
* Added new module "array" (for now optional) defining array objects.Guido van Rossum1993-02-192-0/+1159
|
* Added converters for rgb<->rgb8 and rgb<->greyJack Jansen1993-02-191-0/+156
|
* Added dither() routineJack Jansen1993-02-191-0/+1
|
* This time really check in the new routines :-)Jack Jansen1993-02-171-26/+210
|
* Added lin2lin, findmax, findfactor and fintfit routinesJack Jansen1993-02-171-10/+51
|
* * clmodule.c: the documentation was wrong, so changed the interfaceSjoerd Mullender1993-02-171-60/+60
| | | | | | 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
* * clmodule.c: use function prototypes (found and fixed some bugs thisSjoerd Mullender1993-02-161-192/+214
| | | | | | | | | | 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
* Added readdisplay() routineJack Jansen1993-02-161-0/+29
|
* Added new audio library functionality (getstatus, float sample fmts)Jack Jansen1993-02-101-0/+128
|
* Fixed some memory leaks when things go wrong.Sjoerd Mullender1993-02-101-10/+10
|
* Changed adpcm routines to use 2-element state (was 3 element)Jack Jansen1993-02-101-4/+6
|
* * stdwinmodule.c: various new commands: setwin{pos,size},Guido van Rossum1993-02-081-0/+275
| | | | | | | | | | 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.
* * ceval.c: ifdef out the last argument passing compat hack.Guido van Rossum1993-02-053-21/+31
| | | | | * 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
* CL.py, clmodule.c: Adapted to new CL library. Lots of new methods.Sjoerd Mullender1993-02-041-54/+294
| | | | aifc.py: Several small improvements. Use new methods from CL module.
* * Added Fixcprt.py: script to fix copyright message.Guido van Rossum1993-01-269-21/+51
| | | | | | | | | | | * 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
* Added tovideo routineJack Jansen1993-01-221-0/+59
|
* Added separate main program for the Mac: macmain.cGuido van Rossum1993-01-215-60/+103
| | | | | | | | | | | | | | | | | | | | | 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
* Use full path for izoom.h include fileJack Jansen1993-01-191-1/+1
|
* Added (optional) better scaling to readscaledJack Jansen1993-01-191-24/+138
|
* Checking in last-minute changes that are already part of release 0.9.8Guido van Rossum1993-01-101-3/+3
|
* * Makefile: use cp -r to install the libraryGuido van Rossum1993-01-092-32/+44
| | | | | | | | * 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().
* Fixed various bugs in the adpcm routinesJack Jansen1993-01-081-40/+71
|
* Various changes.Sjoerd Mullender1993-01-062-3/+964
| | | | | | | | | | | | | | | * 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.
* * Configure.py: use #!/usr/local/bin/pythonGuido van Rossum1993-01-043-18/+37
| | | | | | | | | | | * 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.
* Added 2 and 4 bits grey formatsJack Jansen1992-12-221-0/+208
|