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

Misc build related fixes #206

Closed
wants to merge 1 commit into from
Closed

Conversation

kugel-
Copy link
Member

@kugel- kugel- commented Apr 1, 2015

Needed to compile against Geany's linkage-cleanup branch but they
are good changes regardless.

@kugel- kugel- mentioned this pull request Apr 1, 2015
@@ -19,7 +19,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include "utils.h"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't remove this, it's the include for the plugin's utils.h, aka this file's header

@b4n
Copy link
Member

b4n commented Apr 2, 2015

OK, technically most are good, but why are they needed (but the COMMONLIBS thing, which I understand)

@@ -26,7 +26,7 @@
* \brief it is the graphical user interface of the geany miniscript plugin
*/
#include "config.h"
#include "geany.h"
#include "geanyplugin.h"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change fixes
CC gms_gui.lo
In file included from gms_gui.c:57:0:
gms.h:30:8: error: unknown type name 'GeanyFunctions'
extern GeanyFunctions *geany_functions;

+#include "geanyfunctions.h" would also work but geanyplugin.h is recommended anyway

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not get that error if I build from current master.

Needed to compile against Geany's linkage-cleanup branch but they
are good changes regardless.
@kugel- kugel- force-pushed the misc-build-fixes branch from 995e7ea to 3f38c52 Compare April 2, 2015 19:50
@@ -19,6 +19,8 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include <geanyplugin.h>

#include "utils.h"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As an alternative one could replace the inappropriate use of utils_str_equal with g_strcmp/0 but i dont like to potentially change the behavior now

@frlan
Copy link
Member

frlan commented Apr 6, 2015

I'm planning to merge the changes only if referenced Geany changes are getting merged.

@kugel-
Copy link
Member Author

kugel- commented Apr 6, 2015 via email

@@ -26,7 +26,7 @@
* \brief it is the graphical user interface of the geany miniscript plugin
*/
#include "config.h"
#include "geany.h"
#include "geanyplugin.h"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ideally should use <>s

@b4n
Copy link
Member

b4n commented Apr 12, 2015

OK, so now I ignored this one when I committed 2d1dee0 and 856b3d9, this "only" "fixes" plugins "incorrectly" including something else than <geanyplugin.h>. But do we have a real guideline on that? I agree we should and plugins probably should only include <geanyplugin.h>, but the docs don't seem to be really clear on this.

And if we do that, maybe there are more plugins to fix? :)

@lpaulsen93 lpaulsen93 added the build system Automake build system issues label Jun 29, 2019
@lpaulsen93
Copy link
Contributor

I fixed all usages of #include "geanyplugin.h" in PR #882.

@lpaulsen93
Copy link
Contributor

IMHO we could close this unmerged if PR #882 gets merged because all issues then seem to have been fixed in other PRs.

@b4n, @kugel-: what do you think?

@kugel-
Copy link
Member Author

kugel- commented Jul 23, 2019

Makes sense, feel free.

@lpaulsen93
Copy link
Contributor

Closing in favor of all changes done separately in other PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build system Automake build system issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants