ttate
41cd3d868d
added missing files.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-04 14:01:22 +00:00
ttate
bda37095ca
added new files.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-04 13:35:37 +00:00
ttate
4ae9132605
remove all files to replace ruby-dl with ruby-dl2.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-04 13:29:49 +00:00
ttate
e849cce8a0
bugfix.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-03 14:38:31 +00:00
nobu
bf48e22869
* ext/dl/sym.c (rb_dlsym_initialize): extract internal pointers after
...
all argument conversion. fixed: [ruby-dev:25271]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-21 23:35:11 +00:00
ttate
ba2fce1507
devided DL::Types#encode_type into three methods.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-14 12:42:42 +00:00
akr
78f7b7036b
* rubyio.h, io.c, ext/dl/dl.c, ext/pty/pty.c, ext/socket/socket.c:
...
create FILE object only when required: popen(3) and DL's IO#to_ptr.
[ruby-dev:25122]
* io.c (rb_io_binmode): use setmode for Human68k. [ruby-dev:25121]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-08 13:26:27 +00:00
ttate
f7884c6beb
bugfix for [ruby-talk:121309].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-25 08:39:31 +00:00
ttate
f7a5ee56d7
Use 'P' instead of 'p' in types.rb.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-25 08:15:29 +00:00
ttate
733a3adc79
improved encode_type() in types.rb for [ruby-talk:121175].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-24 16:38:38 +00:00
eban
49fb289ea1
* MANIFEST, ext/**/MANIFEST: removed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-01 10:13:52 +00:00
ttate
0748ee8b90
Use NUM2INT to convert short values.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-23 06:05:15 +00:00
ttate
f427cf9352
should use 'c' for 'unsigned char ref'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-21 12:47:48 +00:00
ttate
2ce5bb2594
added 'const char *' to use the type specifier 'S' instead of 'char *'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-16 15:22:20 +00:00
ttate
1ebcad550f
bugfix for Importable.callback().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-20 18:22:03 +00:00
ttate
c863d62b6f
Merged Nakada-san's patch [ruby-core:02916].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-23 08:11:36 +00:00
nobu
faab8f264d
* configure.in (ieeefp.h), numeric.c: needed for finite() on
...
Solaris. [ruby-core:01921]
* file.c (rb_stat_inspect): adjust format specifier.
* parse.c (arg_prepend): nodetype() is for debug use.
* ruby.h (ISASCII, etc): cast to int to get rid of warning.
* ruby.h (alloca.h): include even in GCC. [ruby-core:01925]
* ext/bigdecimal/bigdecimal.c (GetVpValue): adjust format
specifier.
* ext/bigdecimal/bigdecimal.c (BigDecimal_prec, BigDecimal_coerce,
BigDecimal_divmod): use rb_assoc_new() to suppress memory usage.
* ext/bigdecimal/bigdecimal.c (BigDecimal_split): ditto.
* ext/dl/sym.c (rb_dlsym_guardcall): guard itself should be
volatile.
* ext/iconv/iconv.c (iconv_convert): ensure actual parameter with
format specifier.
* ext/pty/pty.c (MasterDevice, SlaveDevice, deviceNo): do not
define unless used.
* ext/pty/pty.c (getDevice): get rid of warning.
* ext/socket/socket.c (port_str, sock_s_getaddrinfo,
sock_s_getnameinfo): FIX2INT() now returns long.
* ext/socket/socket.c (init_inetsock_internal): uninitialized
variable.
* ext/syck/rubyext.c (syck_parser_assign_io): add prototype.
* ext/syck/rubyext.c (rb_syck_mktime, yaml_org_handler): use
ISDIGIT() instead of isdigit() to avoid warnings and for
platforms which don't support non-ascii charater.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-11 02:39:59 +00:00
usa
4eaf7b1186
* ext/dl/sym.c (rb_dlsym_guardcall): __declspec(noinline) is VC7
...
feature.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-04 01:45:07 +00:00
ttate
a41f5816dd
Merged Tietew's patch of [ruby-dev:21991].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-01 23:02:44 +00:00
ttate
7924fca23e
Merge the patch of [ruby-ext:02242]. (Thanks, Masahiro Sakai)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-13 11:46:31 +00:00
ttate
c103eb6793
Bugfix for DL::Types::encode_type.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-08 14:38:15 +00:00
eban
84c2c9ac5b
* ext/dl/sym.c: typo fix(lasterror -> last_error).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-08 13:32:07 +00:00
ttate
0f8d55fa98
Add DL.win32_last_error and DL.last_error.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-08 04:48:35 +00:00
nobu
d74e7e6837
* eval.c (ruby_cleanup): initialize stack bottom for embedding.
...
[ruby-dev:21686]
* ext/dl/extconf.rb: move list of files to clean from DEPEND file,
to get rid of macro redefinitions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-23 08:59:42 +00:00
ttate
618a435178
--enable-dlstack is true in default.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-22 15:04:35 +00:00
ttate
79c3e2d004
Bugfix for PR#1196
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-22 14:29:20 +00:00
matz
8ef5da3be1
consistent parentheses in assignment RHS.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-16 17:47:19 +00:00
usa
51e7fc687e
* ext/dl/dl.c (rb_dl_callback): use rb_block_proc() instead of
...
rb_block_new().
* ext/win32ole/win32ole.c (ev_on_event): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-06-16 07:25:38 +00:00
matz
bad7546f15
* gc.c (define_final): eliminate rb_f_lambda() call.
...
* class.c (rb_scan_args): ditto.
* signal.c (sig_trap): ditto.
* hash.c (rb_hash_initialize): ditto.
* variable.c (rb_f_trace_var): ditto.
* ext/dl/dl.c (rb_dl_callback): ditto.
* ext/win32ole/win32ole.c (ev_on_event): ditto.
* eval.c (ruby_cleanup): $SAFE is turned off in the finalization.
Each END proc should preserve its own $SAFE level. [ruby-core:01119]
* marshal.c (marshal_load): remove unused variable "hash".
[ruby-core:01120]
* hash.c (env_str_new): freeze strings from ENV. [ruby-talk:72860]
* array.c (rb_ary_first): optional argument to retrieve first n
elements.
* array.c (rb_ary_last): optional argument to retrieve last n
elements.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-06-06 09:44:22 +00:00
matz
fec60bc7c4
* eval.c (avalue_to_svalue): use rb_check_array_type() again.
...
Clarify how "to_ary" and "to_a" work. [ruby-talk:68155]
* eval.c (svalue_to_avalue): ditto.
* eval.c (svalue_to_mrhs): ditto.
* eval.c (rb_eval): unary splat to use to_a, but we need a hack to
exclude Object#to_a until it's removed.
* object.c (rb_Array): check obj.respond_to?("to_a"). Currently
all object respond_to "to_a", but Object#to_a will be removed.
* range.c (Init_Range): undefine to_ary.
* re.c (Init_Regexp): ditto.
* regex.c (re_compile_pattern): do not warn if "-" is at the top
or last of character class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-29 02:56:18 +00:00
matz
ece972717b
security enhancement of dl library (need test).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-24 09:38:37 +00:00
ttate
ab7dac4027
Added rb_secure(4). (Thanks to Minero Aoki)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-24 07:56:37 +00:00
knu
196583d6eb
* ext/dl/MANIFEST: Exclude .cvsignore. [found by: eban]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-03 16:20:45 +00:00
eban
4a464c1fa2
* typo fix.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 10:22:04 +00:00
michal
4e13d36561
-Wall cleanups (removed unused vars, no 'code has no effect' warnings)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-16 07:38:40 +00:00
eban
ada8110f7f
* ext/dl/lib/dl/win32.rb: elimitate unnecessary "A" adding.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-12 17:36:24 +00:00
ttate
0af783bef4
Check the return value of dlopen().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-12 13:11:32 +00:00
ttate
81dded0d17
Correct the description about type specifiers.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-11 17:28:59 +00:00
eban
3074716cad
* ext/dl/lib/dl/win32.rb: compatibility improvement.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-11 15:00:56 +00:00
knu
8eba058079
* intern.h (rb_check_array_type): Declare rb_check_array_type().
...
* ext/digest/md5/md5ossl.c: Include stdio.h for sprintf() and
string.h for memcmp().
* ext/dl/ptr.c: Include ctype.h for isdigit().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-06 11:47:53 +00:00
nobu
3780ede6ef
* ext/curses/curses.c, ext/digest/digest.c, ext/dl/handle.c,
...
ext/dl/ptr.c, ext/dl/sym.c, ext/gdbm/gdbm.c, ext/iconv/iconv.c,
ext/stringio/stringio.c, ext/strscan/strscan.c,
ext/tcltklib/tcltklib.c, ext/win32ole/win32ole.c:
use rb_define_alloc_func().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-12-20 11:23:40 +00:00
ttate
f51bd1d018
Fix the conversion method.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-12-09 04:08:22 +00:00
ttate
dc260404fe
dlsizeof() should handle 'S' and 's'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-11-26 10:53:11 +00:00
ttate
8e3721dfa8
Get rid of ineffective symbols, lines, constants and so on.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-11-07 16:42:07 +00:00
ttate
3a86596df1
fixed rb_ary2cary() to convert nil.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-11-05 13:11:29 +00:00
ttate
5918d2a914
Bugfix for Importable::callback.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-31 08:37:16 +00:00
nobu
e7ce523bb1
* configure.in (XCFLAGS): CFLAGS to comile ruby itself.
...
* configure.in (LIBEXT): suffix for static libraries.
* configure.in (LIBPATHFLAG): switch template to specify library
path.
* configure.in (LINK_SO): command to link shared objects.
* configure.in (DEFFILE, ARCHFILE): miscellaneous system dependent
files.
* configure.in (EXPORT_PREFIX): prefix to exported symbols on
Windows.
* configure.in (COMMON_LIBS, COMMON_MACROS, COMMON_HEADERS):
libraries, macros and headers used in common.
* configure.in (RUBYW_INSTALL_NAME, rubyw_install_name): GUI mode
excutable name.
* Makefile.in (CFLAGS): append XCFLAGS.
* Makefile.in (PREP): miscellaneous system dependent files.
* Makefile.in (ruby.imp, ext/extinit.o): moved from ext/extmk.rb.
* Makefile.in (fake.rb): CROSS_COMPILING keeps building platform.
* Makefile.in (MAKEFILES): depend on *.in and config.status.
* Makefile.in (parse.c): replace "y.tab.c" with actual name for
byacc.
* ext/extmk.rb, lib/mkmf.rb: integrated.
* ext/extmk.rb: propagate MFLAGS.
* ext/extmk.rb (extmake): make dummy Makefile to clean even if no
Makefile is made.
* lib/mkmf.rb (older): accept multiple file names and Time
objects.
* lib/mkmf.rb (xsystem): split and qoute.
* lib/mkmf.rb (cpp_include): make include directives.
* lib/mkmf.rb (try_func): try wheather specified function is
available.
* lib/mkmf.rb (install_files): default to site-install.
* lib/mkmf.rb (checking_for): added.
* lib/mkmf.rb (find_executable0): just find executable file with
no message.
* lib/mkmf.rb (create_header): output header file is variable.
* lib/mkmf.rb (create_makefile): separate sections.
* lib/mkmf.rb (init_mkmf): initialize global variables.
* win32/Makefile.sub, bcc32/Makefile.sub (CPP, AR): added.
* bcc32/Makefile.sub (ARCH): fixed to i386.
* win32/Makefile.sub, bcc32/Makefile.sub (miniruby): should not
link EXTOBJS.
* ext/dl/extconf.rb: use try_cpp to cross compile.
* ext/dl/extconf.rb: not modify files in source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 14:03:46 +00:00
ttate
840f8bcb9e
Fixed error messages and descriptions.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-07 01:09:50 +00:00
ttate
0c767620cd
Improve the description.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-02 14:28:40 +00:00
eban
4f26f3b890
* configure.in: modify program_prefix only if specified
...
--program-prefix.
* configure.in: don't generate ext/extmk.rb.
* Makefile.in: execute directly $(srcdir)/ext/extmk.rb.
remove -Cext option, "Dir::chdir 'ext'" in ext/extmk.rb.
* {win32,bccwin32}/Makefile.sub: ditto.
* instruby.rb: ditto.
* ext/extmk.rb: renamed from ext/extmk.rb.in.
* lib/mkmf.rb (module Logging): create log files (mkmf.log)
in each extension module directories.
* ext/extmk.rb: ditto.
* lib/mkmf.rb (macro_defined?): new method.
* ext/.cvsignore: remove extmk.rb.
* ext/*/.cvsignore: add "*.def".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-09-08 09:08:15 +00:00
ttate
ee9f1463df
Merged Nakada's patch [ruby-dev:18097].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-29 13:00:22 +00:00
ttate
9dab5bc3b0
Multiple call of the initialize.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-05 01:24:13 +00:00
ttate
45a08a4296
Conform to the allocation framework.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-04 13:49:13 +00:00
ttate
2a31a00fd9
Get rid of "return".
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-07-30 22:55:51 +00:00
matz
be1d2c5f68
* string.c (rb_str_slice_bang): if there's no corresponding
...
substring, slice! should return nil without exception.
* array.c (rb_ary_insert): type fixed.
* string.c (rb_str_split_m): accept separator value nil as well.
* string.c (rb_str_become): was leaking memory.
* class.c (rb_include_module): should not alter other
classes/modules by inclusion. by this fix, local order may not
be preserved for some cases.
* class.c (include_class_new): module may be T_ICLASS; retrieve
original module information.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-07-11 08:22:18 +00:00
ttate
98007267bc
Add Importable::symbol.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-27 15:09:47 +00:00
nobu
33061b45b4
* eval.c (rb_eval): NODE_EVSTR is no longer used.
...
* eval.c (eval): not enforce to make assigned variables dynamic.
* parse.y (string): split rules to strings/xstring/regexp to allow
arbitrary statements inside string interpolation.
* parse.y (here_document): splitted into three phases.
* parse.y (literall_append, literal_concat): added.
append/concatinate string literals.
* sample/test.rb (valid_syntax): adjust line number for BEGIN.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-24 07:20:42 +00:00
ttate
28b8274e51
Include ctype.h for isdigit().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-11 14:59:43 +00:00
ttate
2690939122
Check the length of proto.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-11 14:54:51 +00:00
ttate
5434d73ef7
Get rid of STR2CSTR. (Thanks N.Nakada)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-11 14:44:53 +00:00
ttate
176542da7f
bugfix. (Thanks U.Nakamura)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-11 11:16:56 +00:00
H_Konishi
d0b3651906
new platform [bccwin32] merged.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-11 01:27:48 +00:00
ttate
ceade7b926
bugfix.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-10 18:23:39 +00:00
ttate
5c1bdda10c
Add DL::Importable::Internal::callback().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-10 17:47:48 +00:00
ttate
abca067fb6
dl.c (rb_dl_scan_callback_args): memcpy() -> cast and substitution
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-10 07:52:10 +00:00
ttate
48bd82e993
Get rid of rb_dl_set_callback() and rb_dl_get_callback().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-09 17:56:34 +00:00
ttate
2d5b7f7365
* ext/dl: change the callback mechanism.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-09 17:47:34 +00:00
ttate
15ac468a24
Get rid of a function.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-20 15:50:28 +00:00
ttate
77aad8b2f3
Get rid of a few functions.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-20 15:47:59 +00:00
ttate
4bf76b4e6c
rename PtrData::alloc and Struct#alloc to malloc respectively.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-20 15:35:48 +00:00
ttate
a2db8e72c1
Get rid of the declaration of rb_str_cat2().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-20 09:38:23 +00:00
ttate
849fb05bb1
Add DL::DLSTACK.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-15 06:23:05 +00:00
ttate
88cc3b3954
cast to long from char, short and int in ASM_PUSH_XXXX.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-12 19:54:10 +00:00
ttate
be122d47be
* ext/dl: enable dl's stack emulation for constructing function call.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-11 23:30:40 +00:00
ttate
22b07f5488
enable dl's stack emulation for constructing function call.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-11 23:13:34 +00:00
ttate
b5a8ba178f
Catch the exception SystemExit in extconf.rb.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-01 15:21:34 +00:00
ttate
ca55fe4f0d
L641: rb_float_new(*((float*)ptr)) -> rb_float_new(*((double*)ptr)).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-01 04:13:28 +00:00
ttate
076a82105a
ext/dl/ptr.c: missing break in switch statements.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-26 07:03:32 +00:00
ttate
73331b45e0
Add a sample which shows how to deal with C++ libraries.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-20 16:09:44 +00:00
ttate
75ebf39107
ext/dl/ptr.c: remove rb_dlptr_cast().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-19 04:05:54 +00:00
ttate
cb944528b6
Correct.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-14 17:19:44 +00:00
ttate
66484faf1b
Edit the documentation.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-14 15:21:23 +00:00
ttate
3a202ff2b4
raise() -> rb_raise(). (Thanks Tetsuya Watanabe)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-11 09:38:26 +00:00
ttate
3bd7404423
Add DL::Importable::Internal::Struct#alloc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-11 08:07:01 +00:00
ttate
2990a00153
Add dl.txt instead of README.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-11 07:09:33 +00:00
ttate
27a30bbf18
remove README and README.html
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-11 06:55:12 +00:00
ttate
96d0ef6670
Support "unsigned short".
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-11 06:35:48 +00:00
ttate
38698dbbe3
Add "unsigned short".
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-11 05:32:22 +00:00
ttate
1ee89595bc
define alias "struct" and "union" in the module Importable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-11 03:06:33 +00:00
ttate
061ed0d389
Add/Fix types.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-10 14:45:22 +00:00
ttate
8bd818494d
Implement the substitution for structure members.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-10 14:13:39 +00:00
ttate
dbdde236cb
improve the prototype parser.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-05 17:12:48 +00:00
ttate
f027ab80dc
"extern" and "[]" of the module Importable returns a symbol.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-05 16:33:01 +00:00
ttate
8d08d9f513
Add dl/struct.rb.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-05 05:11:11 +00:00
ttate
289fe2b8ee
Get rid of ineffective encoding/decoding procedures.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-04 14:17:19 +00:00
ttate
5f8d02cbbc
DLSTR(argv[i]) => DLSTR(RSTRING(argv[i])->ptr)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-04 11:29:56 +00:00
ttate
556556e450
bugfix (a few bugs seems to be remaining yet.)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-04 11:17:23 +00:00
ttate
1502ea7c0c
Patch [ruby-dev:16747] (Thanks Nakada)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-04 08:27:48 +00:00
ttate
b5856f738a
Add ext/dl/lib/dl/types.rb.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-03 15:43:12 +00:00
ttate
74b4c81396
Merge Nakada's patch and define StringValuePtr for ruby-1.6.
...
CV ----------------------------------------------------------------------
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-03 11:59:01 +00:00
ttate
e34e13c0c4
Add entries to each Setup.* and remove Changes files.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-02 13:16:00 +00:00
ttate
736b081e92
Get rid of the RUBY, and use CPPFLAGS="$(CPPFLAGS) -DDEBUG"
...
in the debug phase. (Thanks Nakada)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-02 12:06:23 +00:00
ttate
688c3836a4
Add ruby-dl.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-02 10:58:19 +00:00
ttate
7d711b817e
Add ruby-dl
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-02 10:56:13 +00:00