Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner 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
Member Author

vstinner commented Apr 9, 2024

@erlend-aasland: I updated the PR.

@vstinner vstinner merged commit a2ae847 into python:main Apr 11, 2024
@vstinner vstinner deleted the clinic_codegen branch April 11, 2024 10:15
@vstinner
Copy link
Member Author

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 free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants