зеркало из https://github.com/github/ruby.git
* 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:
Родитель
3a16cc24e8
Коммит
9de5f281cd
|
@ -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>
|
||||
|
||||
* ext/openssl/ossl.c: surpress warning: shorten-64-to-32.
|
||||
|
|
|
@ -30,9 +30,9 @@
|
|||
|
||||
#ifdef BSD42
|
||||
#define SEEK_SET L_SET
|
||||
#define memset(s,c,n) bzero(s, n) /* only when c is zero */
|
||||
#define memcpy(s1,s2,n) bcopy(s2, s1, n)
|
||||
#define memcmp(s1,s2,n) bcmp(s1,s2,n)
|
||||
#define memset(s,c,n) bzero((s), (n)) /* only when c is zero */
|
||||
#define memcpy(s1,s2,n) bcopy((s2), (s1), (n))
|
||||
#define memcmp(s1,s2,n) bcmp((s1),(s2),(n))
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
@ -60,8 +60,8 @@
|
|||
#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))
|
||||
#else
|
||||
#define GET_SHORT(p, i) ((p)[i])
|
||||
#define PUT_SHORT(p, i, s) ((p)[i] = (s))
|
||||
#define GET_SHORT(p, i) ((p)[(i)])
|
||||
#define PUT_SHORT(p, i, s) ((p)[(i)] = (s))
|
||||
#endif
|
||||
|
||||
/*#include "pair.h"*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче