MCPcopy Index your code
hub / github.com/IBM/Project_CodeNet / token_buf_push

Function token_buf_push

tools/tokenizer/libtoken.c:476–481  ·  view source on GitHub ↗

Appends a character to the token buffer, always making sure there is room.

Source from the content-addressed store, hash-verified

474
475// Appends a character to the token buffer, always making sure there is room.
476static void token_buf_push(int cc)
477{
478 token_buf_room();
479 // There is room: token_len < token_alloc
480 token_buf[token_len++] = cc;
481}
482
483// Undoes the push action but only if there is some content.
484static int token_buf_pop(void)

Callers 1

C_tokenize_intFunction · 0.85

Calls 1

token_buf_roomFunction · 0.85

Tested by

no test coverage detected