summaryrefslogtreecommitdiffstats
path: root/Parser/myreadline.c
Commit message (Collapse)AuthorAgeFilesLines
* Renamed Py_input_hook to PyOS_InputHook.Guido van Rossum1997-08-111-3/+3
| | | | Also cleaned out some CR's left by the VC++ editor.
* Move GNU readline interface to ../Modules/readline.c.Guido van Rossum1997-08-051-78/+3
| | | | Add Py_input_hook (used by _tkinter and perhaps Gist).
* Remove two unised variables.Guido van Rossum1997-04-091-2/+0
|
* Restructured quite a bit, hopefully Lee Busby will find this useful.Guido van Rossum1997-02-181-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/)
* Make gcc -Wall happyGuido van Rossum1996-12-021-0/+2
|
* New permission notice, includes CNRI.Guido van Rossum1996-10-251-13/+20
|
* Explicitly call rl_initialize().Guido van Rossum1996-09-131-1/+5
| | | | | Set rl_readline_name to python. Move extern decls to more logical point.
* Always include config.hGuido van Rossum1996-08-191-2/+0
|
* Only define PyOS_ReadlineInit if WITH_READLINE defined.Guido van Rossum1996-05-241-0/+2
|
* Separate readline initialization into new function PyOS_ReadlineInit().Guido van Rossum1996-04-091-7/+14
| | | | For Dave Ascher's readline extensions.
* add sigrelse() call for SunOS 4.1; add some fflush() callsGuido van Rossum1996-01-121-0/+6
|
* Added 1995 to copyright message.Guido van Rossum1995-01-041-2/+2
|
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-011-10/+67
|
* NoneGuido van Rossum1993-12-241-0/+119