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

Restrict use of C++ language features to bare minimum #14

Open
markcmiller86 opened this issue Oct 1, 2018 · 0 comments
Open

Restrict use of C++ language features to bare minimum #14

markcmiller86 opened this issue Oct 1, 2018 · 0 comments

Comments

@markcmiller86
Copy link
Member

markcmiller86 commented Oct 1, 2018

MACSio is almost entirely C. But, there are a few places where the keyword mutable is used for members of a struct that is used in a mostly const setting. Also, plugins are loaded during executable load time via the use of non-constant, static initializers which are not supported in C but are in C++.

We should find a way to restrict all this to a single C++ source file having all other files be C code and compiled with a C compiler. Currently, we are using C++ compiler everywhere.

Alternatively, we can keep use of C++ compiler everywhere but we should then change the source file suffixes to be either .C or .cxx.

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

1 participant