From: Michal Rokos Date: 2002-09-18T00:27:32+09:00 Subject: Re: [Fix, NO alloca] Parse.y Hello, On Tue, Sep 17, 2002 at 01:29:01AM +0900, Yukihiro Matsumoto wrote: > In message "Re: [Fix, NO alloca] Parse.y" > on 02/09/13, Michal Rokos writes: > > | I'm just wondering if somebody looked at the patch I sent. (I > | don't think the ALLOCA->ALLOC part, but the pard in 2nd chunk > | about (id =)... > > |> strcpy(buf, name); > |> strcat(buf, "="); > |> - rb_intern(buf); > |> + id = rb_intern(buf); > |^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (here it is) > |> + free(buf); > |> return rb_id2name(id); > > Surprisingly, there's no differnce. rb_intern() registers "=" > appended name, whose assigned id should be equal to id, so that > rb_id2name(id) always return "=" appended name. Thanks for hint. Now it's clear. Michal -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Michal Rokos Czech Technical University, Prague e-mail: m.rokos@sh.cvut.cz icq: 36118339 jabber: majkl@jabber.cz -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-