]> git.eshelyaron.com Git - emacs.git/commitdiff
* editfns.c: Move a (normally-unused) function to its only use.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 13 Apr 2011 22:28:14 +0000 (15:28 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 13 Apr 2011 22:28:14 +0000 (15:28 -0700)
* editfns.c, lisp.h (get_operating_system_release): Remove.
* process.c (init_process) [DARWIN_OS]: Do it inline, as it is not
worth the hassle of breaking this out.

src/ChangeLog
src/editfns.c
src/lisp.h
src/process.c

index 94712577e87f3e9d5f57e2b3cf8b61ff1314c393..7b0a1de11da6c8f67ecf130ccc1ffbfca3ef84a4 100644 (file)
@@ -1,5 +1,10 @@
 2011-04-13  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * editfns.c: Move a (normally-unused) function to its only use.
+       * editfns.c, lisp.h (get_operating_system_release): Remove.
+       * process.c (init_process) [DARWIN_OS]: Do it inline, as it is not
+       worth the hassle of breaking this out.
+
        * xterm.c: Make symbols static if they're not exported.
        (x_raise_frame, x_lower_frame, x_wm_set_window_state):
        (x_wm_set_icon_pixmap, x_initialize, XTread_socket_fake_io_error):
index afb1e8ebc18dad98c67265e12c01a0a41bf45364..ce77d10cb2f4943d96649d67f5ecf0d535b0300f 100644 (file)
@@ -1403,15 +1403,6 @@ get_system_name (void)
     return "";
 }
 
-const char *
-get_operating_system_release (void)
-{
-  if (STRINGP (Voperating_system_release))
-    return SSDATA (Voperating_system_release);
-  else
-    return "";
-}
-
 DEFUN ("emacs-pid", Femacs_pid, Semacs_pid, 0, 0, 0,
        doc: /* Return the process ID of Emacs, as an integer.  */)
   (void)
index 7f4f06c5c5d25e1a71b10c0b1fb424fe39257c08..06075332b2d5d7b391e628117619e3ce2a137678 100644 (file)
@@ -2925,7 +2925,6 @@ extern Lisp_Object make_buffer_string_both (EMACS_INT, EMACS_INT, EMACS_INT,
                                            EMACS_INT, int);
 extern void init_editfns (void);
 const char *get_system_name (void);
-const char *get_operating_system_release (void);
 extern void syms_of_editfns (void);
 EXFUN (Fconstrain_to_field, 5);
 EXFUN (Ffield_end, 3);
index 89d04081eb743b8ba3f7417b3189440bdefce9bd..51546e7c78aa5f62f2701b6d393eb5a70b2e53d0 100644 (file)
@@ -7188,7 +7188,9 @@ init_process (void)
      processes.  As such, we only change the default value.  */
  if (initialized)
   {
-    const char *release = get_operating_system_release ();
+    char const *release = (STRINGP (Voperating_system_release)
+                          ? SSDATA (Voperating_system_release)
+                          : 0);
     if (!release || !release[0] || (release[0] < MIN_PTY_KERNEL_VERSION
                                    && release[1] == '.')) {
       Vprocess_connection_type = Qnil;