Skip to content

Commit

Permalink
Fixed undefined reference error (based on patch from Enrico Tr?ger
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurand committed Sep 10, 2009
1 parent 43357b2 commit 755ec6c
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 72 deletions.
7 changes: 7 additions & 0 deletions geanyprj/THANKS
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
What's this file about?
-----------------------
This file lists all external people that have contributed to this project.

Testers and contributors:
-------------------------
Enrico Troeger <enrico(dot)troeger(at)uvena(dot)de> - Geany IDE author, some patches
13 changes: 1 addition & 12 deletions geanyprj/src/geanyprj.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,13 @@
#include <sys/time.h>
#include <string.h>

#include "geany.h"
#include "support.h"
#include "plugindata.h"
#include "document.h"
#include "filetypes.h"
#include "utils.h"
#include "ui_utils.h"
#include "geanyfunctions.h"

#ifdef HAVE_LOCALE_H
# include <locale.h>
#endif

#include "project.h"

#include "geanyprj.h"

PLUGIN_VERSION_CHECK(115);
PLUGIN_VERSION_CHECK(147);
PLUGIN_SET_INFO(_("Project"), _("Alternative project support."), VERSION,
_("Yura Siamashka <[email protected]>"));

Expand Down
3 changes: 3 additions & 0 deletions geanyprj/src/geanyprj.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#ifndef __GEANYPRJ_H__
#define __GEANYPRJ_H__

#include "geanyplugin.h"

#ifdef __GNUC__
# ifdef DEBUG
# define debug(format, ...) printf((format), __VA_ARGS__)
Expand Down Expand Up @@ -62,6 +64,7 @@ struct GeanyPrj
GHashTable *tags; ///< project tags
};

extern GeanyFunctions *geany_functions;

extern const gchar *project_type_string[NEW_PROJECT_TYPE_SIZE];
extern void *project_type_filter[NEW_PROJECT_TYPE_SIZE];
Expand Down
15 changes: 0 additions & 15 deletions geanyprj/src/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,10 @@
#include <gdk/gdkkeysyms.h>
#include <glib/gstdio.h>

#include "geany.h"
#include "support.h"
#include "prefs.h"
#include "plugindata.h"
#include "document.h"
#include "filetypes.h"
#include "keybindings.h"
#include "utils.h"
#include "ui_utils.h"
#include "geanyfunctions.h"

#include "project.h"

#include "geanyprj.h"

PluginFields *plugin_fields;
extern GeanyData *geany_data;
extern GeanyFunctions *geany_functions;


static struct
{
Expand Down
11 changes: 0 additions & 11 deletions geanyprj/src/project.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,6 @@
#include <string.h>
#include <sys/time.h>

#include "geany.h"
#include "support.h"
#include "prefs.h"
#include "plugindata.h"
#include "document.h"
#include "filetypes.h"
#include "utils.h"
#include "geanyfunctions.h"

#include "project.h"

#include "geanyprj.h"

extern GeanyData *geany_data;
Expand Down
13 changes: 0 additions & 13 deletions geanyprj/src/sidebar.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,6 @@
#include <gdk/gdkkeysyms.h>
#include <string.h>

#include "geany.h"
#include "support.h"
#include "prefs.h"
#include "plugindata.h"
#include "document.h"
#include "filetypes.h"
#include "keybindings.h"
#include "utils.h"
#include "ui_utils.h"
#include "geanyfunctions.h"

#include "project.h"

#include "geanyprj.h"

extern GeanyData *geany_data;
Expand Down
4 changes: 1 addition & 3 deletions geanyprj/src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@
*/

#include <string.h>
#include <glib.h>

#include "geany.h"
#include "utils.h"
#include "geanyprj.h"

gchar *
find_file_path(const gchar * dir, const gchar * filename)
Expand Down
11 changes: 0 additions & 11 deletions geanyprj/src/xproject.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,6 @@
#include <string.h>
#include <sys/time.h>

#include "geany.h"
#include "support.h"
#include "prefs.h"
#include "plugindata.h"
#include "document.h"
#include "filetypes.h"
#include "utils.h"
#include "geanyfunctions.h"

#include "project.h"

#include "geanyprj.h"

extern GeanyData *geany_data;
Expand Down
8 changes: 1 addition & 7 deletions geanyprj/tests/unittests.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@
#include "geanyprj.h"



/* FIXME: this function implemented in Geany core, I
don't know how to make it available in unittest */
int utils_write_file(gchar *a, gchar *b)
{
return 0;
}
GeanyFunctions *geany_functions = NULL;


void
Expand Down

0 comments on commit 755ec6c

Please sign in to comment.