comparison m_property.c @ 32664:6d08af681d54

Factorize ROUND() redefinitions macro.
author cboesch
date Mon, 03 Jan 2011 19:39:31 +0000
parents c1a3f1bbba26
children
comparison
equal deleted inserted replaced
32663:83c490a2e9f3 32664:6d08af681d54
28 #include <unistd.h> 28 #include <unistd.h>
29 29
30 #include "m_option.h" 30 #include "m_option.h"
31 #include "m_property.h" 31 #include "m_property.h"
32 #include "mp_msg.h" 32 #include "mp_msg.h"
33 #include "mpcommon.h"
33 #include "help_mp.h" 34 #include "help_mp.h"
34
35 #define ROUND(x) ((int)((x)<0 ? (x)-0.5 : (x)+0.5))
36 35
37 static int do_action(const m_option_t* prop_list, const char* name, 36 static int do_action(const m_option_t* prop_list, const char* name,
38 int action, void* arg, void *ctx) { 37 int action, void* arg, void *ctx) {
39 const char* sep; 38 const char* sep;
40 const m_option_t* prop; 39 const m_option_t* prop;