[#24536] 「Rubyの落し方」 v.s. ruby_1_8 — akira yamada / やまだあきら <akira@...>

<URL:http://jp.rubyist.net/magazine/?0002-RubyCore>

40 messages 2004/10/20
[#24541] Re: 「Rubyの落し方」 v.s. ruby_1_8 — Yukihiro Matsumoto <matz@...> 2004/10/20

まつもと ゆきひろです

[#24599] 1.8.2 preview3? — akira yamada / やまだあきら <akira@...> 2004/10/26

2004-10-20 (水) の 21:38 +0900 に Yukihiro Matsumoto さんは書きました:

[#24605] Re: 1.8.2 preview3? — akira yamada / やまだあきら <akira@...> 2004/10/27

2004-10-26 (火) の 16:16 +0900 に akira yamada / やまだあきら さんは書きました:

[#24606] Re: 1.8.2 preview3? — Yukihiro Matsumoto <matz@...> 2004/10/27

まつもと ゆきひろです

[#24608] Re: 1.8.2 preview3? — akira yamada / やまだあきら <akira@...> 2004/10/27

2004-10-27 (水) の 11:48 +0900 に Yukihiro Matsumoto さんは書きました:

[#24620] Re: 1.8.2 preview3? — akira yamada / やまだあきら <akira@...> 2004/10/27

2004-10-27 (水) の 12:42 +0900 に akira yamada / やまだあきら さんは書きました:

[#24629] Re: 1.8.2 preview3? — Tanaka Akira <akr@...17n.org> 2004/10/29

In article <1098888819.9446.14.camel@rice.p.arika.org>,

[ruby-dev:24550] Re: build problem: `ruby_debug_lines' undeclared

From: nobu@...
Date: 2004-10-20 15:44:48 UTC
List: ruby-dev #24550
なかだです。

At Wed, 20 Oct 2004 23:57:00 +0900,
Tanaka Akira wrote in [ruby-dev:24547]:
> 次のように ripper でコンパイルエラーとなります。
> 
> % make
> ...
> compiling ripper
> make[1]: Entering directory `/tmp/z/ruby/ext/ripper'
> gcc -fPIC -g -O2  -I. -I../.. -I../../. -I../.././ext/ripper   -DRIPPER -c ripper.c
> ripper.y: In function `lex_getline':
> ripper.y:4407: error: `ruby_debug_lines' undeclared (first use in this function)

struct parser_params ではコメントアウトされてるようですが、なに
かまずいことがあるんでしょうか。


Index: parse.y
===================================================================
RCS file: /cvs/ruby/src/ruby/parse.y,v
retrieving revision 1.352
diff -U2 -p -d -r1.352 parse.y
--- parse.y	20 Oct 2004 06:53:41 -0000	1.352
+++ parse.y	20 Oct 2004 15:39:17 -0000
@@ -147,5 +147,5 @@ struct parser_params {
     int parser_heredoc_end;
     int parser_command_start;
-    /*VALUE parser_ruby_debug_lines;*/
+    VALUE parser_ruby_debug_lines;
     int parser_lex_gets_ptr;
     VALUE (*parser_lex_gets) _((struct parser_params*,VALUE));
@@ -191,5 +191,5 @@ static int parser_yyerror _((struct pars
 #define heredoc_end		(parser->parser_heredoc_end)
 #define command_start		(parser->parser_command_start)
-/*#define ruby_debug_lines	(parser->parser_ruby_debug_lines)*/
+#define ruby_debug_lines	(parser->parser_ruby_debug_lines)
 #define lex_gets_ptr		(parser->parser_lex_gets_ptr)
 #define lex_gets		(parser->parser_lex_gets)
@@ -4316,5 +4316,4 @@ parser_yyerror(parser, msg)
 #ifndef RIPPER
 int ruby__end__seen;
-static VALUE ruby_debug_lines;
 
 static NODE*
@@ -7763,5 +7762,4 @@ void
 rb_gc_mark_parser()
 {
-    rb_gc_mark(ruby_debug_lines);
 }
 
@@ -8176,4 +8174,5 @@ parser_mark(ptr)
     rb_gc_mark(p->parser_lex_input);
     rb_gc_mark(p->parser_lex_lastline);
+    rb_gc_mark(p->parser_ruby_debug_lines);
 #ifdef RIPPER
     rb_gc_mark(p->parser_ruby_sourcefile);
 

-- 
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
    中田 伸悦

In This Thread

Prev Next