aboutsummaryrefslogtreecommitdiffstats
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* * ext/extmk.rb, lib/mkmf.rb (with_config): support --with-extensionnobu2005-10-221-0/+15
| | | | | | | options. [ruby-dev:27449] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/font.rb, ext/tk/lib/tkextlib/ICONS/icons.rb,nobu2005-10-223-4/+4
| | | | | | | | | | | | ext/tk/sample/tkextlib/treectrl/demo.rb, lib/net/imap.rb, lib/rss/parser.rb, test/rss/test_content.rb, test/rss/test_dublincore.rb, test/rss/test_syndication.rb, test/rss/test_trackback.rb, test/ruby/test_eval.rb, test/socket/test_socket.rb, test/socket/test_udp.rb: Object#fcall was renamed as Object#funcall. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * intern.h, struct.c (rb_struct_iv_get): constified.ocean2005-10-213-3/+2
| | | | | | | | | | | | | | | | | | | | | * marshal.c: avoid one VC++6 warning for implicit conversion from int to char. * ruby.h: ANSI styled. * bcc32/Makefile.sub (HAVE_HYPOT): added. * ext/socket/extconf.rb: BeOS is only one platform should call closesocket, so check __BEOS__ macro directly. (I was worried accidently HAVE_CLOSESOCKET is defined on windows again because it has it) * ext/socket/{getaddrinfo.c,socket.c}: ditto. ... these are all cosmetic changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/ripper/tools/preproc.rb (prelude): do not append surplusnobu2005-10-201-2/+2
| | | | | | | newlines to fix line numbers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): get rid of a restrictionnobu2005-10-191-1/+2
| | | | | | | | | of Borland make. fixed: [ruby-dev:27460] * ext/ripper/depend: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sorry, commit miss.usa2005-10-182-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/depend, ext/dl/extconf.rb, ext/socket/depend,usa2005-10-184-4/+4
| | | | | | | | | | ext/socket/extconf.rb: shouldn't define DESTCLEANFILES in depend, use $distcleanfiles in extconf.rb. * win32/Makefile.sub (distclean-local): should remove .config.h.time. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb: omit non-existing directories.nobu2005-10-161-6/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/charset_alias.rb (charset_alias): create wrapper libraynobu2005-10-132-6/+10
| | | | | | | | | | even if no target matched. * ext/iconv/extconf.rb: create wrapper library under RUBYARCHDIR directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c, pack.c, ext/syck/rubyext.c, ext/syck/syck.h, missing/isinf.c:nobu2005-10-132-1/+4
| | | | | | | get rid of warnings. fixed: [ruby-core:06247] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl.c (Init_openssl): should call OpenSSL_add_ssl_algorithms().gotoyuzo2005-10-121-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add testNIL2VTEMPTY.rbsuke2005-10-092-0/+30
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/scanf.rb (Scanf::FormatSpecifier#letter, #width): use matchednobu2005-10-081-1/+1
| | | | | | | | | | | | | | substring directly. * ext/nkf/lib/kconv.rb (Kconv.conv): get rid of nil.to_a. * test/ruby/test_assignment.rb, test/ruby/test_iterator.rb: followed change of sample/test.rb. * test/net/http/test_http.rb: removed superfluous splatting stars. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/charset_alias.rb: parse config.charset_alias file directly.nobu2005-10-082-12/+38
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (rb_parser_malloc, rb_parser_free): manage parser stack onnobu2005-10-081-2/+5
| | | | | | | | | | | heap. [ruby-list:41199] * parse.y (ripper_initialize): use rb_respond_to(). * ext/ripper/depend (check): get rid of re-generating ripper.y always. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/strscan/strscan.c (strscan_free): remove useless code. ↵aamine2005-10-061-1/+0
| | | | | | [ruby-dev:26368] [ruby-dev:27389] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tkextlib/tktable/tktable.rb: border_* instance methodsnagai2005-10-033-5/+10
| | | | | | | don't call 'border' subcommands. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_s_to_ptr): abolish sizeof(FILE).akr2005-09-291-1/+1
| | | | | | | [ruby-dev:27317] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c: cannot compile with Tcl/Tk8.0.xnagai2005-09-281-7/+7
| | | | | | | [ruby-dev:27335]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml/basenode.rb (YAML::BaseNode::match_segment): fix typo.nobu2005-09-271-0/+3
| | | | | | | | | | | [ruby-dev:27237], [ruby-core:05854] * lib/yaml/tag.rb (Module#yaml_as): suppress warnings. * lib/yaml/types.rb (YAML::PrivateType, YAML::DomainType): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/strscan/strscan.c: document enhancement.aamine2005-09-241-50/+34
| | | | | | | | * ext/strscan/strscan.c: update copyright year. * ext/strscan/strscan.c: update coding style. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* banish some warnings.akr2005-09-246-6/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/ripper: no longer generates .rb files.aamine2005-09-238-109/+103
| | | | | | | | | | | | | | | | | | | | | * parse.y (Init_ripper): ripper_init_eventids*() takes 1 argument, self (class Ripper). * ext/ripper/depend: target removed: `lib/ripper/core.rb'. * ext/ripper/depend: new target `eventids2table.c'. * ext/ripper/depend: new target `check'. * ext/ripper/eventids2.c: include eventids2table.c. * ext/ripper/eventids2.c: initialize SCANNER_EVENT_TABLE. * ext/ripper/extconf.rb: update $cleanfiles list. * ext/ripper/tools/generate.rb: no longer generate ripper/core.rb. * ext/ripper/tools/generate.rb: new mode `check'. * ext/ripper/tools/generate.rb: new mode `eventids2table'. * ext/ripper/lib/ripper/core.rb.in: removed. * ext/ripper/lib/ripper/core.rb: added. * ext/ripper/lib/ripper/filter.rb: update copyright year. * ext/ripper/lib/ripper/lexer.rb: ditto. * ext/ripper/lib/ripper/sexp.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/ripper/tools/generate.rb, ext/ripper/tools/preproc.rb: StringIOnobu2005-09-234-72/+64
| | | | | | | is not available for miniruby. fixed: [ruby-dev:27307] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* avoid core dump with WIN32OLE_EVENT.suke2005-09-233-5/+33
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ripper/depend: use --output option instead of redirect; nmake does ↵aamine2005-09-222-28/+64
| | | | | | | | | not remove a target when the target file is created by redirect. [ruby-dev:26466] * test/ripper/tools/preproc.rb: new option --output. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ripper/tools/generate.rb: check parser event arity.aamine2005-09-221-33/+31
| | | | | | | * test/ripper/tools/generate.rb: detect crash of parser-event-IDs and scanner-event-IDs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* build fix (tmp)aamine2005-09-221-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* forgot to addaamine2005-09-221-0/+180
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/ripper: refactoring code generation tools. [ruby-dev:27247] ↵aamine2005-09-2214-1582/+9
| | | | | | | | | | | | | | | | | | | | | | | | [ruby-dev:27273] * ext/ripper/depend: use generate.rb. * ext/ripper/lib/ripper/core.rb: removed. * ext/ripper/tools/generate-eventids1.rb: removed (code moved to generate.rb). * ext/ripper/tools/generate-ripper_rb.rb: removed (code moved to generate.rb). * ext/ripper/tools/list-parse-event-ids.rb: removed (code moved to generate.rb). * ext/ripper/tools/list-scan-event-ids.rb: removed (code moved to generate.rb). * ext/ripper/lib/ripper/core.rb: removed. * ext/ripper: refactoring tests. [ruby-dev:27273] * ext/ripper/test/check-event-arity.rb: removed (code moved to tools/generate.rb). * ext/ripper/test/check-event-coverage.rb: removed (code moved to test/ripper/test_parser_events.rb). * ext/ripper/test/check-scanner-event-coverage.rb: removed (code moved to test/ripper/test_scanner_events.rb). * ext/ripper/test/list-called-events.rb: removed. * ext/ripper/test/src_rb: removed. * ext/ripper/test/validate.rb: removed. * test/ripper/test_scanner_events.rb: check event coverage. * ext/ripper/lib/ripper/core.rb.in: update copyright year. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/ripper/extconf.rb (have_command): replaced with find_executable.nobu2005-09-221-9/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/sample/demos-en/tcolor.bak: remove.nagai2005-09-221-513/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/ripper/depend (SUFFIXES): no longer needed.usa2005-09-211-2/+1
| | | | | | | * ext/ripper/depend (c): avoid nmake problem. fixed [ruby-dev:27191] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/token.c: correctly compute identation of a blockwhy2005-09-201-110/+115
| | | | | | | scalar's parent node. [ruby-talk:150620] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/io/wait/lib/nonblock.rb: disable on platforms non-blocking flagnobu2005-09-201-1/+1
| | | | | | | is not available. fixed: [ruby-dev:27187] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/emitter.c (syck_scan_scalar): prevent indicators fromwhy2005-09-207-347/+369
| | | | | | | | | | | | | | | | | | | | | | appearing alone or at the end of plain scalars. [ruby-core:5826] * ext/syck/emitter.c (syck_emit_scalar): treat typed scalar nodes as complex keys. * lib/syck.h: version 0.60. * lib/yaml/basenode.rb (YAML::BaseNode#at): transform keys during key searches. * ext/syck/rubyext.c: loading of binary-typed nodes. prevent emission of plain strings that look like symbols, but which aren't. * ext/syck/emitter.c (syck_emit): passing an int* value to the long* parameter causes unaligned access on LP64 systems. [ruby-dev:27161] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/ripper/depend: do not make ripper/core.rb. [ruby-dev:26462]aamine2005-09-191-6/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/ripper/eventids2.c: add prefix `t' to lambda related lexer events.aamine2005-09-192-24/+24
| | | | | | | * ext/ripper/lib/ripper/core.rb: updated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (do_block): do_block event dispatches 2 args. [ruby-dev:26964]aamine2005-09-192-10/+11
| | | | | | | | * ext/ripper/lib/ripper/core.rb: updated. * ext/ripper/tools/list-parser-event-ids.rb: check arity mismatch. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_pkey.h, ossl_pkey_rsa.c, ossl_pkey_dsa.c:gotoyuzo2005-09-184-23/+19
| | | | | | | | | | | | an instance variable "private" is added to OpenSSL::PKey class. this ivar is a flag that shows whether there is a private key in the instance. * ext/openssl/ossl_engine.c: (ossl_engine_load_privkey): set private key flag. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_thread_flock): wrap the flock system call byakr2005-09-181-0/+4
| | | | | | | | | | | | | | | TRAP_BEG/TRAP_END to enable signals. [ruby-dev:27122] * ext/socket/socket.c (bsock_send): wrap the sendto and send system call by TRAP_BEG/TRAP_END to enable signals when writing to a socket which is full. [ruby-dev:27132] * io.c (rb_io_syswrite): wrap the write system call by TRAP_BEG/TRAP_END to run signal hander in syswrite method. [ruby-dev:27134] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml/rubytypes.rb: remove comments that are bungling upwhy2005-09-174-507/+508
| | | | | | | | | | | | | | | | | | the rdoc and ri output. output symbols as plain scalars. * ext/syck/rubyext.c (syck_emitter_reset): emit headless documents always. * ext/syck/emitter.c (syck_scan_scalar): quote scalars with any kind of surrounding line space, tabs or spaces alike. * ext/syck/token.c: accept tabs as whitespace, not for indentation, but strip from plain scalars. * test/yaml/test_yaml.rb: remove outdated tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/multi-tk.rb: MultiTkIp#eval_string and bg_eval_stringnagai2005-09-172-5/+5
| | | | | | | | | should call Kernel.eval on caller's safe-level instead of slave's safe-level (Of course, the given script should be evaluated on slave's safe-level). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/node.c (syck_replace_str): was using return from thematz2005-09-161-1/+1
| | | | | | | | void function. a patch from MIYAMUKO Katsuyuki <miyamuko@mtb.biglobe.ne.jp>. [ruby-dev:27111] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c: patch from "NATORI Shin"matz2005-09-161-8/+38
| | | | | | | (u-tokyo.ac.jp) applied to fix rounding bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/multi-tk.rb: fix typo on MultiTkIp#bg_eval_stringnagai2005-09-162-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c (syck_resolver_transfer): remove C++ stylematz2005-09-161-2/+4
| | | | | | | | | | comment (//). [ruby-core:05793] * lib/net/telnet.rb (Net::Telnet::waitfor): replace sysread with readpartial. [ruby-talk:127641] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/dialog.rb: If a dialog does not show up yet,nagai2005-09-152-7/+8
| | | | | | | TkDialogObj#name raises an exception. [ruby-talk:156109] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml.rb: reworking YAML::Stream to use the newwhy2005-09-1312-1874/+3776
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | emitter. * lib/yaml/stream.rb: ditto. * lib/yaml/rubytypes.rb: added Object#yaml_new. * lib/yaml/tag.rb: the tag_subclasses? method now shows up in the class. allow taguri to be set using an accessor. continue support of Object#to_yaml_type. * ext/syck/rubyext.c: new emitter code. yaml_new and yaml_initialize get called, should they be present. consolidated all the diaspora of internal node types into the family below YAML::Syck::Node -- Map, Seq, Scalar -- all of whom are SyckNode structs pointing to Ruby data. moved Object#yaml_new into the node_import and made it the default behavior. the target_class is always called wih yaml_new, prepended a parameter, which is the klass. loaded nodes through GenericResolver show their style. new Resolver#tagurize converts type ids to taguris. * ext/syck/implicit.re: were 'y' and 'n' seriously omitted?? * ext/syck/emitter.c: renovated emitter, walks the tree in advance. consolidated redundant block_styles struct into the scalar_style struct. (this means loaded nodes can now be sent back to emitter and preserve at least its very basic formatting.) * ext/syck/gram.c: headless documents of any kind allowed. * ext/syck/node.c: new syck_replace_str methods and syck_empty_* methods for rewriting node contents, while keeping the ID and other setup info. added syck_seq_assign. * ext/syck/syck.h: reflect block_styles and new node functions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/iconv.c (iconv_try), ext/iconv/extconf.rb: get rid of metanobu2005-09-092-198/+35
| | | | | | | | | characters in command line option. fixed: [ruby-talk:155369] * ext/iconv/iconv.c: protoized. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e