Skip to content

Conversation

@vstinner
Copy link
Member

@vstinnervstinner commented Apr 8, 2024

  • Move ifndef_symbols, includes and add_include() from Clinic to Codegen. Add a 'codegen' (Codegen) attribute to Clinic.
  • Remove libclinic.crenderdata module: move code to libclinic.codegen.
  • BlockPrinter.print_block(): remove unused 'limited_capi' argument. Remove also 'core_includes' parameter.

* Move ifndef_symbols, includes and add_include() from Clinic to Codegen. Add a 'codegen' (Codegen) attribute to Clinic. * Remove libclinic.crenderdata module: move code to libclinic.codegen. * BlockPrinter.print_block(): remove unused 'limited_capi' argument. Remove also 'core_includes' parameter.
@erlend-aasland
Copy link
Contributor

Overall, I like this refactoring.

* Make Codegen.ifndef_symbols private. * Make Codegen.includes private. * Make CConverter.includes private.
@vstinner
Copy link
MemberAuthor

@erlend-aasland: I updated the PR.

@vstinnervstinner merged commit a2ae847 into python:mainApr 11, 2024
@vstinnervstinner deleted the clinic_codegen branch April 11, 2024 10:15
@vstinner
Copy link
MemberAuthor

Merged, thanks for the review.

diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
* Move ifndef_symbols, includes and add_include() from Clinic to Codegen. Add a 'codegen' (Codegen) attribute to Clinic. * Remove libclinic.crenderdata module: move code to libclinic.codegen. * BlockPrinter.print_block(): remove unused 'limited_capi' argument. Remove also 'core_includes' parameter. * Add get_includes() methods. * Make Codegen.ifndef_symbols private. * Make Codegen.includes private. * Make CConverter.includes private.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@vstinner@erlend-aasland