summaryrefslogtreecommitdiffstats
path: root/Parser/pgen.c
Commit message (Collapse)AuthorAgeFilesLines
* Coverity issue CID #167Christian Heimes2008-01-181-0/+1
| | | | | | | | | | | | Event alloc_fn: Called allocation function "metacompile" [model] Event var_assign: Assigned variable "gr" to storage returned from "metacompile" gr = metacompile(n); Event pass_arg: Variable "gr" not freed or pointed-to in function "maketables" [model] g = maketables(gr); translatelabels(g); addfirstsets(g); Event leaked_storage: Returned without freeing storage "gr" return g;
* Fix Coverity 180: Don't overallocate. We don't need structs, but pointers.Neal Norwitz2007-10-121-1/+2
| | | | Also fix a memory leak.
* Fix the code in Parser/ to also compile with C++. This was mostly casts forAnthony Baxter2006-04-111-11/+12
| | | | | | | malloc/realloc type functions, as well as renaming one variable called 'new' in tokensizer.c. Still lots more to be done, going to be checking in one chunk at a time or the patch will be massively huge. Still compiles ok with gcc.
* SF patch #1467512, fix double free with triple quoted string in standard build.Neal Norwitz2006-04-101-9/+15
| | | | | | This was the result of inconsistent use of PyMem_* and PyObject_* allocators. By changing to use PyObject_* allocator almost everywhere, this removes the inconsistency.
* Revert previous checkin, the check is for <, not ==. i is unsed in ↵Neal Norwitz2006-01-081-2/+5
| | | | non-debug builds, but is used in debug builds
* Fix icc warnings. This couldn't have been correct since i is checkedNeal Norwitz2006-01-081-5/+2
| | | | | for 2 different values without changing. I think this was the intent. The unused warning only occurs when not building in debug mode.
* Remove a "temporary" piece of code that was probably unneeded sinceGuido van Rossum2003-12-151-7/+0
| | | | mid 1990. Remove an untrue XXX comment.
* Changes from Jonathan Riehl to allow his pgen extension (PEP 269) toGuido van Rossum2003-04-171-0/+5
| | | | | | work. This includes some more code that used to be part of pgen in the main parser; I'm okay with that. I'll see if the Windows build needs work next.
* compile_atom(): Neal's last checkin removing the setting of i brokeBarry Warsaw2003-02-281-0/+3
| | | | | | the build, so I'm restoring it. I'm not sure what Neal's intent was, since the line following the one he removed was "REQN(i, 1)" so i is obviously used. ;)
* Remove setting i since it isn't used. Found in unrelated bug 690012.Neal Norwitz2003-02-281-3/+0
|
* Py_IgnoreEnvironmentFlag should be extern, since it is declared in pythonrun.cNeal Norwitz2002-05-311-1/+1
|
* Py_GETENV is used by obmalloc and needs Py_IgnoreEnvironmentFlag. Provide it.Neil Schemenauer2002-04-221-0/+1
|
* The parser doesn't need its own implementation of assert, and having itsTim Peters2001-12-041-1/+1
| | | | own interfered with including Python.h. Remove Python's assert.h.
* Silence parser generator output.Guido van Rossum2001-09-111-3/+4
|
* REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum2000-09-011-9/+0
| | | | This should match the situation in the 1.6b1 tree.
* Mass ANSIfication.Thomas Wouters2000-07-221-74/+23
| | | | | | Work around intrcheck.c's desire to pass 'PyErr_CheckSignals' to 'Py_AddPendingCall' by providing a (static) wrapper function that has the right number of arguments.
* Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters2000-07-161-1/+1
| | | | | | | | | | comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
* Nuke all remaining occurrences of Py_PROTO and Py_FPROTO.Tim Peters2000-07-091-13/+13
|
* Change copyright notice - 2nd try.Guido van Rossum2000-06-301-6/+0
|
* Change copyright notice.Guido van Rossum2000-06-301-22/+7
|
* Make new gcc -Wall happyGuido van Rossum1998-04-101-1/+1
|
* Another directory quickly renamed.Guido van Rossum1997-04-291-33/+36
|
* Rename DEBUG macro to Py_DEBUGGuido van Rossum1996-12-301-1/+1
|
* Make gcc -Wall happyGuido van Rossum1996-12-021-18/+22
|
* New permission notice, includes CNRI.Guido van Rossum1996-10-251-13/+20
|
* Added 1995 to copyright message.Guido van Rossum1995-01-041-2/+2
|
* Parser/tokenizer.c (tok_nextc): zap tok->buf after freeing;Guido van Rossum1994-12-301-3/+3
| | | | rest: abort() -> fatal(); small things
* Merge back to main trunkGuido van Rossum1994-08-301-1/+1
|
* * Changed all copyright messages to include 1993.Guido van Rossum1993-03-291-2/+2
| | | | | | | | | | | | | | | | | * 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
* Copyright for 1992 addedGuido van Rossum1992-04-051-1/+1
|
* Added forward declarations.Guido van Rossum1991-04-031-0/+15
|
* Added copyright notice.Guido van Rossum1991-02-191-0/+24
|
* "Compiling" versionGuido van Rossum1990-12-201-4/+2
|
* Initial revisionGuido van Rossum1990-10-141-0/+729