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

Fix two bugs and add corresponding tests #18

Merged
merged 1 commit into from
Nov 27, 2020

Conversation

jranke
Copy link
Contributor

@jranke jranke commented Nov 27, 2020

  • The first one prevented correctly moving a DLL in case the function
    in the source code had been given a user specified name.
  • readCFunc did not return a CFunc object as restoring the pointer
    after reading downgraded the object to a regular function. Now
    readCFunc obtains the code before restoring the pointer,
    coerces the function to a CFunc object afterwards and restores
    the content of the code slot.

- The first one prevented correctly moving a DLL in case the function
  in the source code had been given a user specified name.
- readCFunc did not return a CFunc object as restoring the pointer
  after reading downgraded the object to a regular function. Now
  readCFunc obtains the code before restoring the pointer,
  coerces the function to a CFunc object afterwards and restores
  the content of the code slot.
jranke added a commit to jranke/mkin that referenced this pull request Nov 27, 2020
Depends on inline >= 0.16.2 (including the bug fixes from
eddelbuettel/inline#18), which provides 'moveDLL' to store the DLL for a
compiled function in a safe place in case the argument 'dll_dir' is
specified in the call to 'mkinmod'.

Huge thanks to Dirk @eddelbuettel for his review and support
for the work on the inline package.
Copy link
Owner

@eddelbuettel eddelbuettel left a comment

Choose a reason for hiding this comment

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

LGTM

@eddelbuettel eddelbuettel merged commit 17dce5b into eddelbuettel:master Nov 27, 2020
@jranke jranke deleted the two_bug_fixes branch November 27, 2020 21:11
@eddelbuettel
Copy link
Owner

winbuilder does not like the DLL move. Can you fix, or shall we ... skip the test on Windows?
https://win-builder.r-project.org/6uC342D48NMt/00check.log
https://win-builder.r-project.org/58egh86i69YV/00check.log

@jranke
Copy link
Contributor Author

jranke commented Nov 28, 2020

See #19

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.

None yet

2 participants