[gspell] init: improve function name



commit 0638d0b92274c669ecbed519a9cc13d02e31d1d7
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Feb 28 13:49:38 2016 +0100

    init: improve function name
    
    The name "ctor" was to follow code from other modules, but it's ugly.
    And when a destructor will be added, will it be "dtor"?

 gspell/gspell-init.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gspell/gspell-init.c b/gspell/gspell-init.c
index c9abd71..f1adc59 100644
--- a/gspell/gspell-init.c
+++ b/gspell/gspell-init.c
@@ -152,12 +152,12 @@ DllMain (HINSTANCE hinstDLL,
 #elif defined (G_HAS_CONSTRUCTORS)
 
 #  ifdef G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA
-#    pragma G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(gspell_init_ctor)
+#    pragma G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(gspell_constructor)
 #  endif
-G_DEFINE_CONSTRUCTOR (gspell_init_ctor)
+G_DEFINE_CONSTRUCTOR (gspell_constructor)
 
 static void
-gspell_init_ctor (void)
+gspell_constructor (void)
 {
        gspell_init ();
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]