mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* internal.h (rb_strftime_timespec): moved from time.c and define only
if ruby/encoding.h is included. * internal.h (rb_strftime): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a09e7139a3
commit
6bc83a18b7
3 changed files with 15 additions and 7 deletions
|
@ -157,6 +157,14 @@ VALUE rb_reg_check_preprocess(VALUE);
|
|||
/* signal.c */
|
||||
int rb_get_next_signal(void);
|
||||
|
||||
/* strftime.c */
|
||||
#ifdef RUBY_ENCODING_H
|
||||
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);
|
||||
size_t rb_strftime(char *s, size_t maxsize, const char *format, rb_encoding *enc,
|
||||
const struct vtm *vtm, VALUE timev, int gmt);
|
||||
#endif
|
||||
|
||||
/* string.c */
|
||||
int rb_str_buf_cat_escaped_char(VALUE result, unsigned int c, int unicode_p);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue