Added prototyping stuff

This commit is contained in:
ceriel
1993-11-10 11:40:41 +00:00
parent 8c92c04936
commit f3fd5ba24b
9 changed files with 183 additions and 112 deletions

View File

@@ -97,6 +97,8 @@ INP_PRIVATE struct INP_buffer_header *INP_head, *INP_free;
returned. *size is initialized with the buffer length.
*/
_PROTOTYPE(INP_PRIVATE int INP_rdfile, (File *, char *, long *, char **));
INP_PRIVATE int
INP_rdfile(fd, fn, size, pbuf)
register File *fd;
@@ -134,6 +136,7 @@ INP_rdfile(fd, fn, size, pbuf)
INP_PRIVATE struct INP_i_buf *i_ptr;
_PROTOTYPE(INP_PRIVATE char * INP_pbuf, (void));
INP_PRIVATE char *
INP_pbuf()
{
@@ -153,6 +156,9 @@ INP_pbuf()
/* Input buffer administration: INP_push_bh() and INP_pop_bh()
*/
_PROTOTYPE(INP_PRIVATE struct INP_buffer_header *INP_push_bh, (void));
_PROTOTYPE(INP_PRIVATE int INP_pop_bh, (void));
INP_PRIVATE struct INP_buffer_header *
INP_push_bh()
{
@@ -205,11 +211,12 @@ INP_pop_bh()
/* low level I/O routine : read one block from current input
stream : INP_rdblock
*/
_PROTOTYPE(INP_PRIVATE int INP_rdblock, (File *, char *, int *));
INP_PRIVATE int
INP_rdblock(fd, buf, n)
File *fd;
char buf[];
char *buf;
int *n;
{
@@ -224,6 +231,7 @@ INP_rdblock(fd, buf, n)
/* Miscellaneous routines :
INP_mk_filename()
*/
_PROTOTYPE(INP_PRIVATE int INP_mk_filename, (char *, char *, char **));
/* INP_mk_filename() concatenates a dir and filename.
*/

View File

@@ -16,6 +16,8 @@
to work. Its default value is 1.
*/
#include <ansi.h>
/* INPUT PRIMITIVES */
#define LoadChar(dest) ((dest = *_ipp++) || (dest = loadbuf()))
@@ -29,15 +31,11 @@
extern char *_ipp;
#if __STDC__
int loadbuf(void);
int InsertFile(char *, char **, char **);
int InsertText(char *, int);
#else
extern int loadbuf();
extern int InsertFile();
extern int InsertText();
#endif
_PROTOTYPE(int loadbuf, (void));
_PROTOTYPE(int AtEoIT, (void));
_PROTOTYPE(int AtEoIF, (void));
_PROTOTYPE(int InsertFile, (char *, char **, char **));
_PROTOTYPE(int InsertText, (char *, int));
/* int InsertFile(filename, table, result)
char *filename;

View File

@@ -18,9 +18,10 @@ libinput.$(LIBSUF): $(OBJECTS)
$(RANLIB) libinput.$(LIBSUF)
install: all
-mkdir $(MOD_DIR)/lib
-mkdir $(MOD_DIR)/pkg
cp libinput.$(LIBSUF) $(MOD_DIR)/lib/libinput.$(LIBSUF)
$(RANLIB) $(MOD_DIR)/lib/libinput.$(LIBSUF)
cp $(SRC_DIR)/input.3 $(MOD_DIR)/man/input.3
cp $(SRC_DIR)/inp_pkg.body $(MOD_DIR)/pkg/inp_pkg.body
cp $(SRC_DIR)/inp_pkg.spec $(MOD_DIR)/pkg/inp_pkg.spec
if [ $(DO_MACHINE_INDEP) = y ] ; \
@@ -31,7 +32,6 @@ cmp: all
-cmp libinput.$(LIBSUF) $(MOD_DIR)/lib/libinput.$(LIBSUF)
-cmp $(SRC_DIR)/inp_pkg.body $(MOD_DIR)/pkg/inp_pkg.body
-cmp $(SRC_DIR)/inp_pkg.spec $(MOD_DIR)/pkg/inp_pkg.spec
-cmp $(SRC_DIR)/input.3 $(MOD_DIR)/man/input.3
pr:
@pr $(SRC_DIR)/proto.make $(SRC_DIR)/inp_pkg.spec $(SRC_DIR)/inp_pkg.body $(SRC_DIR)/AtEoIF.c $(SRC_DIR)/AtEoIT.c