so it doesn't need to be included in files that include nano.h
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2053
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
get_totals(); changes to write_marked(), do_int_spell_fix(),
do_alt_speller(), handle_sigwinch(), and do_replace_loop().
(DLR)
+ - Remove most redundant includes of sys/stat.h. It's included
+ in nano.h, so it doesn't need to be included in files that
+ include nano.h. (DLR)
- files.c:
do_insertfile()
- Simplify by reusing variables whereever possible, and add a
#include <string.h>
#include <stdio.h>
#include <errno.h>
-#include <sys/stat.h>
#include <fcntl.h>
#include "proto.h"
#include "nano.h"
#include <stdio.h>
#include <unistd.h>
#include <sys/wait.h>
-#include <sys/stat.h>
#include <utime.h>
#include <fcntl.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
-#include <sys/stat.h>
#include "proto.h"
#include "nano.h"
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
-#include <sys/stat.h>
#include <sys/ioctl.h>
#include <sys/param.h>
#include <sys/wait.h>
/* Externs. */
-#include <sys/stat.h>
#include <sys/types.h>
+#include <sys/stat.h>
#ifdef HAVE_REGEX_H
#include <regex.h>
#endif
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
-#include <sys/stat.h>
#include <fcntl.h>
#include <pwd.h>
#include <ctype.h>