summaryrefslogtreecommitdiffstats
path: root/tool
Commit message (Collapse)AuthorAgeFilesLines
* * tool/compile_prelude.rb: allows extra suffix after .c.nobu2008-04-061-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_set_sequence, iseq_insns_unification,nobu2008-04-031-3/+3
| | | | | | | | | | | | | insn_data_to_s_detail): constified. * iseq.c (insn_operand_intern, ruby_iseq_disasm_insn): ditto. * template/{insns_info,opt_sc,optunifs}.inc.tmpl: ditto. * tool/instruction.rb (OptUnifsIncGenerator): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/make-snapshot: prefixed r makes $revision always true.nobu2008-03-011-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/make-snapshot: make prereq uses MINIRUBY.matz2008-03-011-4/+4
| | | | | | | * tool/make-snapshot: allow packaging like 1.9.0-1 by second command-line argument. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/compile_prelude.rb (C_ESC): use octal escape to avoidakr2008-02-011-2/+2
| | | | | | | "\x09for (;;) ..." to be interpret the first character 0x9f. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/ifchange: remove $temp when unchanged.naruse2008-01-291-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/ifchange: commit miss.nobu2008-01-251-0/+16
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/ytab.sed: skip yydestruct hack unless yymsg exists, for bisonnobu2007-12-281-1/+1
| | | | | | | 1.8 series. [ruby-dev:32825] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns2vm.rb: add encoding option to shbang.ko12007-12-251-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/make-snapshot: add version number.nobu2007-12-251-4/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (parse.c): depends on tool/ytab.sed.nobu2007-12-251-1/+21
| | | | | | | * tool/ytab.sed: hack for bison 2.1. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/make-snapshot: argument check, and cleanup exported directory.nobu2007-12-251-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/make-snapshot: more portable.eban2007-12-251-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/make-snapshot (revision): sed does not support +.nobu2007-12-251-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * trunk/common.mk, goruby.c, golf_prelude.rb: for golfers.nobu2007-12-251-1/+2
| | | | | | | | | * trunk/main.c (main): hook for embedding applications. * trunk/tool/compile_prelude.rb: can change initialize function name. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/make-snapshot: must create configure and lex.c.eban2007-12-241-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/compile.rb, getrev.rb, runruby.rb: remove unused tools.ko12007-12-243-84/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/serb.rb: removed.akr2007-12-241-17/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (encs, ext/ripper/ripper.c): needs MFLAGS.nobu2007-12-221-0/+31
| | | | | | | | | | | | | | * configure.in (STRINGIZE): stringizing macro. * include/ruby/defines.h (STRINGIZE): fallback. * tool/make-snapshot: new file. * version.c (ruby_description, ruby_copyright): string constants for -v option. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/insns2vm.rb: moved from lib/vm/instruction.rb.ko12007-12-222-1/+1382
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/insns2vm.rb: set property.nobu2007-12-221-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/compile_prelude.rb: use erb.akr2007-12-211-18/+17
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/enc-setup.mak: extracts BUILTIN_ENCOBJS.nobu2007-12-171-0/+2
| | | | | | | * tool/compile_prelude.rb: needs srcdir. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (encs): new target to compile external encodings.nobu2007-12-172-17/+18
| | | | | | | | | | | | | | | | | | * enc/Makefile.in: became a serb template. * enc/make_encmake.rb: creates enc.mk from enc/Makefile.in using serb. * lib/mkmf.rb (relative_from): moved from ext/extmk.rb. * lib/mkmf.rb ($extmk): true if under to top source directory, not only ext. * lib/mkmf.rb (depend_rules): extracted from create_makefile. * tool/serb.rb (serb): splitted from tool/compile_prelude.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/compile_prelude.rb: fix TMP_RUBY_PREFIX for relative load pathakr2007-11-151-2/+1
| | | | | | | environment. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* escape "{" too.akr2007-11-151-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/compile_prelude.rb: absolute path may not start with a slash.akr2007-11-151-2/+2
| | | | | | | pointed by usa. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/compile_prelude.rb: fix first substitution.akr2007-11-151-3/+4
| | | | | | | use constant for prefix. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/compile_prelude.rb: use constant for prefix.akr2007-11-151-3/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/compile_prelude.rb: use simple template system for sourceakr2007-11-151-32/+38
| | | | | | | code generation. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/compile_prelude.rb (c_esc): need to escape closing brace.matz2007-11-151-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/compile_prelude.rb: adjust RbConfig::CONFIG paths relativeakr2007-11-151-12/+26
| | | | | | | to the installation path. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/makedocs.rb, template/insnstbl.html: removed.ko12007-11-131-62/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/ytab.sed: get rid of GNU sed feature. a patch from Laurentnobu2007-11-131-1/+1
| | | | | | | Sansonetti <laurent.sansonetti AT gmail.com> in [ruby-core:13470]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (parse.c), ext/ripper/depend (ripper.c): process afternobu2007-11-131-0/+10
| | | | | | | | | | | | | | | | | | | | | bison with sed. [ruby-dev:32204] * ruby.c (proc_options): use yydebug in cmdline_options. * ruby.c (process_options): set yydebug flag of parser. * parse.y (yydebug): moved into struct parser_params. * parse.y (rb_parser_get_yydebug, rb_parser_set_yydebug): parser generic methods. * */Makefile.sub (parse.c): moved to common.mk. * tool/ytab.sed: comment out yydebug definition, and substitute yyerror with parser_yyerror. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add comment for interpreter issue.akr2007-11-101-0/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* don't use 1.9 feature.akr2007-11-101-1/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gem_prelude.rb: new file for gem libraries. currently empty.akr2007-11-101-9/+55
| | | | | | | | | | | | | | | | | * common.mk: generate ext_prelude.c by prelude.rb and gem_prelude.rb. ruby (not miniruby) is linked with ext_prelude.o instead of prelude.o. * inits.c (rb_call_inits): don't call Init_prelude. * ruby.c: support --disable-gems option. (ruby_init_gems): new function to define Gem::Enable and invoke Init_prelude. (process_options): call ruby_init_gems just after ruby_init_loadpath. * tool/compile_prelude.rb: support multiple files. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (prelude.o): depends on vm_core.h now.nobu2007-08-251-5/+8
| | | | | | | | | | | * common.mk (prelude.c): depends on tool/compile_prelude.rb too. * common.mk (prereq): updates all auto-generated sources. * tool/compile_prelude.rb: separated dynamic and static portions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/compile_prelude.rb: fix to include "vm_core.h".ko12007-08-241-3/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * prelude.rb: added. run this script on startup.ko12007-08-241-0/+25
| | | | | | | | | | | | | * tool/compile_prelude.rb: compile prelude.rb to C string. (prelude.rb -> prelude.c) * common.mk: fix to build with prelude.c. * inits.c (rb_call_inits): ditto. * thread.c (Init_Thread): move definition of Mutex#synchronize to prelude.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (node_name.inc): auto-generate node name list.nobu2007-08-061-0/+4
| | | | | | | | | * iseq.c (ruby_node_name): ditto. * tool/node_name.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/insns2vm.rb, lib/vm/instruction.rb: move process bodyko12007-06-291-1294/+5
| | | | | | | | | | to lib/vm/instruction.rb. * common.mk: fix aotc rule. experimental. bin/ruby2cext is not added yet. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_macro.def: removed.ko12007-06-241-18/+0
| | | | | | | | | | | | * insn_send.ci: added. this file includes send instruction body. * common.mk: ditto. * insns.def: ditto. * tool/insns2vm.rb: ditto. * vm.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_evalbody.ci, insns.def, vm.c, tool/insns2vm.rb (rb_num_t):nobu2007-05-031-4/+4
| | | | | | | | | renamed to get rid of name clash. [ruby-dev:30504] * yarvcore.c (ruby_thread_init): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c, insns.def: remove (get|set)instancevariable2 and add ako12007-02-061-2/+0
| | | | | | | | | | | operand is_local to (get|set)instancevariable. * yarvtest/test_class.rb: add a test for class local instance variable. * parse.y (rb_decompose_ivar2): remove unused variable oid. * tool/insns2vm.rb: remove needless require. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (*.inc): use VPATH.nobu2007-02-061-93/+197
| | | | | | | | | * vm_opts.h: renamed from vm_opts.h.base. * tool/insns2vm.rb: use vm_opts.h in VPATH. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/compile.rb: replace YARVCore by VM class.matz2007-01-291-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/parse.rb: replace YARVCore by VM class.matz2007-01-291-1/+1
| | | | | | http://d.hatena.ne.jp/ysano2005/20070128 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Merge YARVko12006-12-319-0/+1606
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e