Ticket #257 (closed defect: fixed)
create_convert_utility_code() in PyrexTypes needs a rewrite
| Reported by: | scoder | Owned by: | dagss |
|---|---|---|---|
| Priority: | critical | Milestone: | 0.12 |
| Component: | Code Generation | Keywords: | |
| Cc: |
Description (last modified by scoder) (diff)
Currently, the create_convert_utility_code() methods in PyrexTypes are used to generate utility functions on the fly. However, this is done at type analysis time, not at code generation time. As things like temp allocation, utility code injection and constant caching have now moved to code generation time, the code generation at analysis time can no longer depend on anything code related being place. That makes it crash in the current cython-unstable branch.
The methods should be split into one that checks for prerequisites (called at type analysis time) and one that generates the code, which can then be called during normal code generation.
Change History
Note: See
TracTickets for help on using
tickets.
