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

Option to spit .h instead of .c #95

Open
radare opened this issue Sep 5, 2018 · 2 comments
Open

Option to spit .h instead of .c #95

radare opened this issue Sep 5, 2018 · 2 comments

Comments

@radare
Copy link
Contributor

radare commented Sep 5, 2018

Just to get the function definitions so it can be used to call functions from an object or dylib without having to do that by hand.

#define FCN
FCN int sumstuff(int a, int b);
FCN void printstring(const char *str);
...

this way the user can later edit this define to be export, static, etc... and write the main at the bottom

@wargio
Copy link
Owner

wargio commented Sep 5, 2018

shouldn't this be easily done in r2?
i mean seems useful, but i was wondering if it was more appropriate for r2 or r2dec

@elicn
Copy link
Contributor

elicn commented Sep 8, 2018

I would move the "#include" directives there too, instead of appearing on top of every function.

@wargio wargio added the core label Sep 17, 2018
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

3 participants