X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgroff-font.c;h=2787a793c9d35a53c34aa686f7c83b8bad6fd1ba;hb=180d764e86e0f3b2fd0e2bb613d790adcd5aceb0;hp=15135aa1a3bdee060d5a2b73e33aa72a93be408c;hpb=f2828f801736701c0294803b5dedd4c4ab63b45e;p=pspp diff --git a/src/groff-font.c b/src/groff-font.c index 15135aa1a3..2787a793c9 100644 --- a/src/groff-font.c +++ b/src/groff-font.c @@ -19,7 +19,7 @@ #include #include "font.h" -#include +#include "error.h" #include #include #include @@ -48,12 +48,6 @@ static void add_kern (struct font_desc * font, int ch1, int ch2, int adjust); /* Typical whitespace characters for tokenizing. */ static const char whitespace[] = " \t\n\r\v"; -void -groff_init (void) -{ - space_index = font_char_name_to_index ("space"); -} - /* Some notes on the groff_font(8) manpage: DESC file format: A typical PostScript `res' would be 72000, with @@ -447,6 +441,20 @@ static struct } hash; +void +groff_init (void) +{ + space_index = font_char_name_to_index ("space"); +} + +void +groff_done (void) +{ + free (hash.tab) ; + pool_destroy(hash.ar); +} + + /* Searches for NAME in the global character code table, returns the index if found; otherwise inserts NAME and returns the new index. */