]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Merge branch 'refs/heads/t/rm_osx'
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 4 Apr 2017 06:42:28 +0000 (08:42 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 4 Apr 2017 06:52:22 +0000 (08:52 +0200)
Two simple patches which remove code and documentation related to
Mac OS. Cooking since 2017-01-04.

* refs/heads/t/rm_osx:
  build: Remove compatibility check for clock_gettime().
  Drop support for Mac OS.

1  2 
NEWS.md
interactive.c

diff --combined NEWS.md
index 2056f90c06716f40f67fa43d477e63787e780ddb,d9326db76cfa80b50a8a268fef1b29f966cdeb09..d441db42d13aaeed62942369acef56a2fdffacae
+++ b/NEWS.md
@@@ -1,14 -1,9 +1,24 @@@
  NEWS
  ====
  
++------------------------------------
++0.6.0 (to be announced) "fuzzy flux"
++------------------------------------
++- Support for Mac OS X has been removed.
++- On Linux systems, glibc-2.17 or newer is required to build the
++  source tree.
++
++Downloads:
++[tarball](./releases/paraslash-git.tar.bz2),
++
  -------------------------------------
  0.5.7 (2016-12-31) "semantic density"
  -------------------------------------
 +
 +Mostly a bug fix release, and a bunch of internal improvements.
 +The only user-visible changes are the sanity checks for the touch
 +command and the new options to the ls command.
 +
  - Speedup of the base64 decoder.
  - One of the two source browsers has been removed from the web pages.
    The doxygen API reference still contains an HTML version of each
diff --combined interactive.c
index c34a0f6eb3c5ff3fd6fcb0e85546a180d21fd880,bda5a0b8c89093abfccb0c776d368f0f0c3c5854..91ab1559629725f4b9ae25a3ec167231937bc27d
@@@ -38,7 -38,6 +38,7 @@@ struct i9e_private 
        bool caught_sigterm;
        Keymap standard_km;
        Keymap bare_km;
 +      int fd_flags[2];
  };
  static struct i9e_private i9e_private, *i9ep = &i9e_private;
  
@@@ -206,26 -205,7 +206,7 @@@ void i9e_attach_to_stdout(struct btr_no
  
  static void wipe_bottom_line(void)
  {
-       char x[] = "          ";
-       int n = i9ep->num_columns;
-       /*
-        * For reasons beyond my understanding, writing more than 68 characters
-        * here causes MacOS to mess up the terminal. Writing a line of spaces
-        * in smaller chunks works fine though. Weird.
-        */
-       fprintf(i9ep->stderr_stream, "\r");
-       while (n > 0) {
-               if (n >= sizeof(x)) {
-                       fprintf(i9ep->stderr_stream, "%s", x);
-                       n -= sizeof(x);
-                       continue;
-               }
-               x[n] = '\0';
-               fprintf(i9ep->stderr_stream, "%s", x);
-               break;
-       }
-       fprintf(i9ep->stderr_stream, "\r");
+       fprintf(i9ep->stderr_stream, "\r%s\r", i9ep->empty_line);
  }
  
  #ifndef RL_FREE_KEYMAP_DECLARED
@@@ -255,8 -235,6 +236,8 @@@ void i9e_close(void
        if (hf)
                write_history(hf);
        wipe_bottom_line();
 +      fcntl(i9ep->ici->fds[0], F_SETFL, i9ep->fd_flags[0]);
 +      fcntl(i9ep->ici->fds[1], F_SETFL, i9ep->fd_flags[1]);
  }
  
  static void clear_bottom_line(void)
@@@ -479,14 -457,6 +460,14 @@@ int i9e_open(struct i9e_client_info *ic
        memset(i9ep, 0, sizeof(struct i9e_private));
        if (!isatty(ici->fds[0]))
                return -E_I9E_SETUPTERM;
 +      ret = fcntl(ici->fds[0], F_GETFL);
 +      if (ret < 0)
 +              return -E_I9E_SETUPTERM;
 +      i9ep->fd_flags[0] = ret;
 +      ret = fcntl(ici->fds[1], F_GETFL);
 +      if (ret < 0)
 +              return -E_I9E_SETUPTERM;
 +      i9ep->fd_flags[1] = ret;
        ret = mark_fd_nonblocking(ici->fds[0]);
        if (ret < 0)
                return ret;