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
aeca2316
Commit
aeca2316
authored
May 19, 2012
by
Yukihiro Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove dependency to node.h and pool.h
parent
cb8b4691
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
11 deletions
+14
-11
include/mruby.h
include/mruby.h
+8
-0
include/mruby/compile.h
include/mruby/compile.h
+0
-2
src/codegen.c
src/codegen.c
+3
-2
src/parse.y
src/parse.y
+3
-1
src/pool.h
src/pool.h
+0
-6
No files found.
include/mruby.h
View file @
aeca2316
...
...
@@ -588,6 +588,14 @@ int mrb_sourceline(void);
void
ruby_default_signal
(
int
sig
);
mrb_value
mrb_attr_get
(
mrb_state
*
mrb
,
mrb_value
obj
,
mrb_sym
id
);
/* memory pool implementation */
typedef
struct
mrb_pool
mrb_pool
;
struct
mrb_pool
*
mrb_pool_open
(
mrb_state
*
);
void
mrb_pool_close
(
struct
mrb_pool
*
);
void
*
mrb_pool_alloc
(
struct
mrb_pool
*
,
size_t
);
void
*
mrb_pool_realloc
(
struct
mrb_pool
*
,
void
*
,
size_t
oldlen
,
size_t
newlen
);
int
mrb_pool_can_realloc
(
struct
mrb_pool
*
,
void
*
,
size_t
);
#if defined(__cplusplus)
}
/* extern "C" { */
#endif
...
...
include/mruby/compile.h
View file @
aeca2316
...
...
@@ -19,8 +19,6 @@ typedef struct mrb_ast_node {
struct
mrb_ast_node
*
car
,
*
cdr
;
}
mrb_ast_node
;
#include "node.h"
#include "pool.h"
#include <stdio.h>
enum
mrb_lex_state_enum
{
...
...
src/codegen.c
View file @
aeca2316
...
...
@@ -8,11 +8,12 @@
#define CODEGEN_DUMP
#include "mruby.h"
#include "mruby/string.h"
#include "mruby/irep.h"
#include "mruby/compile.h"
#include "mruby/proc.h"
#include "mruby/compile.h"
#include "opcode.h"
#include "
mruby/string
.h"
#include "
node
.h"
#include <string.h>
#include <stdlib.h>
...
...
src/parse.y
View file @
aeca2316
...
...
@@ -13,8 +13,10 @@
#define YYSTACK_USE_ALLOCA 0
#include "mruby.h"
#include "st.h"
#include "mruby/compile.h"
#include "node.h"
#include "st.h"
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
...
...
src/pool.h
View file @
aeca2316
...
...
@@ -17,9 +17,3 @@ typedef struct mrb_pool {
char
page
[
1
];
}
*
pages
;
}
mrb_pool
;
mrb_pool
*
mrb_pool_open
(
mrb_state
*
);
void
mrb_pool_close
(
mrb_pool
*
);
void
*
mrb_pool_alloc
(
mrb_pool
*
,
size_t
);
void
*
mrb_pool_realloc
(
mrb_pool
*
,
void
*
,
size_t
oldlen
,
size_t
newlen
);
int
mrb_pool_can_realloc
(
mrb_pool
*
,
void
*
,
size_t
);
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