mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* ext/openssl/ossl_x509revoked.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									61f411312b
								
							
						
					
					
						commit
						b86e5f8517
					
				
					 2 changed files with 10 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,7 @@
 | 
			
		|||
Sat Mar 19 12:30:25 2011  Tanaka Akira  <akr@fsij.org>
 | 
			
		||||
 | 
			
		||||
	* ext/openssl/ossl_x509revoked.c: parenthesize macro arguments.
 | 
			
		||||
 | 
			
		||||
Fri Mar 18 20:44:36 2011  Tanaka Akira  <akr@fsij.org>
 | 
			
		||||
 | 
			
		||||
	* ext/openssl/ossl_x509req.c: parenthesize macro arguments.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11,20 +11,20 @@
 | 
			
		|||
#include "ossl.h"
 | 
			
		||||
 | 
			
		||||
#define WrapX509Rev(klass, obj, rev) do { \
 | 
			
		||||
    if (!rev) { \
 | 
			
		||||
    if (!(rev)) { \
 | 
			
		||||
	ossl_raise(rb_eRuntimeError, "REV wasn't initialized!"); \
 | 
			
		||||
    } \
 | 
			
		||||
    obj = Data_Wrap_Struct(klass, 0, X509_REVOKED_free, rev); \
 | 
			
		||||
    (obj) = Data_Wrap_Struct((klass), 0, X509_REVOKED_free, (rev)); \
 | 
			
		||||
} while (0)
 | 
			
		||||
#define GetX509Rev(obj, rev) do { \
 | 
			
		||||
    Data_Get_Struct(obj, X509_REVOKED, rev); \
 | 
			
		||||
    if (!rev) { \
 | 
			
		||||
    Data_Get_Struct((obj), X509_REVOKED, (rev)); \
 | 
			
		||||
    if (!(rev)) { \
 | 
			
		||||
	ossl_raise(rb_eRuntimeError, "REV wasn't initialized!"); \
 | 
			
		||||
    } \
 | 
			
		||||
} while (0)
 | 
			
		||||
#define SafeGetX509Rev(obj, rev) do { \
 | 
			
		||||
    OSSL_Check_Kind(obj, cX509Rev); \
 | 
			
		||||
    GetX509Rev(obj, rev); \
 | 
			
		||||
    OSSL_Check_Kind((obj), cX509Rev); \
 | 
			
		||||
    GetX509Rev((obj), (rev)); \
 | 
			
		||||
} while (0)
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue