Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
8c838de4
Commit
8c838de4
authored
Jun 15, 2012
by
Yukihiro Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Time class made optinal
parent
9e78fea7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
include/mrbconf.h
include/mrbconf.h
+3
-0
src/init.c
src/init.c
+2
-0
src/time.c
src/time.c
+3
-0
No files found.
include/mrbconf.h
View file @
8c838de4
...
...
@@ -39,6 +39,9 @@ typedef intptr_t mrb_sym;
#define INCLUDE_MATH
/* use (non ISO) Math module */
//#undef INCLUDE_MATH /* not use (non ISO) Math module */
#define INCLUDE_TIME
/* use Time module */
//#undef INCLUDE_TIME /* not use Time module */
#ifdef MRUBY_DEBUG_BUILD
# define PARSER_DUMP
#endif
...
...
src/init.c
View file @
8c838de4
...
...
@@ -56,7 +56,9 @@ mrb_init_core(mrb_state *mrb)
#endif
mrb_init_exception
(
mrb
);
mrb_init_print
(
mrb
);
#ifdef INCLUDE_TIME
mrb_init_time
(
mrb
);
#endif
#ifdef INCLUDE_MATH
mrb_init_math
(
mrb
);
#endif
...
...
src/time.c
View file @
8c838de4
...
...
@@ -6,6 +6,7 @@
#include "mruby.h"
#ifdef INCLUDE_TIME
#include <string.h>
#include <stdio.h>
#include <time.h>
...
...
@@ -742,3 +743,5 @@ mrb_init_time(mrb_state *mrb)
utc_offset(15.2.19.7.29)
*/
}
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment