summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-10-18 22:49:03 +0000
committerPaul Buetow <paul@buetow.org>2008-10-18 22:49:03 +0000
commit41e590f05d295a40ba4633d493be1ffe28f16ddf (patch)
treecb743603e32acba4c27f8ddfe4f105d1941efe4f /src/core
parentcb1450b796eff3c8830616e2e9a3d83d4dfb4900 (diff)
examples work now again
Diffstat (limited to 'src/core')
-rw-r--r--src/core/interpret.c12
-rw-r--r--src/core/token.c4
2 files changed, 8 insertions, 8 deletions
diff --git a/src/core/interpret.c b/src/core/interpret.c
index 5aa07ef..a69e85a 100644
--- a/src/core/interpret.c
+++ b/src/core/interpret.c
@@ -175,7 +175,7 @@ _var_decl(Interpret *p_interpret) {
_CHECK TRACK
switch (p_interpret->tt) {
- //case TT_ARR: //TODO cleanup TT_ARR
+ //case TT_ARR: //TODO cleanup TT_ARR
case TT_MY:
{
if (_NEXT_TT != TT_IDENT)
@@ -200,7 +200,7 @@ _var_decl(Interpret *p_interpret) {
}
}
default:
- break;
+ break;
}
return (0);
@@ -226,8 +226,8 @@ _var_assign(Interpret *p_interpret) {
p_interpret->p_stack = stack_new();
if (_expression_(p_interpret)) {
- function_process_buildin(p_interpret, p_token,
- p_interpret->p_stack);
+ function_process_buildin(p_interpret, p_token,
+ p_interpret->p_stack);
stack_merge(p_stack, p_interpret->p_stack);
stack_delete(p_interpret->p_stack);
@@ -917,9 +917,9 @@ _term(Interpret *p_interpret) {
Token *p_token = p_interpret->p_token;
_NEXT
- Token *p_token_arr = token_new_array(ARRAY_SIZE);
+ Token *p_token_arr = token_new_array(ARRAY_SIZE);
stack_push(p_interpret->p_stack, p_token_arr);
- _INTERPRET_ERROR("arrays not yet fully implemented", p_token_arr);
+ _INTERPRET_ERROR("arrays not yet fully implemented", p_token_arr);
}
break;
diff --git a/src/core/token.c b/src/core/token.c
index 1a2aec9..4626e5a 100644
--- a/src/core/token.c
+++ b/src/core/token.c
@@ -344,8 +344,8 @@ token_delete(Token *p_token) {
if (p_token->c_val)
free(p_token->c_val);
- if (p_token->p_array)
- array_delete(p_token->p_array);
+ if (p_token->p_array)
+ array_delete(p_token->p_array);
free(p_token);
}