mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* ext/openssl/ossl_x509cert.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									fd641fbf95
								
							
						
					
					
						commit
						675b3f337f
					
				
					 2 changed files with 10 additions and 6 deletions
				
			
		| 
						 | 
					@ -1,3 +1,7 @@
 | 
				
			||||||
 | 
					Mon Mar 14 19:54:37 2011  Tanaka Akira  <akr@fsij.org>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						* ext/openssl/ossl_x509cert.c: parenthesize macro arguments.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Sun Mar 13 18:11:28 2011  Tanaka Akira  <akr@fsij.org>
 | 
					Sun Mar 13 18:11:28 2011  Tanaka Akira  <akr@fsij.org>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	* ext/openssl/ossl_x509attr.c: parenthesize macro arguments.
 | 
						* ext/openssl/ossl_x509attr.c: parenthesize macro arguments.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,20 +11,20 @@
 | 
				
			||||||
#include "ossl.h"
 | 
					#include "ossl.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define WrapX509(klass, obj, x509) do { \
 | 
					#define WrapX509(klass, obj, x509) do { \
 | 
				
			||||||
    if (!x509) { \
 | 
					    if (!(x509)) { \
 | 
				
			||||||
	ossl_raise(rb_eRuntimeError, "CERT wasn't initialized!"); \
 | 
						ossl_raise(rb_eRuntimeError, "CERT wasn't initialized!"); \
 | 
				
			||||||
    } \
 | 
					    } \
 | 
				
			||||||
    obj = Data_Wrap_Struct(klass, 0, X509_free, x509); \
 | 
					    (obj) = Data_Wrap_Struct((klass), 0, X509_free, (x509)); \
 | 
				
			||||||
} while (0)
 | 
					} while (0)
 | 
				
			||||||
#define GetX509(obj, x509) do { \
 | 
					#define GetX509(obj, x509) do { \
 | 
				
			||||||
    Data_Get_Struct(obj, X509, x509); \
 | 
					    Data_Get_Struct((obj), X509, (x509)); \
 | 
				
			||||||
    if (!x509) { \
 | 
					    if (!(x509)) { \
 | 
				
			||||||
	ossl_raise(rb_eRuntimeError, "CERT wasn't initialized!"); \
 | 
						ossl_raise(rb_eRuntimeError, "CERT wasn't initialized!"); \
 | 
				
			||||||
    } \
 | 
					    } \
 | 
				
			||||||
} while (0)
 | 
					} while (0)
 | 
				
			||||||
#define SafeGetX509(obj, x509) do { \
 | 
					#define SafeGetX509(obj, x509) do { \
 | 
				
			||||||
    OSSL_Check_Kind(obj, cX509Cert); \
 | 
					    OSSL_Check_Kind((obj), cX509Cert); \
 | 
				
			||||||
    GetX509(obj, x509); \
 | 
					    GetX509((obj), (x509)); \
 | 
				
			||||||
} while (0)
 | 
					} while (0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue