Rename DEBUG macro to LOG
DEBUG is already used as the symbol to enable/disable assert() calls
This commit is contained in:
parent
8d1b9501ab
commit
7aba2a0716
4 changed files with 53 additions and 52 deletions
|
|
@ -233,12 +233,12 @@ int ts_stack_split(Stack *self, int head_index) {
|
|||
return ts_stack__add_head(self, self->heads[head_index]);
|
||||
}
|
||||
|
||||
const char *symbol_names[] = {
|
||||
"zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine",
|
||||
"ten", "eleven", "twelve"
|
||||
};
|
||||
const char *symbol_names[] = { "zero", "one", "two", "three", "four",
|
||||
"five", "six", "seven", "eight", "nine",
|
||||
"ten", "eleven", "twelve" };
|
||||
|
||||
Vector ts_stack_pop(Stack *self, int head_index, int child_count, bool count_extra) {
|
||||
Vector ts_stack_pop(Stack *self, int head_index, int child_count,
|
||||
bool count_extra) {
|
||||
StackNode *previous_head = self->heads[head_index];
|
||||
int capacity = (child_count == -1) ? STARTING_TREE_CAPACITY : child_count;
|
||||
PopPath initial_path = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue