token: Rename token_destroy() to token_uninit().
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 9 May 2021 22:01:34 +0000 (15:01 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 9 May 2021 22:01:34 +0000 (15:01 -0700)
commit1d424c5e30a08aa1047c47a2f8a2fe1e02d02a3e
treeb9b60775ad5ae7f029737da78f34504a1c855616
parent321290aa58ad553951a4448ea512ebeed4ddf9b1
token: Rename token_destroy() to token_uninit().

This better fits the convention that "destroy" functions free the argument,
whereas "uninit" frees only the members of the argument structure.
src/language/lexer/lexer.c
src/language/lexer/token.c
src/language/lexer/token.h
tests/language/lexer/scan-test.c