зеркало из https://github.com/github/ruby.git
Add time.rb as builtin
This commit is contained in:
Родитель
0fbf4d0374
Коммит
d5fb51d2d3
|
@ -1028,6 +1028,7 @@ BUILTIN_RB_SRCS = \
|
|||
$(srcdir)/array.rb \
|
||||
$(srcdir)/kernel.rb \
|
||||
$(srcdir)/ractor.rb \
|
||||
$(srcdir)/time.rb \
|
||||
$(srcdir)/prelude.rb \
|
||||
$(srcdir)/gem_prelude.rb \
|
||||
$(empty)
|
||||
|
@ -8386,6 +8387,7 @@ miniinit.$(OBJEXT): {$(VPATH)}st.h
|
|||
miniinit.$(OBJEXT): {$(VPATH)}subst.h
|
||||
miniinit.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
||||
miniinit.$(OBJEXT): {$(VPATH)}thread_native.h
|
||||
miniinit.$(OBJEXT): {$(VPATH)}time.rb
|
||||
miniinit.$(OBJEXT): {$(VPATH)}trace_point.rb
|
||||
miniinit.$(OBJEXT): {$(VPATH)}vm_core.h
|
||||
miniinit.$(OBJEXT): {$(VPATH)}vm_opts.h
|
||||
|
@ -14269,6 +14271,7 @@ time.$(OBJEXT): {$(VPATH)}backward/2/limits.h
|
|||
time.$(OBJEXT): {$(VPATH)}backward/2/long_long.h
|
||||
time.$(OBJEXT): {$(VPATH)}backward/2/stdalign.h
|
||||
time.$(OBJEXT): {$(VPATH)}backward/2/stdarg.h
|
||||
time.$(OBJEXT): {$(VPATH)}builtin.h
|
||||
time.$(OBJEXT): {$(VPATH)}config.h
|
||||
time.$(OBJEXT): {$(VPATH)}constant.h
|
||||
time.$(OBJEXT): {$(VPATH)}defines.h
|
||||
|
@ -14424,6 +14427,7 @@ time.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
|||
time.$(OBJEXT): {$(VPATH)}st.h
|
||||
time.$(OBJEXT): {$(VPATH)}subst.h
|
||||
time.$(OBJEXT): {$(VPATH)}time.c
|
||||
time.$(OBJEXT): {$(VPATH)}time.rbinc
|
||||
time.$(OBJEXT): {$(VPATH)}timev.h
|
||||
transcode.$(OBJEXT): $(hdrdir)/ruby.h
|
||||
transcode.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
||||
|
|
1
inits.c
1
inits.c
|
@ -96,6 +96,7 @@ rb_call_builtin_inits(void)
|
|||
BUILTIN(warning);
|
||||
BUILTIN(array);
|
||||
BUILTIN(kernel);
|
||||
BUILTIN(time);
|
||||
Init_builtin_prelude();
|
||||
}
|
||||
#undef CALL
|
||||
|
|
5
time.c
5
time.c
|
@ -43,6 +43,8 @@
|
|||
#include "ruby/encoding.h"
|
||||
#include "timev.h"
|
||||
|
||||
#include "builtin.h"
|
||||
|
||||
static ID id_submicro, id_nano_num, id_nano_den, id_offset, id_zone;
|
||||
static ID id_nanosecond, id_microsecond, id_millisecond, id_nsec, id_usec;
|
||||
static ID id_local_to_utc, id_utc_to_local, id_find_timezone;
|
||||
|
@ -5944,4 +5946,7 @@ Init_Time(void)
|
|||
#endif
|
||||
|
||||
rb_cTimeTM = Init_tm(rb_cTime, "tm");
|
||||
if (0) get_tmopt(Qnil, NULL);
|
||||
}
|
||||
|
||||
#include "time.rbinc"
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
#
|
Загрузка…
Ссылка в новой задаче