[#7785] rb2c — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

28 messages 1999/09/02

[#7845] [Q] irb and SizedQueue — keiju@... (Keiju ISHITSUKA)

けいじゅ@日本ラショナルソフトウェアです.

14 messages 1999/09/15

[ruby-dev:7789] Re: rb2c

From: Katsuyuki Komatsu <komatsu@...>
Date: 1999-09-02 14:40:48 UTC
List: ruby-dev #7789
小松です。

In the message of [ruby-dev:7786] Re: rb2c
    on 1999/9/2 18:46 WATANABE Hirofumi <watanabe@ase.ptg.sony.co.jp> wrote:
|cygwin も静的にリンクすれば動きました.
|rubycw.dll 対応するには evalopt.c を eval.c に反映させないと
|変数名が衝突してしまい難しそう.

mswin32も静的リンクなら動かせましたが、ちょっとパッチが必要でした。
rubymw.dll対応はrubycw.dll対応と同様に難しそう。

# regex.hのパッチがちょっと気に入らないですが、regex.cは
# ruby.h (win32/win32.h) を#includeしていないので……

Index: env.h
===================================================================
RCS file: /home/cvs/ruby/env.h,v
retrieving revision 1.2
diff -u -1 -p -r1.2 env.h
--- env.h	1999/08/13 05:45:04	1.2
+++ env.h	1999/09/02 14:29:38
@@ -12,3 +12,3 @@
 
-extern struct FRAME {
+EXTERN struct FRAME {
     VALUE self;
Index: regex.h
===================================================================
RCS file: /home/cvs/ruby/regex.h,v
retrieving revision 1.3
diff -u -1 -p -r1.3 regex.h
--- regex.h	1999/08/24 08:21:54	1.3
+++ regex.h	1999/09/02 14:29:38
@@ -86,3 +86,8 @@
 
-extern const unsigned char *re_mbctab;
+#if defined(NT) && defined(IMPORT)
+extern __declspec(dllimport)
+#else
+extern
+#endif
+const unsigned char *re_mbctab;
 #if defined(__STDC__)
Index: win32/Makefile
===================================================================
RCS file: /home/cvs/ruby/win32/Makefile,v
retrieving revision 1.3
diff -u -1 -p -r1.3 Makefile
--- win32/Makefile	1999/08/24 08:21:56	1.3
+++ win32/Makefile	1999/09/02 14:29:38
@@ -100,4 +100,4 @@ $(PROGRAM):	$(LIBRUBY) $(MAINOBJ) $(LIBR
 
-$(LIBRUBY_A):	$(OBJS)
-		lib -nologo /OUT:$@ $(OBJS)
+$(LIBRUBY_A):	$(OBJS) dmyext.obj
+		lib -nologo /OUT:$@ $(OBJS) dmyext.obj
 
Index: win32/ruby.def
===================================================================
RCS file: /home/cvs/ruby/win32/ruby.def,v
retrieving revision 1.3
diff -u -1 -p -r1.3 ruby.def
--- win32/ruby.def	1999/08/24 08:21:56	1.3
+++ win32/ruby.def	1999/09/02 14:29:38
@@ -35,2 +35,3 @@ EXPORTS
 	rb_cProc
+	ruby_frame
 	rb_cThread
@@ -74,2 +75,4 @@ EXPORTS
 	rb_cRegexp
+;regex.c
+	re_mbctab
 ;ruby.c

--
小松克行 / Katsuyuki Komatsu <komatsu@sarion.co.jp>

In This Thread