Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 297839 Details for
Bug 397329
dev-lang/ruby-1.9.3_p0 does not compile
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
prelude.c
prelude.c (text/plain), 2.21 KB, created by
Thomas
on 2012-01-03 20:27:29 UTC
(
hide
)
Description:
prelude.c
Filename:
MIME Type:
Creator:
Thomas
Created:
2012-01-03 20:27:29 UTC
Size:
2.21 KB
patch
obsolete
>/* -*-c-*- > THIS FILE WAS AUTOGENERATED BY tool/compile_prelude.rb. DO NOT EDIT. > > sources: prelude, enc/prelude, gem_prelude >*/ >#include "ruby/ruby.h" >#include "internal.h" >#include "vm_core.h" > > >static const char prelude_name0[] = "<internal:prelude>"; >static const char prelude_code0[] = >"class Mutex\n" >" # call-seq:\n" >" # mutex.synchronize { ... }\n" >" #\n" >" # Obtains a lock, runs the block, and releases the lock when the\n" >" # block completes. See the example under Mutex.\n" >" def synchronize\n" >" self.lock\n" >" begin\n" >" yield\n" >" ensure\n" >" self.unlock rescue nil\n" >" end\n" >" end\n" >"end\n" >"\n" >"class Thread\n" >" MUTEX_FOR_THREAD_EXCLUSIVE = Mutex.new # :nodoc:\n" >"\n" >" # call-seq:\n" >" # Thread.exclusive { block } => obj\n" >" #\n" >" # Wraps a block in Thread.critical, restoring the original value\n" >" # upon exit from the critical section, and returns the value of the\n" >" # block.\n" >" def self.exclusive\n" >" MUTEX_FOR_THREAD_EXCLUSIVE.synchronize{\n" >" yield\n" >" }\n" >" end\n" >"end\n" >; > >static const char prelude_name1[] = "<internal:enc/prelude>"; >static const char prelude_code1[] = >"%w'enc/encdb.so enc/trans/transdb.so'.each do |init|\n" >" begin\n" >" require(init)\n" >" rescue LoadError\n" >" end\n" >"end\n" >; > >static const char prelude_name2[] = "<internal:gem_prelude>"; >static const char prelude_code2[] = >"require 'rubygems.rb' if defined?(Gem)\n" >; > >#define PRELUDE_COUNT 0 > > >static void >prelude_eval(VALUE code, VALUE name, VALUE line) >{ > rb_iseq_eval(rb_iseq_compile_with_option(code, name, Qnil, line, Qtrue)); >} > >void >Init_prelude(void) >{ > prelude_eval( > rb_usascii_str_new(prelude_code0, sizeof(prelude_code0) - 1), > rb_usascii_str_new(prelude_name0, sizeof(prelude_name0) - 1), > INT2FIX(1)); > prelude_eval( > rb_usascii_str_new(prelude_code1, sizeof(prelude_code1) - 1), > rb_usascii_str_new(prelude_name1, sizeof(prelude_name1) - 1), > INT2FIX(1)); > prelude_eval( > rb_usascii_str_new(prelude_code2, sizeof(prelude_code2) - 1), > rb_usascii_str_new(prelude_name2, sizeof(prelude_name2) - 1), > INT2FIX(1)); > >#if 0 > puts(prelude_code0); > puts(prelude_code1); > puts(prelude_code2); >#endif >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 397329
:
297601
| 297839