2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-04 08:35:31 +00:00

make static

This commit is contained in:
Mark Andrews
2013-01-05 00:32:38 +11:00
parent cbb2a0ebea
commit f7d6bc93d1

View File

@@ -106,7 +106,7 @@
#define CHECKNAMESTYPE "rdata->type" #define CHECKNAMESTYPE "rdata->type"
#define CHECKNAMESDEF "result = ISC_TRUE" #define CHECKNAMESDEF "result = ISC_TRUE"
const char copyright[] = static const char copyright[] =
"/*\n" "/*\n"
" * Copyright (C) 2004%s Internet Systems Consortium, Inc. (\"ISC\")\n" " * Copyright (C) 2004%s Internet Systems Consortium, Inc. (\"ISC\")\n"
" * Copyright (C) 1998-2003 Internet Software Consortium.\n" " * Copyright (C) 1998-2003 Internet Software Consortium.\n"
@@ -144,13 +144,13 @@ const char copyright[] =
#define ATTRIBUTESIZE 256 #define ATTRIBUTESIZE 256
#define DIRNAMESIZE 256 #define DIRNAMESIZE 256
struct cc { static struct cc {
struct cc *next; struct cc *next;
int rdclass; int rdclass;
char classname[TYPECLASSBUF]; char classname[TYPECLASSBUF];
} *classes; } *classes;
struct tt { static struct tt {
struct tt *next; struct tt *next;
int rdclass; int rdclass;
int type; int type;
@@ -159,7 +159,7 @@ struct tt {
char dirname[DIRNAMESIZE]; /* XXX Should be max path length */ char dirname[DIRNAMESIZE]; /* XXX Should be max path length */
} *types; } *types;
struct ttnam { static struct ttnam {
char typename[TYPECLASSBUF]; char typename[TYPECLASSBUF];
char macroname[TYPECLASSBUF]; char macroname[TYPECLASSBUF];
char attr[ATTRIBUTESIZE]; char attr[ATTRIBUTESIZE];
@@ -167,28 +167,28 @@ struct ttnam {
int type; int type;
} typenames[TYPENAMES]; } typenames[TYPENAMES];
int maxtype = -1; static int maxtype = -1;
char * static char *
upper(char *); upper(char *);
char * static char *
funname(const char *, char *); funname(const char *, char *);
void static void
doswitch(const char *, const char *, const char *, const char *, doswitch(const char *, const char *, const char *, const char *,
const char *, const char *); const char *, const char *);
void static void
dodecl(char *, char *, char *); dodecl(char *, char *, char *);
void static void
add(int, const char *, int, const char *, const char *); add(int, const char *, int, const char *, const char *);
void static void
sd(int, const char *, const char *, char); sd(int, const char *, const char *, char);
void static void
insert_into_typenames(int, const char *, const char *); insert_into_typenames(int, const char *, const char *);
/*% /*%
* If you use more than 10 of these in, say, a printf(), you'll have problems. * If you use more than 10 of these in, say, a printf(), you'll have problems.
*/ */
char * static char *
upper(char *s) { upper(char *s) {
static int buf_to_use = 0; static int buf_to_use = 0;
static char buf[10][256]; static char buf[10][256];
@@ -208,7 +208,7 @@ upper(char *s) {
return (buf[buf_to_use]); return (buf[buf_to_use]);
} }
char * static char *
funname(const char *s, char *buf) { funname(const char *s, char *buf) {
char *b = buf; char *b = buf;
char c; char c;
@@ -221,7 +221,7 @@ funname(const char *s, char *buf) {
return (buf); return (buf);
} }
void static void
doswitch(const char *name, const char *function, const char *args, doswitch(const char *name, const char *function, const char *args,
const char *tsw, const char *csw, const char *res) const char *tsw, const char *csw, const char *res)
{ {
@@ -292,7 +292,7 @@ doswitch(const char *name, const char *function, const char *args,
} }
} }
void static void
dodecl(char *type, char *function, char *args) { dodecl(char *type, char *function, char *args) {
struct tt *tt; struct tt *tt;
char buf1[TYPECLASSBUF], buf2[TYPECLASSBUF]; char buf1[TYPECLASSBUF], buf2[TYPECLASSBUF];
@@ -324,7 +324,7 @@ find_typename(int type) {
return (NULL); return (NULL);
} }
void static void
insert_into_typenames(int type, const char *typename, const char *attr) { insert_into_typenames(int type, const char *typename, const char *attr) {
struct ttnam *ttn = NULL; struct ttnam *ttn = NULL;
int c, i, n; int c, i, n;
@@ -388,7 +388,7 @@ insert_into_typenames(int type, const char *typename, const char *attr) {
maxtype = type; maxtype = type;
} }
void static void
add(int rdclass, const char *classname, int type, const char *typename, add(int rdclass, const char *classname, int type, const char *typename,
const char *dirname) const char *dirname)
{ {
@@ -474,7 +474,7 @@ add(int rdclass, const char *classname, int type, const char *typename,
classes = newcc; classes = newcc;
} }
void static void
sd(int rdclass, const char *classname, const char *dirname, char filetype) { sd(int rdclass, const char *classname, const char *dirname, char filetype) {
char buf[TYPECLASSLEN + sizeof("_65535.h")]; char buf[TYPECLASSLEN + sizeof("_65535.h")];
char typename[TYPECLASSBUF]; char typename[TYPECLASSBUF];