mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (lambda): Perl6 style -> lambda expression. [NEW]
[VERY EXPERIMENTAL] * gc.c (id2ref): must not assign pointers to long int. use LONG_LONG instead if SIZEOF_LONG < SIZEOF_VOIDP. [ruby-talk:149645] * ruby.h: use LONG_LONG to simplify the change. [ruby-talk:149645] * dir.c (dir_each): rewinddir(3) before iteration. [ruby-talk:149628] * eval.c (rb_f_throw): replace all '0x%lx' by '%p'. [ruby-talk:149553] * missing/vsnprintf.c (BSD_vfprintf): '%p' need to handle 64bit size pointer. [ruby-talk:149553] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2ea2d95e81
commit
759a63b6a3
14 changed files with 315 additions and 144 deletions
|
|
@ -789,14 +789,19 @@ fp_begin: _double = va_arg(ap, double);
|
|||
* defined manner.''
|
||||
* -- ANSI X3J11
|
||||
*/
|
||||
#ifdef _HAVE_LLP64_
|
||||
uqval = (u_long)va_arg(ap, void *);
|
||||
flags = (flags) | QUADINT | HEXPREFIX;
|
||||
#else
|
||||
ulval = (u_long)va_arg(ap, void *);
|
||||
base = 16;
|
||||
xdigs = "0123456789abcdef";
|
||||
#ifdef _HAVE_SANE_QUAD_
|
||||
flags = (flags & ~QUADINT) | HEXPREFIX;
|
||||
#else /* _HAVE_SANE_QUAD_ */
|
||||
flags = (flags) | HEXPREFIX;
|
||||
#endif /* _HAVE_SANE_QUAD_ */
|
||||
#endif
|
||||
base = 16;
|
||||
xdigs = "0123456789abcdef";
|
||||
ch = 'x';
|
||||
goto nosign;
|
||||
case 's':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue