ruby-changes:42318
From: naruse <ko1@a...>
Date: Tue, 29 Mar 2016 19:34:58 +0900 (JST)
Subject: [ruby-changes:42318] naruse:r54392 (trunk): * addr2line.c: define toupper for its use. fix r54391.
naruse 2016-03-29 19:34:54 +0900 (Tue, 29 Mar 2016) New Revision: 54392 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54392 Log: * addr2line.c: define toupper for its use. fix r54391. Modified files: trunk/ChangeLog trunk/addr2line.c Index: addr2line.c =================================================================== --- addr2line.c (revision 54391) +++ addr2line.c (revision 54392) @@ -812,8 +812,7 @@ next_line: https://github.com/ruby/ruby/blob/trunk/addr2line.c#L812 #include <stdarg.h> #define MAXNBUF (sizeof(intmax_t) * CHAR_BIT + 1) -extern int rb_toupper(int c); -#define toupper(c) rb_toupper(c) +static inline int toupper(int c) { return ('A' <= c && c <= 'Z') ? (c&0x5f) : c; } #define hex2ascii(hex) (hex2ascii_data[hex]) char const hex2ascii_data[] = "0123456789abcdefghijklmnopqrstuvwxyz"; static inline int imax(int a, int b) { return (a > b ? a : b); } Index: ChangeLog =================================================================== --- ChangeLog (revision 54391) +++ ChangeLog (revision 54392) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Mar 29 19:33:54 2016 NARUSE, Yui <naruse@r...> + + * addr2line.c: define toupper for its use. fix r54391. + Tue Mar 29 19:23:46 2016 NARUSE, Yui <naruse@r...> * include/ruby/ruby.h (rb_isupper, rb_islower, rb_isalpha, rb_isdigit, -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/