mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/sdbm/_sdbm.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3a16cc24e8
commit
9de5f281cd
2 changed files with 9 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Thu Mar 24 22:48:43 2011 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* ext/sdbm/_sdbm.c: parenthesize macro arguments.
|
||||||
|
|
||||||
Thu Mar 24 14:45:57 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
Thu Mar 24 14:45:57 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* ext/openssl/ossl.c: surpress warning: shorten-64-to-32.
|
* ext/openssl/ossl.c: surpress warning: shorten-64-to-32.
|
||||||
|
|
|
@ -30,9 +30,9 @@
|
||||||
|
|
||||||
#ifdef BSD42
|
#ifdef BSD42
|
||||||
#define SEEK_SET L_SET
|
#define SEEK_SET L_SET
|
||||||
#define memset(s,c,n) bzero(s, n) /* only when c is zero */
|
#define memset(s,c,n) bzero((s), (n)) /* only when c is zero */
|
||||||
#define memcpy(s1,s2,n) bcopy(s2, s1, n)
|
#define memcpy(s1,s2,n) bcopy((s2), (s1), (n))
|
||||||
#define memcmp(s1,s2,n) bcmp(s1,s2,n)
|
#define memcmp(s1,s2,n) bcmp((s1),(s2),(n))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -60,8 +60,8 @@
|
||||||
#define GET_SHORT(p, i) (((unsigned)((unsigned char *)(p))[(i)*2] << 8) + (((unsigned char *)(p))[(i)*2 + 1]))
|
#define GET_SHORT(p, i) (((unsigned)((unsigned char *)(p))[(i)*2] << 8) + (((unsigned char *)(p))[(i)*2 + 1]))
|
||||||
#define PUT_SHORT(p, i, s) (((unsigned char *)(p))[(i)*2] = (unsigned char)((s) >> 8), ((unsigned char *)(p))[(i)*2 + 1] = (unsigned char)(s))
|
#define PUT_SHORT(p, i, s) (((unsigned char *)(p))[(i)*2] = (unsigned char)((s) >> 8), ((unsigned char *)(p))[(i)*2 + 1] = (unsigned char)(s))
|
||||||
#else
|
#else
|
||||||
#define GET_SHORT(p, i) ((p)[i])
|
#define GET_SHORT(p, i) ((p)[(i)])
|
||||||
#define PUT_SHORT(p, i, s) ((p)[i] = (s))
|
#define PUT_SHORT(p, i, s) ((p)[(i)] = (s))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*#include "pair.h"*/
|
/*#include "pair.h"*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue