fix possible compile issues: C++ comments, non-int function
authorThorsten Maerz <torte@netztorte.de>
Sat, 3 May 2003 12:31:47 +0000 (12:31 +0000)
committerThorsten Maerz <torte@netztorte.de>
Sat, 3 May 2003 12:31:47 +0000 (12:31 +0000)
ChangeLog.claws
src/addr_compl.c
src/addrquery.h
src/ldapquery.h
src/mainwindow.c
src/passphrase.c

index 8f59cf2..b98d602 100644 (file)
@@ -1,3 +1,13 @@
+2003-05-03 [thorsten]  0.8.11claws140
+
+       * src/addrquery.h
+         src/ldapquery.h
+         src/mainwindow.c
+               removed C++ comments
+       * src/addr_compl.c
+               function with non-int retval/param used before
+               implementation/declaration
+
 2003-05-02 [paul]      0.8.11claws139
 
        * src/addr_compl.[ch]
index 959f66e..e2858f0 100644 (file)
@@ -187,6 +187,22 @@ static void read_address_book(void) {
        g_completion_list = g_list_reverse(g_completion_list);
 }
 
+/* should clear up anything after complete_address() */
+void clear_completion_cache(void)
+{
+       if (is_completion_pending()) {
+               if (g_completion_prefix)
+                       g_free(g_completion_prefix);
+
+               if (g_completion_addresses) {
+                       g_slist_free(g_completion_addresses);
+                       g_completion_addresses = NULL;
+               }
+
+               g_completion_count = g_completion_next = 0;
+       }
+}
+
 /* start_address_completion() - returns the number of addresses 
  * that should be matched for completion.
  */
@@ -413,22 +429,6 @@ guint get_completion_count(void)
                return 0;
 }
 
-/* should clear up anything after complete_address() */
-void clear_completion_cache(void)
-{
-       if (is_completion_pending()) {
-               if (g_completion_prefix)
-                       g_free(g_completion_prefix);
-
-               if (g_completion_addresses) {
-                       g_slist_free(g_completion_addresses);
-                       g_completion_addresses = NULL;
-               }
-
-               g_completion_count = g_completion_next = 0;
-       }
-}
-
 gboolean is_completion_pending(void)
 {
        /* check if completion pending, i.e. we might satisfy a request for the next
index aa68aab..f496dcb 100644 (file)
@@ -25,7 +25,7 @@
 #define __ADDRQUERY_H__
 
 #include <glib.h>
-// #include <stdio.h>
+/* #include <stdio.h> */
 
 /* Address search call back function */
 typedef gint ( AddrSearchCallbackFunc ) ( gint cacheID,
index 0ae878b..90da502 100644 (file)
@@ -77,7 +77,7 @@ struct _LdapQuery {
        void        (*callBackEnd)( void * );
        ItemFolder  *folder;            /* Reference to folder in cache */
        LdapServer  *server;            /* Reference to (parent) LDAP server */
-       // SyldapServer *server;                /* Reference to (parent) LDAP server */
+       /* SyldapServer *server; */             /* Reference to (parent) LDAP server */
 };
 
 /* Function prototypes */
index 783610a..ba0be58 100644 (file)
@@ -1199,7 +1199,7 @@ void main_window_separation_change(MainWindow *mainwin, SeparateType type)
 {
        GtkWidget *folder_wid  = GTK_WIDGET_PTR(mainwin->folderview);
        GtkWidget *summary_wid = GTK_WIDGET_PTR(mainwin->summaryview);
-       //GtkWidget *message_wid = GTK_WIDGET_PTR(mainwin->messageview);
+       /* GtkWidget *message_wid = GTK_WIDGET_PTR(mainwin->messageview); */
        GtkWidget *message_wid = mainwin->messageview->vbox;
 
        debug_print("Changing window separation type from %d to %d\n",
index 55fe5d0..3bdae4e 100644 (file)
@@ -321,7 +321,7 @@ gpgmegtk_passphrase_cb (void *opaque, const char *desc, void **r_hd)
 
 void gpgmegtk_free_passphrase()
 {
-    (void)free_passphrase(NULL); // could be inline
+    (void)free_passphrase(NULL); /* could be inline */
 }
 
 #endif /* USE_GPGME */