[前][次][番号順一覧][スレッド一覧]

ruby-changes:21046

From: naruse <ko1@a...>
Date: Sat, 27 Aug 2011 18:45:25 +0900 (JST)
Subject: [ruby-changes:21046] naruse:r33095 (trunk): * internal.h (rb_strftime_timespec): move to time.c because it depends

naruse	2011-08-27 18:45:15 +0900 (Sat, 27 Aug 2011)

  New Revision: 33095

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33095

  Log:
    * internal.h (rb_strftime_timespec): move to time.c because it depends
      encoding.h.

  Modified files:
    trunk/ChangeLog
    trunk/internal.h
    trunk/time.c

Index: time.c
===================================================================
--- time.c	(revision 33094)
+++ time.c	(revision 33095)
@@ -16,6 +16,9 @@
 #include "ruby/encoding.h"
 #include "internal.h"
 
+/* strftime.c */
+size_t rb_strftime_timespec(char *s, size_t maxsize, const char *format, rb_encoding *enc, const struct vtm *vtm, struct timespec *ts, int gmt);
+
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 33094)
+++ ChangeLog	(revision 33095)
@@ -1,3 +1,8 @@
+Sat Aug 27 18:44:06 2011  NARUSE, Yui  <naruse@r...>
+
+	* internal.h (rb_strftime_timespec): move to time.c because it depends
+	  encoding.h.
+
 Sat Aug 27 18:17:58 2011  NARUSE, Yui  <naruse@r...>
 
 	* strftime.c (rb_strftime_with_timespec): get enc argument to specify
Index: internal.h
===================================================================
--- internal.h	(revision 33094)
+++ internal.h	(revision 33095)
@@ -29,8 +29,6 @@
     struct st_table *const_tbl;
 };
 
-typedef struct OnigEncodingTypeST rb_encoding;
-
 #undef RCLASS_SUPER
 #define RCLASS_EXT(c) (RCLASS(c)->ptr)
 #define RCLASS_SUPER(c) (RCLASS_EXT(c)->super)
@@ -159,9 +157,6 @@
 /* signal.c */
 int rb_get_next_signal(void);
 
-/* strftime.c */
-size_t rb_strftime_timespec(char *s, size_t maxsize, const char *format, rb_encoding *enc, const struct vtm *vtm, struct timespec *ts, int gmt);
-
 /* string.c */
 int rb_str_buf_cat_escaped_char(VALUE result, unsigned int c, int unicode_p);
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]