Skip to content
This repository was archived by the owner on Nov 22, 2023. It is now read-only.

Commit b9b2df4

Browse files
author
gek
committed
make push
1 parent b1cb9b8 commit b9b2df4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

stringutil.h

+16
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,22 @@ static inline strll* consume__bytes_with_bigstore(strll* current_node, unsigned
482482
return current_node->right;
483483
}
484484

485+
//used for whitespace....
486+
static inline strll* skip__bytes_with_bigstore(strll* current_node, unsigned long nbytes){
487+
char* text_old;
488+
text_old = current_node->text;
489+
/*
490+
current_node->text = str_null_terminated_alloc(text_old, nbytes);
491+
right_old = current_node->right;
492+
current_node->right = STRUTIL_CALLOC(1, sizeof(strll));
493+
current_node->right->right = right_old;
494+
*/
495+
//We need to
496+
current_node->data = 0;
497+
current_node->text = text_old + nbytes;
498+
return current_node;
499+
}
500+
485501

486502

487503

0 commit comments

Comments
 (0)