emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r111806: Remove functions and macros


From: Eli Zaretskii
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r111806: Remove functions and macros unused on MS-Windows.
Date: Sat, 16 Feb 2013 16:16:07 +0200
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 111806
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Sat 2013-02-16 16:16:07 +0200
message:
  Remove functions and macros unused on MS-Windows.
  
   src/w32.c (sys_chown): Remove unused function.
  
   nt/inc/ms-w32.h (chown, logb): Remove, unused.
modified:
  nt/ChangeLog
  nt/inc/ms-w32.h
  src/ChangeLog
  src/w32.c
=== modified file 'nt/ChangeLog'
--- a/nt/ChangeLog      2013-02-16 13:59:37 +0000
+++ b/nt/ChangeLog      2013-02-16 14:16:07 +0000
@@ -2,6 +2,7 @@
 
        * inc/ms-w32.h (__STDC__): Fiddle with value only for MSVC.
        (Bug#9066)
+       (chown, logb): Remove, unused.
 
 2013-02-13  Juanma Barranquero  <address@hidden>
 

=== modified file 'nt/inc/ms-w32.h'
--- a/nt/inc/ms-w32.h   2013-02-16 13:59:37 +0000
+++ b/nt/inc/ms-w32.h   2013-02-16 14:16:07 +0000
@@ -149,7 +149,6 @@
 #define chdir   sys_chdir
 #undef chmod
 #define chmod   sys_chmod
-#define chown   sys_chown
 #undef close
 #define close   sys_close
 #undef creat
@@ -222,7 +221,6 @@
 #define strtoll   _strtoi64
 #endif
 #define isatty    _isatty
-#define logb      _logb
 #define _longjmp  longjmp
 #define lseek     _lseek
 #define popen     _popen

=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2013-02-16 13:59:37 +0000
+++ b/src/ChangeLog     2013-02-16 14:16:07 +0000
@@ -1,5 +1,7 @@
 2013-02-16  Eli Zaretskii  <address@hidden>
 
+       * w32.c (sys_chown): Remove unused function.
+
        * w32term.c <input_signal_count>: Declare 'volatile'
        unconditionally.  (Bug#9066)
 

=== modified file 'src/w32.c'
--- a/src/w32.c 2013-02-16 11:08:49 +0000
+++ b/src/w32.c 2013-02-16 14:16:07 +0000
@@ -3220,14 +3220,6 @@
 }
 
 int
-sys_chown (const char *path, uid_t owner, gid_t group)
-{
-  if (sys_chmod (path, S_IREAD) == -1) /* check if file exists */
-    return -1;
-  return 0;
-}
-
-int
 sys_creat (const char * path, int mode)
 {
   return _creat (map_w32_filename (path, NULL), mode);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]