[#6728] Ruby 1.3.3-990507 — matz <matz@...>

Ruby 1.3.3-990507 is out, check out:

34 messages 1999/05/07
[#6731] Re: Ruby 1.3.3-990507 — Katsuyuki Komatsu <komatsu@...> 1999/05/07

小松です。

[#6779] Re: private inner class (Re: Re: class def in class def) — Koji Oda <oda@...1.qnes.nec.co.jp>

小田@QNES です。

13 messages 1999/05/13

[#6789] Ruby 1.3.3-990513 — Yukihiro Matsumoto <matz@...>

Ruby 1.3.3-990513 is out, check out:

59 messages 1999/05/13
[#6811] Re: Ruby 1.3.3-990513 — Koji Oda <oda@...1.qnes.nec.co.jp> 1999/05/14

小田@QNES です。

[#6814] Re: Ruby 1.3.3-990513 — matz@... (Yukihiro Matsumoto) 1999/05/15

まつもと ゆきひろです

[#6821] Re: Ruby 1.3.3-990513 — Koji Oda <oda@...1.qnes.nec.co.jp> 1999/05/16

小田@QNES です。

[#6790] Re: Ruby 1.3.3-990513 — Katsuyuki Komatsu <komatsu@...> 1999/05/13

小松です。

[#6891] Ruby 1.3.3-990518 — Yukihiro Matsumoto <matz@...>

Ruby 1.3.3-990518 is out, check out:

19 messages 1999/05/18

[#6919] ext/socket/getaddrinfo.c tiny fix — Jun-ichiro itojun Hagino <itojun@...>

ext/socket/getaddrinfo.cに以下のpatchをおねがいします。

22 messages 1999/05/20
[#6921] Re: ext/socket/getaddrinfo.c tiny fix — Jun-ichiro itojun Hagino <itojun@...> 1999/05/20

[#7034] Ruby 1.3.4-990531 — Yukihiro Matsumoto <matz@...>

Ruby 1.3.4-990531 is out, check out:

25 messages 1999/05/31

[ruby-dev:6836] gcc -traditional or -ansi (Re: Ruby 1.3.3-990513)

From: Katsuyuki Komatsu <komatsu@...>
Date: 1999-05-17 04:01:56 UTC
List: ruby-dev #6836
小松です。

In the message of [ruby-dev:6791] Re: Ruby 1.3.3-990513 
    on 1999/5/13 23:21:38 itojun@iijlab.net wrote:
>>    __constってどうしていままで通ってたんだろうと思ったら、
>>    gccならOKなんですね。
>
>	AC_C_CONST(だっけ)して、constを使うべきです。

なるほど、gccのalternative keywordsというものでしたか。
    http://docs.freebsd.org/info/gcc/gcc.info.Alternate_Keywords.html
勉強になりました。

gcc.infoでは__const__になってますが、gcc-2.8.1/c-parse.gperfを
みると両方サポートしていますね。

ChangeLogによると1989年には導入されていたのか……

== gcc-2.8.1/ChangeLog.1

Wed Mar 29 09:54:13 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)

	* c-parse.y (is_reserved_word): Add keywords __asm and __inline;
	also __const and __volatile.
	(yylex): Keywords that start with `__' are recognized regardless of
	-traditional or -ansi.

	/	/	/

そうそう、gccの-traditionalと-ansiでもhpuxの定義に違いがでます。

% uname -s -r
HP-UX B.10.20
% gcc -traditional ruby-dev-6775.c; ./a.out
'hpux' is defined.
'__hpux' is defined.
% gcc -ansi ruby-dev-6775.c; ./a.out
'hpux' is not defined.
'__hpux' is defined.
% 

SunOS, Solarisのsunの定義でも同様 (t.cはhpuxをsunに変換したもの)。

% uname -s -r
SunOS 5.5.1
% gcc -traditional -o t t.c; ./t
'sun' is defined.
'__sun' is defined.
% gcc -ansi -o t t.c; ./t
'sun' is not defined.
'__sun' is defined.
% 

% uname -s -r
SunOS 4.1.4-JL
% gcc -traditional -o t t.c; ./t
'sun' is defined.
'__sun' is defined.
% gcc -ansi -o t t.c; ./t 
'sun' is not defined.
'__sun' is defined.
% 

--
小松克行 / Katsuyuki Komatsu <komatsu@sarion.co.jp>

In This Thread