Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 392
    • Issues 392
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Merge requests
  • !369

changed the implementation of SACargs completely to improve the FFI

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Sven-Bodo Scholz requested to merge sbs/sac2c:cinterface-improvement-sbs-rebase into develop Mar 14, 2025
  • Overview 18
  • Commits 73
  • Changes 64

SACargs can now be used when calling C functions from SaC as well. To facilitate this, I also added global variable of type SACtypes *. These improve vastly over the old method of encoding UDTs.

This (hopefully) will also help when integrating structural types properly.

Some more polishing can follow, but the basic principles are already there and we still have enough backward compatibility that the old Stdlib still compiles. Once that has been re-written, we can abandon all support for #pragma refcounting in favour of the use of the new #pragma sacarg.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: cinterface-improvement-sbs-rebase