[#1378] differences between Module and Class ? — Mathieu Bouchard <matju@...>

25 messages 2003/08/11
[#1387] Re: differences between Module and Class ? — matz@... (Yukihiro Matsumoto) 2003/08/12

Hi,

[#1442] Re: differences between Module and Class ? — Mathieu Bouchard <matju@...> 2003/08/21

[#1406] _id2ref bug? — Ryan Pavlik <rpav@...>

While debugging some caching code, I've come across a segfault related

22 messages 2003/08/14
[#1407] Re: _id2ref bug? — matz@... (Yukihiro Matsumoto) 2003/08/14

Hi,

[#1413] Re: _id2ref bug? (REPRODUCED, short) — Ryan Pavlik <rpav@...> 2003/08/14

On Fri, 15 Aug 2003 01:57:18 +0900

[PATCH] missing.h declarations missing return types

From: "lyle@..." <lyle@...>
Date: 2003-08-04 21:08:33 UTC
List: ruby-core #1337
All,

The declarations for snprintf() and vsnprintf() in ruby-1.8.0's "missing.h"
include file are missing their (int) return types. This was caught by an
FXRuby user who was trying to compile FXRuby-1.0.24 against the new
ruby-1.8.0 drop on his DEC Alpha box (i.e. it didn't show up for my Linux or
Win32 compiles).

I think the attached patch should be sufficient, although I haven't heard
back from this user.

Hope this helps,

Lyle

Attachments (1)

missing.h.patches (603 Bytes, text/x-diff)
Index: missing.h
===================================================================
RCS file: /src/ruby/missing.h,v
retrieving revision 1.10
diff -u -r1.10 missing.h
--- missing.h	5 Jun 2003 09:38:01 -0000	1.10
+++ missing.h	4 Aug 2003 21:04:47 -0000
@@ -128,8 +128,8 @@
 # else
 #  include <varargs.h>
 # endif
-extern snprintf __((char *, size_t n, char const *, ...));
-extern vsnprintf _((char *, size_t n, char const *, va_list));
+extern int snprintf __((char *, size_t n, char const *, ...));
+extern int vsnprintf _((char *, size_t n, char const *, va_list));
 #endif
 
 #endif /* MISSING_H */

In This Thread

Prev Next