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

Allow private functions to be included in clib/proto file #1

Open
tboeckel opened this issue Jan 18, 2017 · 0 comments
Open

Allow private functions to be included in clib/proto file #1

tboeckel opened this issue Jan 18, 2017 · 0 comments

Comments

@tboeckel
Copy link

tboeckel commented Jan 18, 2017

Currently sfdc will omit all private functions when generating the clib/proto file.

For example having function definitions like this:

==public
void public_foobar(int param) (d0)
==private
void private_foobar(int param) (d0)

Then call sfdc like this:
sfdc --mode=clib foobar_lib.sfd

The generated file will contain a prototype for public_foobar(), but not for private_foobar(). This might be desired when generating proto files for the public, but for generating private proto files it is not very convenient. The same applies for --mode=macros.

However, with --mode=gateproto, --mode=gatestubs, --mode=interface (and possibly some more modes) even private functions are included in the output.

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