Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | SF #1373150, diffs in working copy after a build | Neal Norwitz | 2005-12-11 | 1 | -1/+1 |
| | | | | | | | | Strip off leading dots and slash so the generated files are the same regardless of whether you configure in the checkout directory or build. If anyone configures in a different directory, we might want a cleaner approach using os.path.*(). Hopefully this is good enough. | ||||
* | SF #1377897, Bus error in ast | Neal Norwitz | 2005-12-11 | 1 | -0/+5 |
| | | | | | | If a line had multiple semi-colons and ended with a semi-colon, we would loop too many times and access a NULL node. Exit the loop early if there are no more children. | ||||
* | SF #1370197, memory leak - ast_error_finish (in error conditions). | Neal Norwitz | 2005-12-11 | 1 | -2/+6 |
| | |||||
* | Add const to several API functions that take char *. | Jeremy Hylton | 2005-12-10 | 5 | -69/+67 |
| | | | | | | | | | | | | | | | | | | | In C++, it's an error to pass a string literal to a char* function without a const_cast(). Rather than require every C++ extension module to put a cast around string literals, fix the API to state the const-ness. I focused on parts of the API where people usually pass literals: PyArg_ParseTuple() and friends, Py_BuildValue(), PyMethodDef, the type slots, etc. Predictably, there were a large set of functions that needed to be fixed as a result of these changes. The most pervasive change was to make the keyword args list passed to PyArg_ParseTupleAndKewords() to be a const char *kwlist[]. One cast was required as a result of the changes: A type object mallocs the memory for its tp_doc slot and later frees it. PyTypeObject says that tp_doc is const char *; but if the type was created by type_new(), we know it is safe to cast to char *. | ||||
* | Simplify logic for handling import * | Neal Norwitz | 2005-12-06 | 1 | -6/+3 |
| | |||||
* | Reduce scope of feature | Neal Norwitz | 2005-12-06 | 1 | -2/+1 |
| | |||||
* | Remove unused macro, check is done elsewhere | Neal Norwitz | 2005-12-06 | 1 | -1/+0 |
| | |||||
* | Remove unnecessary extern variable | Neal Norwitz | 2005-12-05 | 1 | -2/+0 |
| | |||||
* | Patch #1350409: Port signal handling to VS 2005. | Martin v. Löwis | 2005-11-28 | 1 | -0/+17 |
| | |||||
* | Fix memory leaks | Neal Norwitz | 2005-11-27 | 1 | -5/+8 |
| | |||||
* | Fix a few more ref leaks. Backport candidate | Neal Norwitz | 2005-11-24 | 3 | -4/+8 |
| | |||||
* | bug #1281408: make Py_BuildValue work with unsigned longs and long longs | Georg Brandl | 2005-11-24 | 1 | -3/+20 |
| | |||||
* | Fix a few more memory leaks | Neal Norwitz | 2005-11-20 | 3 | -2/+14 |
| | | | | | Document more info about the benefits of configuring without pymalloc when running valgrind | ||||
* | Last batch of ref leaks in new AST code. | Neal Norwitz | 2005-11-19 | 2 | -29/+58 |
| | | | | | | Also converted a bunch of assert(0) to SystemError's. There are still printfs, etc that need to be cleaned up. | ||||
* | Correctly handle identifiers for anonymous scopes and align genexpr name ↵ | Nick Coghlan | 2005-11-16 | 1 | -11/+17 |
| | | | | with symtable.c | ||||
* | Bring handling of genexpr in line with other anonymous scope names | Nick Coghlan | 2005-11-16 | 1 | -4/+3 |
| | |||||
* | add more doc | Neal Norwitz | 2005-11-16 | 1 | -1/+22 |
| | |||||
* | version was not initialized properly | Neal Norwitz | 2005-11-16 | 1 | -0/+1 |
| | |||||
* | Fix another memory leak or two (one real, one potential) | Neal Norwitz | 2005-11-15 | 1 | -1/+2 |
| | |||||
* | Add a note about how to do the memory deallocation a bit. | Neal Norwitz | 2005-11-15 | 1 | -0/+20 |
| | | | | This needs a lot of work. | ||||
* | Fix a whole bunch of potential memory leaks (and some real ones too) | Neal Norwitz | 2005-11-15 | 1 | -81/+206 |
| | | | | in error conditions. | ||||
* | Convert all internal errors from Exception to SystemError | Neal Norwitz | 2005-11-14 | 1 | -19/+17 |
| | | | | Remove an abort() and let a SystemError be raised. | ||||
* | Use convenience function | Neal Norwitz | 2005-11-14 | 1 | -1/+1 |
| | |||||
* | Fix memory leak with bad generator expression | Neal Norwitz | 2005-11-14 | 1 | -3/+10 |
| | |||||
* | remove useless debug print helper. fix a couple of exceptions | Neal Norwitz | 2005-11-13 | 1 | -7/+4 |
| | |||||
* | Whoops, checkin consistent versions of *all* files to stop polluting | Neal Norwitz | 2005-11-13 | 2 | -66/+74 |
| | | | | a bunch of names | ||||
* | Fix a lot of memory and ref leaks in error paths. | Neal Norwitz | 2005-11-13 | 2 | -42/+110 |
| | | | | | | (Call symtable_exit_block or compiler_exit_scope as appropriate) Use PyMem_Free on c_future since it was allocated with PyMem_Malloc | ||||
* | Prevent name pollution by making lots of internal functions static. | Neal Norwitz | 2005-11-13 | 2 | -15/+29 |
| | |||||
* | make internal method static | Neal Norwitz | 2005-11-13 | 1 | -1/+1 |
| | |||||
* | - SF Bug #1350188, "setdlopenflags" leads to crash upon "import" | Neal Norwitz | 2005-11-09 | 1 | -1/+4 |
| | | | | | It was possible dlerror() returns a NULL pointer, use a default error message in this case. | ||||
* | Remove .cvsignore files, as they live in svn:ignore | Martin v. Löwis | 2005-10-30 | 1 | -2/+0 |
| | | | | properties now. | ||||
* | Refactor code for translating "power" nodes. | Neil Schemenauer | 2005-10-25 | 1 | -91/+95 |
| | |||||
* | Write a separate ast_for_testlist_gexp() function instead of overloading | Neil Schemenauer | 2005-10-25 | 1 | -62/+77 |
| | | | | | ast_for_testlist(). Also, write a ast_for_class_bases() function and in the process fix a memory leak. Add some assertions. | ||||
* | Ensure that compiler_exit_scope() is called as necessary to free memory | Neil Schemenauer | 2005-10-25 | 1 | -10/+18 |
| | | | | | allocated by compiler_enter_scope(). Change return type for compiler_exit_scope() to be void. | ||||
* | Do not pollute name block_ty, prefix with _Py_ | Neal Norwitz | 2005-10-24 | 1 | -3/+3 |
| | |||||
* | Fix problem handling EXTENDED_ARGs from SF bug # 1333982 | Neal Norwitz | 2005-10-23 | 1 | -1/+30 |
| | |||||
* | cleanup a bit and reuse instrsize (instruction size). working towards ↵ | Neal Norwitz | 2005-10-23 | 1 | -30/+24 |
| | | | | fixing problems with EXTENDED_ARG | ||||
* | Use PyErr_NoMemory() instead of rolling our own. | Neal Norwitz | 2005-10-23 | 1 | -61/+54 |
| | | | | Get rid of "int i" unused warnings from Python-ast.c which we are generating. | ||||
* | Remove unnecessary local variable. | Neil Schemenauer | 2005-10-23 | 1 | -3/+2 |
| | |||||
* | Fix check_unoptimized() function. The only optimized namespaces are | Neil Schemenauer | 2005-10-23 | 1 | -1/+1 |
| | | | | | in function blocks. This elimiates spurious warnings about "import *" and related statements at the class level. | ||||
* | Fix private name mangling. The symtable also must do mangles so that | Neil Schemenauer | 2005-10-23 | 2 | -18/+46 |
| | | | | the scope of names can be correctly determined. | ||||
* | Use PyTuple_Pack instead of Py_BuildValue. | Neil Schemenauer | 2005-10-23 | 1 | -2/+1 |
| | |||||
* | Fix arigo's funky LOAD_NAME bug: implicit globals inside classes have | Neil Schemenauer | 2005-10-23 | 1 | -1/+2 |
| | | | | | historically been looked up using LOAD_NAME, not LOAD_GLOBAL. looked up by LOAD_NAME, not | ||||
* | Don't stop generating code for import statements after the first "import as" | Neil Schemenauer | 2005-10-23 | 1 | -2/+3 |
| | | | | part. Fixes one bug from #1333982. | ||||
* | Add an assert. | Neil Schemenauer | 2005-10-23 | 1 | -0/+1 |
| | |||||
* | Use <lamba> as the function name for lambdas (matches old compiler). | Neil Schemenauer | 2005-10-21 | 1 | -1/+1 |
| | |||||
* | Fix a bunch of imports to use code.h instead of compile.h. | Jeremy Hylton | 2005-10-21 | 3 | -3/+0 |
| | | | | Remove duplicate declarations from compile.h | ||||
* | ANSI-C-ify the placement of local var declarations. | Armin Rigo | 2005-10-21 | 3 | -9/+14 |
| | |||||
* | the ast-branch changed the stack discipline of MAKE_CLOSURE, so we need to | Michael W. Hudson | 2005-10-21 | 1 | -1/+3 |
| | | | | bump MAGIC. | ||||
* | Fix SF bug #1167751, Argument genexp corner case | Neal Norwitz | 2005-10-21 | 1 | -7/+15 |
| | | | | | | | | | | | | | Incorrect code was generated for: foo(a = i for i in range(10)) This should have generated a SyntaxError. Fix the Grammar so it raises a SyntaxError and test it. I'm uncertain whether this should be backported. It makes something that was Syntactically valid invalid. However, the code would either be completely broken or do the wrong thing. |