summaryrefslogtreecommitdiffstats
path: root/Parser
Commit message (Collapse)AuthorAgeFilesLines
* The previous fix was still broken; the Py_END_ALLOW_THREADS macro wasGuido van Rossum1998-08-291-1/+3
| | | | never executed because of a return statement. Sigh.
* We now assume that PyOS_Readline() is called with the interpreter lockGuido van Rossum1998-08-271-11/+3
| | | | | held. It releases the lock around the call to the function pointed to by PyOS_ReadlineFunctionPointer (default PyOS_StdioReadline()).
* Replace all calls to fprintf(stderr, ...) with PySys_WriteStderr(...).Guido van Rossum1998-08-251-5/+6
|
* Add a version of PySys_WriteStderr() that writes to stderr, so we canGuido van Rossum1998-08-251-0/+27
| | | | use it in tokenizer.c.
* There's a bunch of files that shouldn't be included in libpython*.a!Guido van Rossum1998-08-091-4/+5
|
* Make new gcc -Wall happyGuido van Rossum1998-04-102-2/+2
|
* Declare and use Py_TabcheckFlag here.Guido van Rossum1998-04-101-0/+8
|
* Add dummy Py_VerboseFlag now that it's referenced in parsetok.c.Guido van Rossum1998-04-101-0/+1
|
* Add checking for inconsistent tab usageGuido van Rossum1998-04-092-3/+49
|
* Add $(LIBS) to the pgen link line.Guido van Rossum1998-04-091-1/+2
|
* Swap two statements in the dedent check loop. This makes absolutelyGuido van Rossum1998-02-161-1/+1
| | | | | no difference, but avoids triggering an optimizer bug in the AIX compiler where the loop unrolling does the wrong thing...
* Fixed the bug in searching for triple quotes -- change the 'quote2'Guido van Rossum1998-02-161-2/+2
| | | | | variable from a pointer to an index, so a realloc() of the buffer won't disturb it. Problem found by Vladimir Marangozov.
* tok_nextc() should return unsigned characters, to avoid mistakingGuido van Rossum1998-01-191-2/+10
| | | | '\377' for EOF.
* Patch for QNX, by Chris Herborth.Guido van Rossum1997-12-021-2/+2
|
* This fix (across 4 files in 3 directories) solves a subtle problem withGuido van Rossum1997-11-141-0/+5
| | | | | | | | | | | | | | | signal handlers in a fork()ed child process when Python is compiled with thread support. The bug was reported by Scott <scott@chronis.icgroup.com>. What happens is that after a fork(), the variables used by the signal module to determine whether this is the main thread or not are bogus, and it decides that no thread is the main thread, so no signals will be delivered. The solution is the addition of PyOS_AfterFork(), which fixes the signal module's variables. A dummy version of the function is present in the intrcheck.c source file which is linked when the signal module is not used.
* 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).
* Added finalization routines.Guido van Rossum1997-08-022-1/+44
|
* Finally plug the memory leak caused by syntax error (includingGuido van Rossum1997-07-271-1/+4
| | | | interactive EOF, which leaked *one* byte).
* New build procedure.Guido van Rossum1997-07-191-15/+20
|
* Oops, missed some renamings.Guido van Rossum1997-05-071-1/+1
|
* Another directory quickly renamed.Guido van Rossum1997-04-2918-205/+218
|
* Now that the string-sig has settled on r"obin" strings, restrict theGuido van Rossum1997-04-251-3/+7
| | | | <letter><string> notation to 'r' and 'R'.
* (Jack:) On the Mac, give syntax error on \r.Guido van Rossum1997-04-111-0/+11
|
* Remove two unised variables.Guido van Rossum1997-04-091-2/+0
|
* Support for alternative string quotes (a"xx", b"xx", c"xx", ...).Guido van Rossum1997-04-061-4/+9
|
* Allow leading underscore in keywords.Guido van Rossum1997-04-021-1/+1
|
* 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/)
* Added decl for Py_AddPendingCall and include mymalloc.h, all to keepGuido van Rossum1997-02-141-0/+4
| | | | lint happy.
* In the Unix version, arrange for sigcheck() to be called viaGuido van Rossum1997-01-211-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_DEBUGGuido van Rossum1996-12-305-10/+10
|
* Make gcc -Wall happyGuido van Rossum1996-12-026-20/+29
|
* New permission notice, includes CNRI.Guido van Rossum1996-10-2520-251/+391
|
* 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-192-5/+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.
* use only j for imaginary constantsGuido van Rossum1996-01-261-2/+2
|
* changes for pow(**) and complexGuido van Rossum1996-01-121-1/+17
|
* add sigrelse() call for SunOS 4.1; add some fflush() callsGuido van Rossum1996-01-121-0/+6
|
* fix bogus resize length in nextcGuido van Rossum1995-09-211-1/+1
|
* ignore control-l in whitespaceGuido van Rossum1995-07-071-1/+3
|
* replace "\r\n" with "\n" at line end (Jim Ahlstrom)Guido van Rossum1995-06-141-0/+8
|
* added PyErr_SetInterrupt()Guido van Rossum1995-03-101-0/+6
|
* remove last bits of mac specific codeGuido van Rossum1995-01-301-8/+0
|
* Mac interrupt code moved to macglue.cJack Jansen1995-01-271-76/+1
|
* New cmd-. handling for the mac.Jack Jansen1995-01-261-15/+21
|
* fix strncpy call (uninitialized memory read)Guido van Rossum1995-01-201-1/+2
|
* typoGuido van Rossum1995-01-201-1/+1
|
* Added mac-only intrpeek routine that peeks for command-.Jack Jansen1995-01-191-5/+30
|