collect all "extern bla" stuff in extern.h in order to get cross-file

type checking.  No bugs found.
This commit is contained in:
Poul-Henning Kamp 2004-01-11 19:25:56 +00:00
parent 65c0f49140
commit d8e4c710eb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124387
5 changed files with 8 additions and 16 deletions

View File

@ -61,9 +61,6 @@ __FBSDID("$FreeBSD$");
#include "mtree.h"
#include "extern.h"
extern int uflag;
extern int lineno;
#define INDENTNAMELEN 8
#define LABEL \
if (!label++) { \

View File

@ -64,12 +64,6 @@ __FBSDID("$FreeBSD$");
#define INDENTNAMELEN 15
#define MAXLINELEN 80
extern int ftsoptions;
extern int dflag, iflag, nflag, sflag;
extern u_int keys;
extern char fullpath[MAXPATHLEN];
extern int lineno;
static gid_t gid;
static uid_t uid;
static mode_t mode;

View File

@ -49,3 +49,11 @@ int check_excludes(const char *, const char *);
void init_excludes(void);
void read_excludes_file(const char *);
const char * ftype(u_int type);
extern int ftsoptions;
extern u_int keys;
extern int lineno;
extern int dflag, eflag, iflag, nflag, qflag, rflag, sflag, uflag;
#ifdef MAXPATHLEN
extern char fullpath[MAXPATHLEN];
#endif

View File

@ -44,8 +44,6 @@ __FBSDID("$FreeBSD$");
#include "mtree.h"
#include "extern.h"
extern int lineno;
typedef struct _key {
const char *name; /* key name */
u_int val; /* value */

View File

@ -47,11 +47,6 @@ __FBSDID("$FreeBSD$");
#include "mtree.h"
#include "extern.h"
extern int ftsoptions;
extern int dflag, eflag, qflag, rflag, sflag, uflag;
extern char fullpath[MAXPATHLEN];
extern int lineno;
static NODE *root;
static char path[MAXPATHLEN];