Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility fixes for Go 1.6 #19

Merged
merged 4 commits into from
Feb 27, 2016
Merged

Compatibility fixes for Go 1.6 #19

merged 4 commits into from
Feb 27, 2016

Conversation

deuill
Copy link
Owner

@deuill deuill commented Feb 26, 2016

This fixes issues with Go 1.6 and passing of Go pointers down to C functions. For reference, see this proposal.

Linked issue: #17

This fixes compatibility with Go 1.6, which specifies stricter rules for
passing Go pointers to C and vice versa. Exported methods now use the
C context's pointer hexadecimal representation to find the parent Go
Context.
@deuill deuill mentioned this pull request Feb 26, 2016
Several API-breaking changes:

  * Define method and related functionality moved back to Engine package
  * Exported functions for receivers moved to the engine package
  * Receiver API cleaned up and made public

Receivers no longer store Go pointers in C contexts, and instead use the
C engine_receiver pointer as reference in the Go context (similar to what
we do for Contexts). Some changes have been made to the C code to accomodate
the above.
deuill added a commit that referenced this pull request Feb 27, 2016
@deuill deuill merged commit d9b0735 into master Feb 27, 2016
@deuill deuill deleted the feature/go16-compatibility branch August 31, 2016 10:37
borancar pushed a commit to borancar/go-php that referenced this pull request Dec 1, 2019
Feature/amazon

Approved-by: Matthew Tyas <matthew.tyas@antstream.com>
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.

1 participant