aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Love2000-02-04 17:56:46 +0000
committerDave Love2000-02-04 17:56:46 +0000
commit075909731b36bafd2146a6faba9978ec28a8951d (patch)
treeba23747dc45ad0a0506f0d40b264a9577d28f11c /src
parent9b7c9ebd68811438273b48faa1bda5778a7172eb (diff)
downloademacs-075909731b36bafd2146a6faba9978ec28a8951d.tar.gz
emacs-075909731b36bafd2146a6faba9978ec28a8951d.zip
Remove some unused vars.
(_GNU_SOURCE): Define (for euidaccess).
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog11
-rw-r--r--src/fileio.c11
2 files changed, 15 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0472f591024..470f5ec9aec 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,14 @@
12000-02-04 Dave Love <fx@gnu.org>
2
3 * fileio.c: Remove some unused vars.
4 (_GNU_SOURCE): Define (for euidaccess).
5
6 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
7
8 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
9 gcpro1, gcpro2.
10 (read_minibuf): Deal with allow_props correctly.
11
12000-02-03 Eli Zaretskii <eliz@is.elta.co.il> 122000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
2 13
3 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000. 14 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
diff --git a/src/fileio.c b/src/fileio.c
index 127d883a044..814c1cd73fb 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -18,6 +18,8 @@ along with GNU Emacs; see the file COPYING. If not, write to
18the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 18the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19Boston, MA 02111-1307, USA. */ 19Boston, MA 02111-1307, USA. */
20 20
21#define _GNU_SOURCE /* for euidaccess */
22
21#include <config.h> 23#include <config.h>
22 24
23#if defined (USG5) || defined (BSD_SYSTEM) || defined (LINUX) 25#if defined (USG5) || defined (BSD_SYSTEM) || defined (LINUX)
@@ -3519,7 +3521,7 @@ actually used.")
3519 We assume that the 1K-byte and 3K-byte for heading 3521 We assume that the 1K-byte and 3K-byte for heading
3520 and tailing respectively are sufficient for this 3522 and tailing respectively are sufficient for this
3521 purpose. */ 3523 purpose. */
3522 int how_many, nread; 3524 int nread;
3523 3525
3524 if (st.st_size <= (1024 * 4)) 3526 if (st.st_size <= (1024 * 4))
3525 nread = emacs_read (fd, read_buf, 1024 * 4); 3527 nread = emacs_read (fd, read_buf, 1024 * 4);
@@ -3540,7 +3542,6 @@ actually used.")
3540 XSTRING (orig_filename)->data, emacs_strerror (errno)); 3542 XSTRING (orig_filename)->data, emacs_strerror (errno));
3541 else if (nread > 0) 3543 else if (nread > 0)
3542 { 3544 {
3543 int count = specpdl_ptr - specpdl;
3544 struct buffer *prev = current_buffer; 3545 struct buffer *prev = current_buffer;
3545 3546
3546 record_unwind_protect (Fset_buffer, Fcurrent_buffer ()); 3547 record_unwind_protect (Fset_buffer, Fcurrent_buffer ());
@@ -4655,8 +4656,6 @@ This does code conversion according to the value of\n\
4655 } 4656 }
4656 else if (XINT (start) != XINT (end)) 4657 else if (XINT (start) != XINT (end))
4657 { 4658 {
4658 register int end1 = CHAR_TO_BYTE (XINT (end));
4659
4660 tem = CHAR_TO_BYTE (XINT (start)); 4659 tem = CHAR_TO_BYTE (XINT (start));
4661 4660
4662 if (XINT (start) < GPT) 4661 if (XINT (start) < GPT)
@@ -4945,7 +4944,6 @@ e_write (desc, string, start, end, coding)
4945 register char *addr; 4944 register char *addr;
4946 register int nbytes; 4945 register int nbytes;
4947 char buf[WRITE_BUF_SIZE]; 4946 char buf[WRITE_BUF_SIZE];
4948 int composing = coding->composing;
4949 int return_val = 0; 4947 int return_val = 0;
4950 4948
4951 if (start >= end) 4949 if (start >= end)
@@ -5127,7 +5125,6 @@ auto_save_error ()
5127Lisp_Object 5125Lisp_Object
5128auto_save_1 () 5126auto_save_1 ()
5129{ 5127{
5130 unsigned char *fn;
5131 struct stat st; 5128 struct stat st;
5132 5129
5133 /* Get visited file's mode to become the auto save file's mode. */ 5130 /* Get visited file's mode to become the auto save file's mode. */
@@ -5183,7 +5180,6 @@ A non-nil CURRENT-ONLY argument means save only current buffer.")
5183 FILE *stream; 5180 FILE *stream;
5184 Lisp_Object lispstream; 5181 Lisp_Object lispstream;
5185 int count = specpdl_ptr - specpdl; 5182 int count = specpdl_ptr - specpdl;
5186 int *ptr;
5187 int orig_minibuffer_auto_raise = minibuffer_auto_raise; 5183 int orig_minibuffer_auto_raise = minibuffer_auto_raise;
5188 int message_p = push_message (); 5184 int message_p = push_message ();
5189 5185
@@ -5933,3 +5929,4 @@ a non-nil value.");
5933 defsubr (&Sunix_sync); 5929 defsubr (&Sunix_sync);
5934#endif 5930#endif
5935} 5931}
5932(_GNU_SOURCE):