diff m_option.h @ 34492:1495455e6d22

Move static keyword to the beginning of function declarations. This fixes a number of warnings with -Wextra.
author diego
date Thu, 19 Jan 2012 14:36:15 +0000
parents 87a1b3a11b33
children 97446d4850cc
line wrap: on
line diff
--- a/m_option.h	Thu Jan 19 14:36:11 2012 +0000
+++ b/m_option.h	Thu Jan 19 14:36:15 2012 +0000
@@ -490,13 +490,13 @@
 const m_option_t* m_option_list_find(const m_option_t* list,const char* name);
 
 /// Helper to parse options, see \ref m_option_type::parse.
-inline static int
+static inline int
 m_option_parse(const m_option_t* opt,const char *name, const char *param, void* dst, int src) {
   return opt->type->parse(opt,name,param,dst,src);
 }
 
 /// Helper to print options, see \ref m_option_type::print.
-inline static  char*
+static inline  char*
 m_option_print(const m_option_t* opt, const void* val_ptr) {
   if(opt->type->print)
     return opt->type->print(opt,val_ptr);
@@ -505,14 +505,14 @@
 }
 
 /// Helper around \ref m_option_type::save.
-inline static  void
+static inline  void
 m_option_save(const m_option_t* opt,void* dst, const void* src) {
   if(opt->type->save)
     opt->type->save(opt,dst,src);
 }
 
 /// Helper around \ref m_option_type::set.
-inline static  void
+static inline  void
 m_option_set(const m_option_t* opt,void* dst, const void* src) {
   if(opt->type->set)
     opt->type->set(opt,dst,src);
@@ -528,7 +528,7 @@
 }
 
 /// Helper around \ref m_option_type::free.
-inline static void
+static inline void
 m_option_free(const m_option_t* opt,void* dst) {
   if(opt->type->free)
     opt->type->free(dst);