Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Allow leading underscore in keywords. | Guido van Rossum | 1997-04-02 | 1 | -1/+1 |
| | |||||
* | Restructured quite a bit, hopefully Lee Busby will find this useful. | Guido van Rossum | 1997-02-18 | 1 | -50/+82 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also grandly renamed. Here's the new interface: When WITH_READLINE is defined, two functions are defined: - PyOS_GnuReadline (what used to be my_readline() with WITH_READLINE) - PyOS_ReadlineInit (for Dave Ascher) Always, these functions are defined: - PyOS_StdioReadline (what used to be my_readline() without WITH_READLINE) - PyOS_Readline (the interface used by tokenizer.c and [raw_]input(). There's a global function pointer PyOS_ReadlineFunctionPointer, initialized to NULL. When PyOS_Readline finds this to be NULL, it sets it to either PyOS_GnuReadline or PyOS_StdioReadline depending on which one makes more sense (i.e. it uses GNU only if it is defined *and* stdin is indeed a tty device). An embedding program that has its own wishes can set the function pointer to a function of its own design. It should take a char* prompt argument (which may be NULL) and return a string *ending in a \n character* -- or "" for EOF or NULL for a user interrupt. --Guido van Rossum (home page: http://www.python.org/~guido/) | ||||
* | Added decl for Py_AddPendingCall and include mymalloc.h, all to keep | Guido van Rossum | 1997-02-14 | 1 | -0/+4 |
| | | | | lint happy. | ||||
* | In the Unix version, arrange for sigcheck() to be called via | Guido van Rossum | 1997-01-21 | 1 | -0/+3 |
| | | | | | Py_AddPendingCall(). This avoids having to call sigcheck() in the ticker code in ceval.c's main interpreter loop. | ||||
* | Rename DEBUG macro to Py_DEBUG | Guido van Rossum | 1996-12-30 | 5 | -10/+10 |
| | |||||
* | Make gcc -Wall happy | Guido van Rossum | 1996-12-02 | 6 | -20/+29 |
| | |||||
* | New permission notice, includes CNRI. | Guido van Rossum | 1996-10-25 | 20 | -251/+391 |
| | |||||
* | Explicitly call rl_initialize(). | Guido van Rossum | 1996-09-13 | 1 | -1/+5 |
| | | | | | Set rl_readline_name to python. Move extern decls to more logical point. | ||||
* | Always include config.h | Guido van Rossum | 1996-08-19 | 2 | -5/+0 |
| | |||||
* | Only define PyOS_ReadlineInit if WITH_READLINE defined. | Guido van Rossum | 1996-05-24 | 1 | -0/+2 |
| | |||||
* | Separate readline initialization into new function PyOS_ReadlineInit(). | Guido van Rossum | 1996-04-09 | 1 | -7/+14 |
| | | | | For Dave Ascher's readline extensions. | ||||
* | use only j for imaginary constants | Guido van Rossum | 1996-01-26 | 1 | -2/+2 |
| | |||||
* | changes for pow(**) and complex | Guido van Rossum | 1996-01-12 | 1 | -1/+17 |
| | |||||
* | add sigrelse() call for SunOS 4.1; add some fflush() calls | Guido van Rossum | 1996-01-12 | 1 | -0/+6 |
| | |||||
* | fix bogus resize length in nextc | Guido van Rossum | 1995-09-21 | 1 | -1/+1 |
| | |||||
* | ignore control-l in whitespace | Guido van Rossum | 1995-07-07 | 1 | -1/+3 |
| | |||||
* | replace "\r\n" with "\n" at line end (Jim Ahlstrom) | Guido van Rossum | 1995-06-14 | 1 | -0/+8 |
| | |||||
* | added PyErr_SetInterrupt() | Guido van Rossum | 1995-03-10 | 1 | -0/+6 |
| | |||||
* | remove last bits of mac specific code | Guido van Rossum | 1995-01-30 | 1 | -8/+0 |
| | |||||
* | Mac interrupt code moved to macglue.c | Jack Jansen | 1995-01-27 | 1 | -76/+1 |
| | |||||
* | New cmd-. handling for the mac. | Jack Jansen | 1995-01-26 | 1 | -15/+21 |
| | |||||
* | fix strncpy call (uninitialized memory read) | Guido van Rossum | 1995-01-20 | 1 | -1/+2 |
| | |||||
* | typo | Guido van Rossum | 1995-01-20 | 1 | -1/+1 |
| | |||||
* | Added mac-only intrpeek routine that peeks for command-. | Jack Jansen | 1995-01-19 | 1 | -5/+30 |
| | |||||
* | fix loop on unterminated triple quotes | Guido van Rossum | 1995-01-17 | 1 | -1/+6 |
| | |||||
* | made interrupted static again | Guido van Rossum | 1995-01-17 | 1 | -1/+1 |
| | |||||
* | added $& to $(LIB) target for Sequent | Guido van Rossum | 1995-01-17 | 1 | -1/+1 |
| | |||||
* | Added 1995 to copyright message. | Guido van Rossum | 1995-01-04 | 19 | -38/+38 |
| | |||||
* | Added 1995 copyright. | Guido van Rossum | 1995-01-04 | 1 | -2/+2 |
| | | | | | | 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. | ||||
* | Parser/tokenizer.c (tok_nextc): zap tok->buf after freeing; | Guido van Rossum | 1994-12-30 | 5 | -15/+18 |
| | | | | rest: abort() -> fatal(); small things | ||||
* | * Parser/intrcheck.c: make 'interrupted' global (forgot for | Guido van Rossum | 1994-09-28 | 1 | -1/+1 |
| | | | | whom...) | ||||
* | * Parser/tokenizer.c (tok_nextc): count line numbers when parsing | Guido van Rossum | 1994-09-19 | 1 | -7/+21 |
| | | | | strings | ||||
* | * Parser/grammar1.c (finddfa): massive speed up by using direct | Guido van Rossum | 1994-09-09 | 1 | -1/+9 |
| | | | | addressing instead of searching | ||||
* | Merge back to main trunk | Guido van Rossum | 1994-08-30 | 16 | -48/+142 |
| | |||||
* | * Parser/tokenizer.c: backup over illegal newline in string | Guido van Rossum | 1994-08-29 | 1 | -92/+119 |
| | | | | literal (for "completeness" test) | ||||
* | don't call strncpy(str, NULL, 0) | Guido van Rossum | 1994-08-29 | 1 | -81/+79 |
| | |||||
* | Makefile: add $(OPT) to linking line | Guido van Rossum | 1994-08-29 | 1 | -1/+1 |
| | | | | tokenizer.c: move tok_backup call around | ||||
* | * Parser/tokenizer.c: backup over illegal newline in string | Guido van Rossum | 1994-08-23 | 1 | -1/+2 |
| | | | | | literal (for "completeness" test) * */Makefile*.in: remove lib*.a before adding to it | ||||
* | Merge alpha100 branch back to main trunk | Guido van Rossum | 1994-08-01 | 3 | -28/+106 |
| | |||||
* | None | Guido van Rossum | 1993-12-24 | 2 | -12/+133 |
| | |||||
* | * Grammar: corrected old typo (class instead of 'class') | Guido van Rossum | 1993-12-20 | 1 | -1/+1 |
| | | | | | | | * 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). | ||||
* | New file | Guido van Rossum | 1993-12-20 | 1 | -0/+73 |
| | |||||
* | * ceval.c, longobject.c, methodobject.c, listnode.c, arraymodule.c, | Guido van Rossum | 1993-11-01 | 1 | -0/+1 |
| | | | | | | pythonrun.c: added static forward declarations * pythonrun.h, ceval.h, longobject.h, node.h: removed declarations of static routines | ||||
* | Changes to accept double-quoted strings on input. | Guido van Rossum | 1993-10-26 | 1 | -1/+27 |
| | |||||
* | * Added support for X11 modules. | Guido van Rossum | 1993-07-28 | 4 | -0/+44 |
| | | | | | | | * 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++. | ||||
* | * Makefile: added all: and default: targets. | Guido van Rossum | 1993-07-05 | 2 | -11/+31 |
| | | | | | | | | | | | | * 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 Rossum | 1993-06-24 | 1 | -1/+1 |
| | | | | | | | | | | | (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). | ||||
* | * selectmodule.c: fix (another!) two memory leaks -- this time in list2set | Guido van Rossum | 1993-05-12 | 2 | -2/+19 |
| | | | | * tokenizer.[ch]: allow continuation without \ inside () [] {}. | ||||
* | * pythonrun.c: Print exception type+arg *after* stack trace instead of | Guido van Rossum | 1993-05-12 | 2 | -45/+60 |
| | | | | | | | before it. * ceval.c, object.c: moved testbool() to object.c (now extern visible) * stringobject.c: fix bugs in and rationalize string resize in formatstring() * tokenizer.[ch]: fix non-working code for lines longer than BUFSIZ | ||||
* | (I suggest a recompile after getting this, the ceval.c bugfix may be crucial!) | Guido van Rossum | 1993-04-15 | 1 | -0/+9 |
| | | | | | | | * 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. |