various #include fixes: since proto.h includes nano.h, only include the

former in source files; also add an #include guard to proto.h, and make
the config.h #include in nano.h match the config.h #includes everywhere
else


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2471 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
David Lawrence Ramsey 2005-04-15 18:07:26 +00:00
parent ac71fdde97
commit e527e458f4
14 changed files with 14 additions and 13 deletions

View File

@ -1,6 +1,10 @@
CVS code -
- General:
- Miscellaneous comment fixes. (DLR)
- Various #include fixes. Since proto.h includes nano.h, only
include the former in source files. Also add an #include
guard to proto.h, and make the config.h #include in nano.h
match the config.h #includes everywhere else. (DLR)
- files.c:
get_next_filename()
- Use a long instead of an int for the number prepended to the

View File

@ -28,7 +28,6 @@
#include <ctype.h>
#include <assert.h>
#include "proto.h"
#include "nano.h"
#ifdef NANO_WIDE
#ifdef HAVE_WCHAR_H

View File

@ -29,7 +29,6 @@
#include <errno.h>
#include <fcntl.h>
#include "proto.h"
#include "nano.h"
#ifdef ENABLE_COLOR

View File

@ -28,7 +28,6 @@
#include <stdio.h>
#include <assert.h>
#include "proto.h"
#include "nano.h"
static bool keep_cutbuffer = FALSE;
/* Should we keep the contents of the cutbuffer? */

View File

@ -35,7 +35,6 @@
#include <pwd.h>
#include <assert.h>
#include "proto.h"
#include "nano.h"
static file_format fmt = NIX_FILE;
/* The format of the current file. */

View File

@ -26,7 +26,6 @@
#include <stdlib.h>
#include <assert.h>
#include "proto.h"
#include "nano.h"
/* Global variables */

View File

@ -28,7 +28,6 @@
#include <ctype.h>
#include <assert.h>
#include "proto.h"
#include "nano.h"
void do_first_line(void)
{

View File

@ -38,7 +38,6 @@
#include <locale.h>
#include <assert.h>
#include "proto.h"
#include "nano.h"
#ifdef HAVE_TERMIOS_H
#include <termios.h>

View File

@ -22,8 +22,12 @@
#ifndef NANO_H
#define NANO_H 1
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef __TANDEM
/* Tandem NonStop Kernel */
/* Tandem NonStop Kernel. */
#include <floss.h>
#define NANO_ROOT_UID 65535
#else
@ -88,7 +92,6 @@
#include <stddef.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "config.h"
/* If no snprintf() or vsnprintf(), use the versions from glib. */
#if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF)

View File

@ -19,6 +19,9 @@
* *
**************************************************************************/
#ifndef PROTO_H
#define PROTO_H 1
/* Externs. */
#include <sys/types.h>
@ -696,3 +699,5 @@ void dump_buffer_reverse(void);
#ifdef NANO_EXTRA
void do_credits(void);
#endif
#endif /* !PROTO_H */

View File

@ -32,7 +32,6 @@
#include <ctype.h>
#include <assert.h>
#include "proto.h"
#include "nano.h"
#ifdef ENABLE_NANORC

View File

@ -31,7 +31,6 @@
#include <errno.h>
#include <assert.h>
#include "proto.h"
#include "nano.h"
static bool search_last_line = FALSE;
/* Have we gone past the last line while searching? */

View File

@ -32,7 +32,6 @@
#include <errno.h>
#include <assert.h>
#include "proto.h"
#include "nano.h"
#ifdef HAVE_REGEX_H
#ifdef BROKEN_REGEXEC

View File

@ -30,7 +30,6 @@
#include <ctype.h>
#include <assert.h>
#include "proto.h"
#include "nano.h"
static int *key_buffer = NULL;
/* The default keystroke buffer,