GNU Globalの修正

Doxygenの為に、MacOS XGNU Globalをビルドした。なぜかlangmapのエラーが出ました。うぅ、プログラムにバグがあったよ…バッファをフラッシュしないのでlangmapをparseする時にエラーになってしまった。langmap.cのsetup_langmap()とmake_suffixes()と言う二つの関数にバッファフラッシュするようにしたら、うまくできました。

void
setup_langmap(const char *map)
{
  ...
  if ( (onsuffix == 0 && *p == ',') || (onsuffix == 1 && *p == ':') )
    die_with_code(2, "syntax error in langmap '%s'.", map);
  fflush(stdout); // Flush stdout...
  ...
}

void
make_suffixes(const char *langmap, STRBUF *sb)
{
  ...
  if ( (onsuffix == 0 && *p == ',') || (onsuffix == 1 && *p == ':') )
    die_with_code(2, "syntax error in langmap '%s'.", langmap);
  fflush(stdout); // Flush stdout...
  ...
}