[geany/geany-plugins] 3cf781: GeanyLua: Move prototypes to glspi.h

Colomban Wendling git-noreply at xxxxx
Sun Jul 8 17:56:08 UTC 2012


Branch:      refs/heads/1.22_release
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Sun, 08 Jul 2012 17:56:08
Commit:      3cf7815554d822a6bf595a34c67b5bb70e1a9294
             https://github.com/geany/geany-plugins/commit/3cf7815554d822a6bf595a34c67b5bb70e1a9294

Log Message:
-----------
GeanyLua: Move prototypes to glspi.h

This makes them available to all modules, including the ones defining
them which makes sure they actually match the definition.


Modified Paths:
--------------
    geanylua/glspi.h
    geanylua/glspi_dlg.c
    geanylua/glspi_init.c
    geanylua/glspi_run.c

Modified: geanylua/glspi.h
23 files changed, 23 insertions(+), 0 deletions(-)
===================================================================
@@ -135,3 +135,26 @@ static gint glspi_fail_elem_type(
 #endif
 
 
+typedef void (*GsDlgRunHook) (gboolean running, gpointer user_data);
+typedef gint (*KeyfileAssignFunc) (lua_State *L, GKeyFile*kf);
+
+
+/* application functions */
+void glspi_init_app_funcs(lua_State *L, const gchar*script_dir);
+/* basic dialog box functions */
+void glspi_init_dlg_funcs(lua_State *L, GsDlgRunHook hook);
+/* document functions */
+void glspi_init_doc_funcs(lua_State *L);
+void glspi_init_kfile_module(lua_State *L, KeyfileAssignFunc *func);
+/* menu functions */
+void glspi_init_mnu_funcs(lua_State *L);
+/* editor functions */
+void glspi_init_sci_funcs(lua_State *L);
+/* custom dialogs module */
+void glspi_init_gsdlg_module(lua_State *L, GsDlgRunHook hook, GtkWindow *toplevel);
+void glspi_run_script(const gchar *script_file, gint caller, GKeyFile*proj, const gchar *script_dir);
+
+/* Pass TRUE to create hashes, FALSE to destroy them */
+void glspi_set_sci_cmd_hash(gboolean create);
+void glspi_set_key_cmd_hash(gboolean create);
+


Modified: geanylua/glspi_dlg.c
2 files changed, 0 insertions(+), 2 deletions(-)
===================================================================
@@ -19,8 +19,6 @@
 #define DIALOG_FLAGS GTK_DIALOG_DESTROY_WITH_PARENT|GTK_DIALOG_MODAL
 
 
-typedef void (*GsDlgRunHook) (gboolean running, gpointer user_data);
-
 static GsDlgRunHook glspi_pause_timer = NULL;
 
 


Modified: geanylua/glspi_init.c
9 files changed, 0 insertions(+), 9 deletions(-)
===================================================================
@@ -61,11 +61,6 @@
 #define KS local_data.keybind_scripts
 
 
-
-
-extern void glspi_run_script(const gchar *script_file, gint caller, GKeyFile*proj, const gchar *script_dir);
-
-
 /* Called by Geany, run a script associated with a keybinding. */
 static void kb_activate(guint key_id)
 {
@@ -183,10 +178,6 @@ static void hotkey_init(void)
 
 
 
-/* Pass TRUE to create hashes, FALSE to destroy them */
-extern void glspi_set_sci_cmd_hash(gboolean create);
-extern void glspi_set_key_cmd_hash(gboolean create);
-
 static void on_doc_new(GObject *obj, GeanyDocument *doc, gpointer user_data)
 {
 	gint idx = doc->index;


Modified: geanylua/glspi_run.c
22 files changed, 0 insertions(+), 22 deletions(-)
===================================================================
@@ -8,30 +8,8 @@
 #include "glspi.h"
 
 
-typedef gint (*KeyfileAssignFunc) (lua_State *L, GKeyFile*kf);
-
-
-
-typedef void (*GsDlgRunHook) (gboolean running, gpointer user_data);
-
-/* custom dialogs module */
-extern void glspi_init_gsdlg_module(lua_State *L, GsDlgRunHook hook, GtkWindow *toplevel);
-/* editor functions */
-extern void glspi_init_sci_funcs(lua_State *L);
-/* document functions */
-extern void glspi_init_doc_funcs(lua_State *L);
-/* basic dialog box functions */
-extern void glspi_init_dlg_funcs(lua_State *L, GsDlgRunHook hook);
-/* application functions */
-extern void glspi_init_app_funcs(lua_State *L, const gchar*script_dir);
-/* menu functions */
-void glspi_init_mnu_funcs(lua_State *L);
-
 static KeyfileAssignFunc glspi_kfile_assign=NULL;
 
-void glspi_init_kfile_module(lua_State *L, KeyfileAssignFunc *func);
-
-
 
 /*
 	If a script gets caught in a tight loop and the timeout expires,


@@ Diff output truncated at 100000 characters. @@


--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).



More information about the Plugins-Commits mailing list