changeset 2338:6424627913be

Don't try to inline public functions
author franky
date Sun, 12 May 2019 13:17:36 +0200
parents ffd0e57e9563
children 7f11a567d236
files mcabber/mcabber/histolog.c mcabber/mcabber/screen.c mcabber/mcabber/utils.c
diffstat 3 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/mcabber/histolog.c	Sun May 12 11:32:30 2019 +0200
+++ b/mcabber/mcabber/histolog.c	Sun May 12 13:17:36 2019 +0200
@@ -421,8 +421,8 @@
   return UseFileLogging;
 }
 
-inline void hlog_write_message(const char *bjid, time_t timestamp, int sent,
-        const char *msg)
+void hlog_write_message(const char *bjid, time_t timestamp, int sent,
+                        const char *msg)
 {
   guchar info;
   /* sent=1   message sent by mcabber
@@ -438,8 +438,8 @@
   write_histo_line(bjid, timestamp, 'M', info, msg);
 }
 
-inline void hlog_write_status(const char *bjid, time_t timestamp,
-        enum imstatus status, const char *status_msg)
+void hlog_write_status(const char *bjid, time_t timestamp,
+                       enum imstatus status, const char *status_msg)
 {
   // XXX Check status value?
   write_histo_line(bjid, timestamp, 'S', toupper(imstatus2char[status]),
--- a/mcabber/mcabber/screen.c	Sun May 12 11:32:30 2019 +0200
+++ b/mcabber/mcabber/screen.c	Sun May 12 13:17:36 2019 +0200
@@ -188,8 +188,8 @@
                               time_t timestamp, guint prefix_flags,
                               unsigned mucnicklen, gpointer xep184);
 
-inline void scr_update_buddy_window(void);
-inline void scr_set_chatmode(int enable);
+void scr_update_buddy_window(void);
+void scr_set_chatmode(int enable);
 
 #define SPELLBADCHAR 5
 
@@ -1471,7 +1471,7 @@
 // (Re)Display the current window.
 // If chatmode is enabled, call scr_show_buddy_window(),
 // else display the chat window.
-inline void scr_update_buddy_window(void)
+void scr_update_buddy_window(void)
 {
   if (chatmode) {
     scr_show_buddy_window();
@@ -3316,7 +3316,7 @@
 
 //  scr_set_chatmode()
 // Public function to (un)set chatmode...
-inline void scr_set_chatmode(int enable)
+void scr_set_chatmode(int enable)
 {
   gboolean enter_chatmode = enable && chatmode == FALSE;
   chatmode = enable;
@@ -3327,14 +3327,14 @@
 
 //  scr_get_chatmode()
 // Public function to get chatmode state.
-inline int scr_get_chatmode(void)
+int scr_get_chatmode(void)
 {
   return chatmode;
 }
 
 //  scr_get_multimode()
 // Public function to get multimode status...
-inline int scr_get_multimode(void)
+int scr_get_multimode(void)
 {
   return multimode;
 }
--- a/mcabber/mcabber/utils.c	Sun May 12 11:32:30 2019 +0200
+++ b/mcabber/mcabber/utils.c	Sun May 12 13:17:36 2019 +0200
@@ -603,7 +603,7 @@
 }
 
 
-inline void mc_strtolower(char *str)
+void mc_strtolower(char *str)
 {
   if (!str) return;
   for ( ; *str; str++)