OSDN Git Service

Use gperf to save memory.
authorSimon Forman <sforman@hushmail.com>
Fri, 3 Feb 2023 00:58:44 +0000 (16:58 -0800)
committerSimon Forman <sforman@hushmail.com>
Fri, 3 Feb 2023 00:58:44 +0000 (16:58 -0800)
commit4be1cc576767187259394869d18cb159ee294f91
treecb1e8b481df03dfec9ce384b23bb8d049e05f9e6
parent0a66f2b80447991600626f70bbf786e02767f748
Use gperf to save memory.

We check terms to see if they're in the wordlist, if they are we reuse
the string from the wordlist instead of allocating a new one.

(I've always wanted to use Gperf so I'm pretty stoked about this!)
implementations/C/KEYWORDS.txt
implementations/C/Makefile
implementations/C/joy.c
implementations/C/keywords.c
implementations/C/keywords.h [new file with mode: 0644]