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

ruby-changes:52622

From: nobu <ko1@a...>
Date: Tue, 25 Sep 2018 22:42:12 +0900 (JST)
Subject: [ruby-changes:52622] nobu:r64833 (trunk): Moved `struct vtm` stuff from internal.h to timev.h

nobu	2018-09-25 22:42:02 +0900 (Tue, 25 Sep 2018)

  New Revision: 64833

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64833

  Log:
    Moved `struct vtm` stuff from internal.h to timev.h

  Modified files:
    trunk/internal.h
    trunk/timev.h
Index: timev.h
===================================================================
--- timev.h	(revision 64832)
+++ timev.h	(revision 64833)
@@ -39,4 +39,12 @@ typedef unsigned LONG_LONG unsigned_time https://github.com/ruby/ruby/blob/trunk/timev.h#L39
 # error cannot find integer type which size is same as time_t.
 #endif
 
+/* strftime.c */
+#ifdef RUBY_ENCODING_H
+VALUE rb_strftime_timespec(const char *format, size_t format_len, rb_encoding *enc,
+			   const struct vtm *vtm, struct timespec *ts, int gmt);
+VALUE rb_strftime(const char *format, size_t format_len, rb_encoding *enc,
+		  const struct vtm *vtm, VALUE timev, int gmt);
+#endif
+
 #endif
Index: internal.h
===================================================================
--- internal.h	(revision 64832)
+++ internal.h	(revision 64833)
@@ -1070,8 +1070,6 @@ VALUE rb_gvar_get(struct rb_global_entry https://github.com/ruby/ruby/blob/trunk/internal.h#L1070
 VALUE rb_gvar_set(struct rb_global_entry *, VALUE);
 VALUE rb_gvar_defined(struct rb_global_entry *);
 
-struct vtm; /* defined by timev.h */
-
 /* array.c */
 VALUE rb_ary_last(int, const VALUE *, VALUE);
 void rb_ary_set_len(VALUE, long);
@@ -1752,14 +1750,6 @@ VALUE rb_reg_new_ary(VALUE ary, int opti https://github.com/ruby/ruby/blob/trunk/internal.h#L1750
 extern int ruby_enable_coredump;
 int rb_get_next_signal(void);
 
-/* strftime.c */
-#ifdef RUBY_ENCODING_H
-VALUE rb_strftime_timespec(const char *format, size_t format_len, rb_encoding *enc,
-			   const struct vtm *vtm, struct timespec *ts, int gmt);
-VALUE rb_strftime(const char *format, size_t format_len, rb_encoding *enc,
-		  const struct vtm *vtm, VALUE timev, int gmt);
-#endif
-
 /* string.c */
 VALUE rb_fstring(VALUE);
 VALUE rb_fstring_new(const char *ptr, long len);

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

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