SF.net SVN: geany:[5352] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Tue Nov 2 12:55:17 UTC 2010
Revision: 5352
http://geany.svn.sourceforge.net/geany/?rev=5352&view=rev
Author: ntrel
Date: 2010-11-02 12:55:17 +0000 (Tue, 02 Nov 2010)
Log Message:
-----------
Add sci_get_lexer() to plugin API.
Modified Paths:
--------------
trunk/ChangeLog
trunk/plugins/geanyfunctions.h
trunk/src/plugindata.h
trunk/src/plugins.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-11-02 12:49:05 UTC (rev 5351)
+++ trunk/ChangeLog 2010-11-02 12:55:17 UTC (rev 5352)
@@ -1,3 +1,9 @@
+2010-11-02 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
+
+ * src/plugindata.h, src/plugins.c, plugins/geanyfunctions.h:
+ Add sci_get_lexer() to plugin API.
+
+
2010-11-01 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/utils.c, src/main.c:
Modified: trunk/plugins/geanyfunctions.h
===================================================================
--- trunk/plugins/geanyfunctions.h 2010-11-02 12:49:05 UTC (rev 5351)
+++ trunk/plugins/geanyfunctions.h 2010-11-02 12:55:17 UTC (rev 5352)
@@ -198,6 +198,8 @@
geany_functions->p_sci->sci_set_line_indentation
#define sci_get_line_indentation \
geany_functions->p_sci->sci_get_line_indentation
+#define sci_get_lexer \
+ geany_functions->p_sci->sci_get_lexer
#define templates_get_template_fileheader \
geany_functions->p_templates->templates_get_template_fileheader
#define utils_str_equal \
Modified: trunk/src/plugindata.h
===================================================================
--- trunk/src/plugindata.h 2010-11-02 12:49:05 UTC (rev 5351)
+++ trunk/src/plugindata.h 2010-11-02 12:55:17 UTC (rev 5352)
@@ -50,7 +50,7 @@
enum {
/** The Application Programming Interface (API) version, incremented
* whenever any plugin data types are modified or appended to. */
- GEANY_API_VERSION = 196,
+ GEANY_API_VERSION = 197,
/** The Application Binary Interface (ABI) version, incremented whenever
* existing fields in the plugin data types have to be changed or reordered. */
@@ -384,6 +384,7 @@
gint (*sci_find_text) (struct _ScintillaObject *sci, gint flags, struct Sci_TextToFind *ttf);
void (*sci_set_line_indentation) (struct _ScintillaObject *sci, gint line, gint indent);
gint (*sci_get_line_indentation) (struct _ScintillaObject *sci, gint line);
+ gint (*sci_get_lexer) (struct _ScintillaObject *sci);
}
SciFuncs;
Modified: trunk/src/plugins.c
===================================================================
--- trunk/src/plugins.c 2010-11-02 12:49:05 UTC (rev 5351)
+++ trunk/src/plugins.c 2010-11-02 12:55:17 UTC (rev 5352)
@@ -187,7 +187,8 @@
&sci_goto_line,
&sci_find_text,
&sci_set_line_indentation,
- &sci_get_line_indentation
+ &sci_get_line_indentation,
+ &sci_get_lexer
};
static TemplateFuncs template_funcs = {
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