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

Separate ppport.h C and Perl code into different files? #24

Open
wolfsage opened this issue May 21, 2015 · 3 comments
Open

Separate ppport.h C and Perl code into different files? #24

wolfsage opened this issue May 21, 2015 · 3 comments

Comments

@wolfsage
Copy link
Collaborator

Is there any reason to keep ppport.h as both a Perl script and a C header file?

Is there any reason not to?

leont has requested that we separate them.

@mhx
Copy link
Member

mhx commented Aug 12, 2015

The reason for keeping it all in one file is consistency, i.e. it generally prevents running a version of the script and then using another version of the header file. The only reason I could think of for not keeping it in one file is probably header file size.

What's leont's reason for wanting the split?

@wolfsage
Copy link
Collaborator Author

@Leont - ^

@Leont
Copy link
Member

Leont commented Aug 12, 2015

Header size is the main reason, avoiding the craziness is another one. The ironic thing is that the script already supports editing itself to cut out the script and documentation portions (ppport.h --strip), only leaving the header portions. However, this is only part of the script, not of the module that creates the script/header/documentation. This means you can't easily use it for dzil purposes for example.

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

No branches or pull requests

3 participants