emoji.c (620B)
1 2 #include "libsheepyObject.h" 3 #include "emoji.h" 4 5 smallJsont *emList = NULL; 6 smallJsont *nerdList = NULL; 7 8 bool allocEmList(void) { 9 if (!emList) { 10 emList = allocG(rtSmallJsont); 11 parseG(emList, EM_LIST); 12 nerdList = allocG(rtSmallJsont); 13 parseG(nerdList, NERD_LIST); 14 ret true; 15 } 16 ret false; 17 } 18 19 void freeEmList(void) { 20 if (emList) { 21 terminateG(emList); 22 emList = NULL; 23 terminateG(nerdList); 24 nerdList = NULL; 25 } 26 } 27 28 // vim: set expandtab ts=2 sw=2: 29 30 bool checkLibsheepyVersionEmoji(const char *currentLibsheepyVersion) { 31 return eqG(currentLibsheepyVersion, LIBSHEEPY_VERSION); 32 } 33