Skip to content

Regenerate bindings against upstream master (PR #64)#3

Merged
55728 merged 1 commit into
mainfrom
regen/upstream-naming-convention-64
Jun 12, 2026
Merged

Regenerate bindings against upstream master (PR #64)#3
55728 merged 1 commit into
mainfrom
regen/upstream-naming-convention-64

Conversation

@55728

@55728 55728 commented Jun 12, 2026

Copy link
Copy Markdown
Member

Summary

Upstream libBeresta merged the naming-convention renames (libBeresta/libBeresta#64) after the last regeneration of this gem (#2, which tracked upstream PRs libBeresta/libBeresta#58 + libBeresta/libBeresta#60). This PR re-runs the generator against current gen/data/*.lsp (58 files) to bring the FFI surface back in sync with upstream master.

Note: upstream PR libBeresta/libBeresta#63 (image function renames) only touched the C side — gen/data already carried the new names — so the diff here is purely from libBeresta/libBeresta#64.

Changes

Six functions renamed on the generated FFI surface (CreateNew family, plus the Doc_-prefixed date constructor):

Before After Module
BRST_Date_Now BRST_Doc_Date_Now Date
BRST_Doc_Create_ExtGState BRST_Doc_ExtGState_New DocExtGState
BRST_Doc_Pattern_Tiling_Create BRST_Doc_Pattern_Tiling_New DocPattern, DocPagePattern
BRST_Doc_XObject_Create BRST_Doc_XObject_New DocXObject
BRST_Page_CreateDestination BRST_Page_Destination_New PageRoutines

Also adds a [Unreleased] CHANGELOG entry, since these are breaking renames on the low-level surface.

No generator changes were needed — this is a pure regeneration.

Verification

Built upstream master (post- libBeresta/libBeresta#64) via CMake and ran the suite on macOS:

bundle exec rspec
3 examples, 0 failures
  • Structural cross-check vs gen/json passes (function/enum/pointer/struct counts per file).
  • Smoke tests pass (minimal PDF generation, A4 portrait + landscape).
  • Verified through the CMake binding and check targets as well, per the org-wide target convention.

Upstream libBeresta merged naming-convention renames (PR #64) after the
last regeneration. Re-running the generator against current gen/data
renames six functions on the FFI surface (Create -> New family plus
BRST_Doc_Date_Now). Verified with the smoke and structural cross-check
specs and the CMake binding/check targets on macOS.
@55728 55728 requested a review from dmitrys99 June 12, 2026 15:30
@55728 55728 self-assigned this Jun 12, 2026

@dmitrys99 dmitrys99 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, LGTM

@55728

55728 commented Jun 12, 2026

Copy link
Copy Markdown
Member Author

Thanks 😊

@55728 55728 merged commit 3039ba9 into main Jun 12, 2026
3 checks passed
@55728 55728 deleted the regen/upstream-naming-convention-64 branch June 12, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants