-
Notifications
You must be signed in to change notification settings - Fork 117
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 functions cpp #135
Conversation
|
||
extern "C" | ||
{ | ||
extern const char * const ros_topic_prefix; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're in an extern
group, do you need to extern
the internal definitions? Not sure if this was there previously, but I think the internal extern
's should be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aren't these two different things? The extern "C"
is responsible for symbol mangling and the extern const..
is for telling that the definition of this variable is happening in another file?
The patch looks good to me. Since the PR should be merged without squashing at the end can you please squash some of the later commits wherever it makes sense (the first two / three commits must stay separated though). |
3c60f11
to
de764b9
Compare
Correctly compile inline functions
function style include algorithm for demangle.cpp fix typo delete unused backup file
Currently the first commit adds a |
de764b9
to
5920279
Compare
connects to #131
summary of commits:
1.) split
functions.cpp
into multiple files (git blame on each file still shows correct history)2.) cleanup these files with only their respective necessary parts
3.) change
CMakeLists.txt
to compile all files4.) change
TypeSupport_impl.hpp
to correctly compile template specifications as inline5.) a little bit of style for functions
I'll leave it as it is for now, hoping on getting this PR merged quickly. Further improvements can thus be done in separate PRs.