mruby-time: store timezone name directly

This commit is contained in:
cremno
2014-03-04 21:33:09 +01:00
parent 9b3033bb53
commit 96d3bc2811
+2 -3
View File
@@ -93,15 +93,14 @@ enum mrb_timezone {
};
typedef struct mrb_timezone_name {
const char *name;
const char name[8];
size_t len;
} mrb_timezone_name;
static const mrb_timezone_name timezone_names[] = {
{ "none", sizeof("none") - 1 },
{ "UTC", sizeof("UTC") - 1 },
{ "UTC", sizeof("UTC") - 1 },
{ "LOCAL", sizeof("LOCAL") - 1 },
{ NULL, 0 }
};
static const char mon_names[12][4] = {