Kaydet (Commit) ae6de4f5 authored tarafından Nick Treleaven's avatar Nick Treleaven

Use extern 'app' and 'filetypes' global variables in headers, so that

G_MODULE_BIND_LOCAL can later be used when loading plugins to detect
any unresolved symbols.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1725 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 367465ba
......@@ -2,6 +2,10 @@
* src/treeviews.c:
Prevent warning when clicking on symbol list parent items.
* src/geany.h, src/filetypes.c, src/filetypes.h, src/main.c:
Use extern 'app' and 'filetypes' global variables in headers, so that
G_MODULE_BIND_LOCAL can later be used when loading plugins to detect
any unresolved symbols.
2007-07-18 Nick Treleaven <nick.treleaven@btinternet.com>
......
......@@ -38,6 +38,9 @@
#include "sciwrappers.h"
filetype *filetypes[GEANY_MAX_FILE_TYPES];
/* This is the order of unique ids used in the config file.
* The order must not be changed but can be appended to. */
enum
......
......@@ -67,7 +67,7 @@ typedef enum
GEANY_FILETYPES_DOCBOOK,
GEANY_FILETYPES_HTML,
GEANY_FILETYPES_CSS,
// miscellaneous languages
GEANY_FILETYPES_SQL,
GEANY_FILETYPES_LATEX,
......@@ -119,7 +119,7 @@ typedef struct filetype
void (*style_func_ptr) (ScintillaObject*);
} filetype;
filetype *filetypes[GEANY_MAX_FILE_TYPES];
extern filetype *filetypes[GEANY_MAX_FILE_TYPES];
// If uid is valid, return corresponding filetype, otherwise NULL.
......
......@@ -182,7 +182,7 @@ typedef struct MyApp
GeanyProject *project; // currently active project or NULL if none is open
} MyApp;
MyApp *app;
extern MyApp *app;
enum
......
......@@ -79,8 +79,11 @@
#endif
MyApp *app;
CommandLineOptions cl_options; // fields initialised in parse_command_line_options
static gboolean debug_mode = FALSE;
static gboolean ignore_global_tags = FALSE;
static gboolean no_msgwin = FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment