Added prototyping stuff

This commit is contained in:
ceriel
1993-11-10 11:14:28 +00:00
parent 48a8bc1bd1
commit 4b6c6de71f
47 changed files with 529 additions and 143 deletions

View File

@@ -4,7 +4,7 @@
init_idf, str2idf, findidf\ \-\ a namelist module
.SH SYNOPSIS
.PP
.B init_idf()
.B void init_idf()
.PP
.B struct idf *str2idf(tag, cpy)
.br

View File

@@ -17,9 +17,12 @@ static struct idf *IDF_hashtable[IDF_HASHSIZE];
(variable, selector, structure tag, etc.).
*/
#if __STDC__
static struct idf *IDF_new(char *, int, int);
#endif
_PROTOTYPE(static struct idf *IDF_new, (char *, int, int));
void
init_idf()
{
}
static struct idf *
IDF_new(tg, size, cpy)
@@ -64,6 +67,7 @@ IDF_new(tg, size, cpy)
}
#ifdef IDF_DEBUG
void
hash_stat()
{
register int i;
@@ -87,6 +91,7 @@ hash_stat()
print("End hash table tally\n");
}
void
idfappfun(fun, opt)
int (*fun)();
int opt;

View File

@@ -1,6 +1,8 @@
/* $Header$ */
/* IDENTIFIER DESCRIPTOR */
#include <ansi.h>
/* This a generic package for maintaining a name list */
/* Instantiation parameters, supplied by #define, are :
@@ -23,9 +25,9 @@ struct idf {
/* init_idf()
Initializes the namelist. Empty for now.
Initializes the namelist.
*/
#define init_idf()
_PROTOTYPE(void init_idf, (void));
/* struct idf * str2idf(tg, cp)
char *tg;
@@ -38,10 +40,6 @@ struct idf {
If cp < 0, the string is not entered, but only looked for.
*/
#if __STDC__ > 0
struct idf *str2idf(char *, int);
#else
extern struct idf * str2idf();
#endif
_PROTOTYPE(struct idf *str2idf, (char *, int));
#define findidf(tg) str2idf(tg, -1)

View File

@@ -8,9 +8,9 @@ MOD_DIR = $(TARGET_HOME)/modules
all:
install: all
-mkdir $(MOD_DIR)/pkg
cp $(SRC_DIR)/idf_pkg.body $(MOD_DIR)/pkg/idf_pkg.body
cp $(SRC_DIR)/idf_pkg.spec $(MOD_DIR)/pkg/idf_pkg.spec
cp $(SRC_DIR)/idf.3 $(MOD_DIR)/man/idf.3
if [ $(DO_MACHINE_INDEP) = y ] ; \
then mk_manpage $(SRC_DIR)/idf.3 $(TARGET_HOME) ; \
fi
@@ -18,7 +18,6 @@ install: all
cmp: all
-cmp $(SRC_DIR)/idf_pkg.body $(MOD_DIR)/pkg/idf_pkg.body
-cmp $(SRC_DIR)/idf_pkg.spec $(MOD_DIR)/pkg/idf_pkg.spec
-cmp $(SRC_DIR)/idf.3 $(MOD_DIR)/man/idf.3
pr:
@pr $(SRC_DIR)/proto.make $(SRC_DIR)/idf_pkg.spec $(SRC_DIR)/idf_pkg.body