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

Refactor includes #77

Closed

Conversation

aleksejspopovs
Copy link
Contributor

This pull request:

  • converts the paths in all local includes (i.e. those including files from within libsnark) from absolute to relative (see pull request 7 in libff for justification)

  • converts all libff/libfqfft includes from local to system-style (e.g. #include "common/utils.hpp"#include <libff/common/utils.hpp>) to make it explicit and unambiguous when files from an external library are being included.

This pull request (as well as the accompanying ones in libff and libfqfft) was largely generated using a Python script.

This is required to allow other projects to include files from libsnark
without explicitly putting the root of libsnark source into their
include path.
This removes the need to add libff's source root to our include path,
and makes includes clearer and less ambiguous.
See previous commit for justification.
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.

1 participant