aboutsummaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2014-03-26 03:46:54 +0800
committerTeddy <ted.sybil@gmail.com>2014-03-26 03:46:54 +0800
commitb5977b972befa8b81cae58deb5a19fc1a5f623fe (patch)
tree07ba564ec6ac120afd06e7ce72d336f0d215b5ed /ast.c
parenteebe59a7e3a8ff255ebde71b0aa89e9ade58d4aa (diff)
...
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ast.c b/ast.c
index 538b386..6bbc176 100644
--- a/ast.c
+++ b/ast.c
@@ -221,7 +221,8 @@ CNode *cnode_list_wrap(int type, CNode *list) {
}
char *cnode_debug_type_repr(CNode *ast) {
- static char buffer[1024], abuff[1024];
+ static char buffer[MAX_DEBUG_PRINT_BUFF],
+ abuff[MAX_DEBUG_PRINT_BUFF];
char *type, *aptr = abuff;
switch (ast->type)
{
@@ -388,7 +389,7 @@ void cnode_debug_print_plain(CNode *ast) {
}
void cnode_debug_print_fancy(CNode *ast, int lvl) {
- static int show[1024];
+ static int show[MAX_DEBUG_PRINT_LVL];
int i;
show[lvl] = 1;
for (i = 0; i < lvl - 1; i++)