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

Document how to add/delete a subroutine or change its signature #15

Open
schwern opened this issue Nov 21, 2014 · 0 comments
Open

Document how to add/delete a subroutine or change its signature #15

schwern opened this issue Nov 21, 2014 · 0 comments

Comments

@schwern
Copy link
Contributor

schwern commented Nov 21, 2014

Adding/removing a subroutine to the C code or changing its signature is not a straightforward process.

  • It must be added/changed/removed in embed.fnc.
  • If it's a new function, you must decide what flags it should have
  • You must decide what flags its arguments should have.
  • "make regen" must be run.
  • The PERL_ARGS_ASSERT macro must be used if it takes arguments.

embed.fnc is mentioned briefly in perlguts. Most of the documentation is in embed.fnc itself.

This should likely go into perlhack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant