Revision: 2807 http://geany.svn.sourceforge.net/geany/?rev=2807&view=rev Author: ntrel Date: 2008-07-24 11:20:48 +0000 (Thu, 24 Jul 2008)
Log Message: ----------- Only compile filetypes_detect_from_file() if HAVE_PLUGINS is defined.
Modified Paths: -------------- trunk/ChangeLog trunk/src/filetypes.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-07-23 14:52:19 UTC (rev 2806) +++ trunk/ChangeLog 2008-07-24 11:20:48 UTC (rev 2807) @@ -1,3 +1,9 @@ +2008-07-24 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com> + + * src/filetypes.c: + Only compile filetypes_detect_from_file() if HAVE_PLUGINS is defined. + + 2008-07-23 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/utils.c, src/utils.h, src/plugindata.h, src/callbacks.c,
Modified: trunk/src/filetypes.c =================================================================== --- trunk/src/filetypes.c 2008-07-23 14:52:19 UTC (rev 2806) +++ trunk/src/filetypes.c 2008-07-24 11:20:48 UTC (rev 2807) @@ -683,8 +683,9 @@ }
+#ifdef HAVE_PLUGINS +/* Currently only used by external plugins (e.g. geanyprj). */ /** Detect filetype based on a shebang line in the file, or the filename extension. */ -/* Currently only used by external plugins. */ GeanyFiletype *filetypes_detect_from_file(const gchar *utf8_filename) { gchar line[1024]; @@ -704,6 +705,7 @@ } return filetypes_detect_from_extension(utf8_filename); } +#endif
void filetypes_select_radio_item(const GeanyFiletype *ft)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.