SF.net SVN: geany: [1725] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Thu Jul 19 11:49:54 UTC 2007


Revision: 1725
          http://geany.svn.sourceforge.net/geany/?rev=1725&view=rev
Author:   ntrel
Date:     2007-07-19 04:49:53 -0700 (Thu, 19 Jul 2007)

Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/filetypes.c
    trunk/src/filetypes.h
    trunk/src/geany.h
    trunk/src/main.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-07-19 11:15:42 UTC (rev 1724)
+++ trunk/ChangeLog	2007-07-19 11:49:53 UTC (rev 1725)
@@ -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 at btinternet.com>

Modified: trunk/src/filetypes.c
===================================================================
--- trunk/src/filetypes.c	2007-07-19 11:15:42 UTC (rev 1724)
+++ trunk/src/filetypes.c	2007-07-19 11:49:53 UTC (rev 1725)
@@ -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

Modified: trunk/src/filetypes.h
===================================================================
--- trunk/src/filetypes.h	2007-07-19 11:15:42 UTC (rev 1724)
+++ trunk/src/filetypes.h	2007-07-19 11:49:53 UTC (rev 1725)
@@ -67,7 +67,7 @@
 	GEANY_FILETYPES_DOCBOOK,
 	GEANY_FILETYPES_HTML,
 	GEANY_FILETYPES_CSS,
-	
+
 	// miscellaneous languages
 	GEANY_FILETYPES_SQL,
 	GEANY_FILETYPES_LATEX,
@@ -119,7 +119,7 @@
 	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.

Modified: trunk/src/geany.h
===================================================================
--- trunk/src/geany.h	2007-07-19 11:15:42 UTC (rev 1724)
+++ trunk/src/geany.h	2007-07-19 11:49:53 UTC (rev 1725)
@@ -182,7 +182,7 @@
 	GeanyProject		*project; // currently active project or NULL if none is open
 } MyApp;
 
-MyApp *app;
+extern MyApp *app;
 
 
 enum

Modified: trunk/src/main.c
===================================================================
--- trunk/src/main.c	2007-07-19 11:15:42 UTC (rev 1724)
+++ trunk/src/main.c	2007-07-19 11:49:53 UTC (rev 1725)
@@ -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;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list