Commit Graph

33 Commits

Author SHA1 Message Date
mattn a9ac721e38 Fix build on mingw32 2014-03-06 19:57:22 +09:00
unak 561c2a1581 fixed broken gettimeofday implementation for Windows
small, but critical typo :)
2014-03-06 12:40:48 +09:00
Yukihiro "Matz" Matsumoto 1bba236cb2 Merge pull request #1812 from cremno/time-3
mruby-time: add gettimeofday(2) for Windows
2014-03-06 01:43:06 +09:00
cremno 890ef11fde mruby-time: add gettimeofday(2) for Windows 2014-03-05 17:13:13 +01:00
cremno 69b231ece5 mruby-time: fix indentation in mrb_time_asctime 2014-03-05 17:08:51 +01:00
cremno 96d3bc2811 mruby-time: store timezone name directly 2014-03-05 17:08:51 +01:00
cremno 9b3033bb53 mruby-time: timezone_names should be const 2014-03-05 17:08:50 +01:00
cremno e34b69f582 mruby-time: store strings directly instead of pointers to them 2014-03-05 17:08:44 +01:00
cremno 333840ba61 mruby-time: mrb_time_type should be const 2014-03-05 16:53:42 +01:00
cremno f9c88e9c68 mruby-time: fix two tiny typos in comments 2014-03-05 16:53:41 +01:00
cremno c088797107 mruby-time: rearrange header order 2014-03-05 16:53:41 +01:00
cremno bf48f5ec87 mruby-time: remove trailing whitespace 2014-03-05 16:53:40 +01:00
cubicdaiya 67de10bfcb use C style comments instead of C++ style comments
According to CONTRIBUTING.md,

Don't use C++ style comments

 /* This is the prefered comment style */

Use C++ style comments only for temporary comment e.g. commenting out some code lines.
2014-03-01 03:31:45 +09:00
cubicdaiya 96c24b0a37 small-optimization2 for mrb_time_zone
mrb_str_new_static is more efficient than mrb_str_new in this case.
2014-02-25 15:24:02 +09:00
cubicdaiya 985e4892cf small-optimization for mrb_time_zone
Using mrb_str_new instead of mrb_str_new_cstr
2014-02-25 15:03:35 +09:00
Yukihiro "Matz" Matsumoto 4a2c37df93 made mrb_define_class to return existing class, with heavy refactoring 2014-02-08 13:44:31 +09:00
Yukihiro "Matz" Matsumoto b12d9a8700 remove alloc from Time class 2013-08-15 01:37:03 +09:00
Yukihiro "Matz" Matsumoto b225e4cc82 redesign mruby/data.h API; use DATA_PTR() for raw data pointer, DATA_GET_PTR() to type safe retrieval (TypeError will be raised), DATA_CHECK_GET_PTR() to get nil if type mismatched 2013-08-15 01:33:36 +09:00
Yukihiro "Matz" Matsumoto b7d6b4d0ce define allocation method for Time class; close #1474 2013-08-14 16:50:52 +09:00
Blaž Hrastnik ac4a6d35b9 muby-time: use mrb_free directly 2013-08-05 18:55:55 +02:00
Tomoyuki Sahara 4ab62e3f81 fix typo: Tus -> Tue. 2013-06-18 13:24:16 +09:00
kimu_shu e720782f81 Add MRB_WORD_BOXING mode (represent mrb_value as a word) 2013-05-26 10:09:17 +09:00
Yukihiro "Matz" Matsumoto 1b31cbfbc8 add new macro MRB_ARGS_ARG(n1,n2) to specify required and optional arugments at once 2013-04-25 11:53:36 +09:00
Yukihiro "Matz" Matsumoto 30d580ecbc rename every ARGS_XXX to MRB_ARGS_XXX; ref #1206 2013-04-25 09:47:36 +09:00
Yukihiro "Matz" Matsumoto 75f5535c4f rename DATA API: mrb_get_datatype -> mrb_data_get_ptr; mrb_check_datatype -> mrb_data_check_and_get 2013-04-04 04:30:39 +09:00
MATSUMOTO Ryosuke 7328b68b9f Adjusted indent, space and tab 2013-03-24 11:35:42 +09:00
Yukihiro Matz Matsumoto d0d920e909 rename mrb_true_or_false_value() to mrb_bool_value() 2013-03-19 12:03:54 +09:00
Masaki Muranaka b0a940ee54 Remove the macro mrb_bool_value(). Use mrb_true_or_false() instead. 2013-03-19 11:03:08 +09:00
Masaki Muranaka a11e7f3c30 Remove unused string.h. 2013-03-16 18:08:18 +09:00
Tomoyuki Sahara d82fc884d3 set DATA_TYPE as soon as possible. 2013-03-13 14:04:43 +09:00
Carson McDonald c261fffa68 Fix typo 2013-03-11 09:12:33 -04:00
Carson McDonald 145c1fe275 Fix two typos 2013-03-01 10:09:12 -05:00
Yuichiro MASUI f4485ee1eb s/mgem/mrbgem/ 2013-02-28 11:55:22 +09:00