diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2018-03-15 13:23:27 -0700 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2018-03-15 13:23:27 -0700 |
commit | 127096e4748d6381339342fc2750dd540e815fa5 (patch) | |
tree | f929d4c71456be2a17274b4a284e5cbb619daddc /util | |
parent | e6e2ee2b923f8ab7c0694d4557375ba316e15dff (diff) |
[util] Remove line buffering
Something weird seems to be going on. Just kill it.
Fixes https://github.com/harfbuzz/harfbuzz/issues/888
Diffstat (limited to 'util')
-rw-r--r-- | util/options.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/util/options.cc b/util/options.cc index db7115cf..027d0b39 100644 --- a/util/options.cc +++ b/util/options.cc @@ -803,12 +803,6 @@ text_options_t::get_line (unsigned int *len) gs = g_string_new (nullptr); } -#ifdef HAVE_SETLINEBUF - setlinebuf (fp); -#else - setvbuf(fp, NULL, _IOLBF, BUFSIZ); -#endif - g_string_set_size (gs, 0); char buf[BUFSIZ]; while (fgets (buf, sizeof (buf), fp)) { @@ -846,12 +840,6 @@ output_options_t::get_file_handle (void) fail (false, "Cannot open output file `%s': %s", g_filename_display_name (output_file), strerror (errno)); -#ifdef HAVE_SETLINEBUF - setlinebuf (fp); -#else - setvbuf(fp, NULL, _IOLBF, BUFSIZ); -#endif - return fp; } |