diff options
author | Ali Polatel <alip@exherbo.org> | 2011-10-04 16:57:33 +0300 |
---|---|---|
committer | Ali Polatel <alip@exherbo.org> | 2011-10-04 16:57:33 +0300 |
commit | 5c00af46ec5add69b3b2750ea2a9437e5953a7b0 (patch) | |
tree | d7153c178c6665f9c019000ad8d954b7f1e03221 /bindings/ruby/message.c | |
parent | c8a88fe95ddbb250190f8728e928ab408c478d13 (diff) |
ruby: Fix macros, use quoting
Fix Data_Get_Notmuch_* macro definitions broken by prev. commit
Adequate quoting for Data_Get_Notmuch_* macros
Remove duplicated RSTRING_PTR() macros, move it to defs.h
Diffstat (limited to 'bindings/ruby/message.c')
-rw-r--r-- | bindings/ruby/message.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/bindings/ruby/message.c b/bindings/ruby/message.c index cadc841f..eed4b31b 100644 --- a/bindings/ruby/message.c +++ b/bindings/ruby/message.c @@ -194,10 +194,6 @@ notmuch_rb_message_get_header (VALUE self, VALUE headerv) Data_Get_Notmuch_Message (self, message); -#if !defined(RSTRING_PTR) -#define RSTRING_PTR(v) (RSTRING((v))->ptr) -#endif /* !defined(RSTRING_PTR) */ - SafeStringValue (headerv); header = RSTRING_PTR (headerv); @@ -242,10 +238,6 @@ notmuch_rb_message_add_tag (VALUE self, VALUE tagv) Data_Get_Notmuch_Message (self, message); -#if !defined(RSTRING_PTR) -#define RSTRING_PTR(v) (RSTRING((v))->ptr) -#endif /* !defined(RSTRING_PTR) */ - SafeStringValue (tagv); tag = RSTRING_PTR (tagv); @@ -269,10 +261,6 @@ notmuch_rb_message_remove_tag (VALUE self, VALUE tagv) Data_Get_Notmuch_Message (self, message); -#if !defined(RSTRING_PTR) -#define RSTRING_PTR(v) (RSTRING((v))->ptr) -#endif /* !defined(RSTRING_PTR) */ - SafeStringValue (tagv); tag = RSTRING_PTR (tagv); |