mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-27 12:22:24 +00:00
Create dir.h to declare functions defined in dir.c
Update files that depend on dir functions to include dir.h Declare as static all functions in dir.c that are not needed externally. Add dependencies to makefile-tail. modified: bin/makefile-tail new file: inc/dir.h modified: src/dir.c modified: src/dsk.c modified: src/main.c modified: src/subr.c modified: src/vmemsave.c
This commit is contained in:
27
src/dir.c
27
src/dir.c
@@ -88,6 +88,7 @@ static char *id = "$Id: dir.c,v 1.4 2001/12/26 22:17:01 sybalsky Exp $ Copyright
|
||||
#include "timeout.h"
|
||||
#include "locfile.h"
|
||||
#include "dsk.h"
|
||||
#include "dir.h"
|
||||
|
||||
extern int *Lisp_errno;
|
||||
extern int Dummy_errno;
|
||||
@@ -192,7 +193,7 @@ extern int Dummy_errno;
|
||||
* number of characters.
|
||||
*/
|
||||
|
||||
int match_pattern(char *tp, char *pp)
|
||||
static int match_pattern(char *tp, char *pp)
|
||||
{
|
||||
register char *tsp, *psp;
|
||||
register int inastr;
|
||||
@@ -448,7 +449,7 @@ int init_finfo() {
|
||||
* FINFOARRAYRSIZE.
|
||||
*/
|
||||
|
||||
int get_finfo_id() {
|
||||
static int get_finfo_id() {
|
||||
register int i;
|
||||
DFINFO *dfap;
|
||||
|
||||
@@ -493,7 +494,7 @@ int get_finfo_id() {
|
||||
*/
|
||||
|
||||
#ifdef DOS
|
||||
int enum_dsk_prop(char *dir, char *name, char *ver, FINFO **finfo_buf)
|
||||
static int enum_dsk_prop(char *dir, char *name, char *ver, FINFO **finfo_buf)
|
||||
{
|
||||
register struct direct *dp;
|
||||
register FINFO *prevp;
|
||||
@@ -653,7 +654,7 @@ int enum_dsk_prop(char *dir, char *name, char *ver, FINFO **finfo_buf)
|
||||
return (n);
|
||||
}
|
||||
#else /* DOS */
|
||||
int enum_dsk_prop(char *dir, char *name, char *ver, FINFO **finfo_buf)
|
||||
static int enum_dsk_prop(char *dir, char *name, char *ver, FINFO **finfo_buf)
|
||||
{
|
||||
register struct direct *dp;
|
||||
register FINFO *prevp;
|
||||
@@ -772,7 +773,7 @@ int enum_dsk_prop(char *dir, char *name, char *ver, FINFO **finfo_buf)
|
||||
* Similar to enum_dsk_prop, but file properties are not stored.
|
||||
*/
|
||||
#ifdef DOS
|
||||
int enum_dsk(char *dir, char *name, char *ver, FINFO **finfo_buf)
|
||||
static int enum_dsk(char *dir, char *name, char *ver, FINFO **finfo_buf)
|
||||
{
|
||||
register struct direct *dp;
|
||||
register FINFO *prevp;
|
||||
@@ -916,7 +917,7 @@ int enum_dsk(char *dir, char *name, char *ver, FINFO **finfo_buf)
|
||||
|
||||
#else /* DOS */
|
||||
|
||||
int enum_dsk(char *dir, char *name, char *ver, FINFO **finfo_buf)
|
||||
static int enum_dsk(char *dir, char *name, char *ver, FINFO **finfo_buf)
|
||||
{
|
||||
register struct direct *dp;
|
||||
register FINFO *prevp;
|
||||
@@ -1024,7 +1025,7 @@ int enum_dsk(char *dir, char *name, char *ver, FINFO **finfo_buf)
|
||||
* of FINFO structures.
|
||||
*/
|
||||
#ifdef DOS
|
||||
int enum_ufs_prop(char *dir, char *name, char *ver, FINFO **finfo_buf)
|
||||
static int enum_ufs_prop(char *dir, char *name, char *ver, FINFO **finfo_buf)
|
||||
{
|
||||
register struct direct *dp;
|
||||
register FINFO *prevp;
|
||||
@@ -1110,7 +1111,7 @@ int enum_ufs_prop(char *dir, char *name, char *ver, FINFO **finfo_buf)
|
||||
return (n);
|
||||
}
|
||||
#else /* DOS */
|
||||
int enum_ufs_prop(char *dir, char *name, char *ver, FINFO **finfo_buf)
|
||||
static int enum_ufs_prop(char *dir, char *name, char *ver, FINFO **finfo_buf)
|
||||
{
|
||||
register struct direct *dp;
|
||||
register FINFO *prevp;
|
||||
@@ -1223,7 +1224,7 @@ int enum_ufs_prop(char *dir, char *name, char *ver, FINFO **finfo_buf)
|
||||
* Similar to enum_ufs_prop, but file properties are not stored.
|
||||
*/
|
||||
#ifdef DOS
|
||||
int enum_ufs(char *dir, char *name, char *ver, FINFO **finfo_buf)
|
||||
static int enum_ufs(char *dir, char *name, char *ver, FINFO **finfo_buf)
|
||||
{
|
||||
register struct direct *dp;
|
||||
register FINFO *prevp;
|
||||
@@ -1293,7 +1294,7 @@ int enum_ufs(char *dir, char *name, char *ver, FINFO **finfo_buf)
|
||||
return (n);
|
||||
}
|
||||
#else /* DOS */
|
||||
int enum_ufs(char *dir, char *name, char *ver, FINFO **finfo_buf)
|
||||
static int enum_ufs(char *dir, char *name, char *ver, FINFO **finfo_buf)
|
||||
{
|
||||
register struct direct *dp;
|
||||
register FINFO *prevp;
|
||||
@@ -1388,7 +1389,7 @@ int enum_ufs(char *dir, char *name, char *ver, FINFO **finfo_buf)
|
||||
* This routine is only used by DSK codes.
|
||||
*/
|
||||
|
||||
int trim_finfo(FINFO **fp)
|
||||
static int trim_finfo(FINFO **fp)
|
||||
{
|
||||
#ifndef DOS
|
||||
register FINFO *tp, *sp, *mp, *cp, *pp;
|
||||
@@ -1517,7 +1518,7 @@ int trim_finfo(FINFO **fp)
|
||||
* of.
|
||||
*/
|
||||
|
||||
int trim_finfo_highest(FINFO **fp, int highestp)
|
||||
static int trim_finfo_highest(FINFO **fp, int highestp)
|
||||
{
|
||||
register FINFO *tp, *sp, *mp, *cp, *pp;
|
||||
register int num, pnum;
|
||||
@@ -1655,7 +1656,7 @@ int trim_finfo_highest(FINFO **fp, int highestp)
|
||||
* are got rid of.
|
||||
*/
|
||||
|
||||
int trim_finfo_version(FINFO **fp, int rver)
|
||||
static int trim_finfo_version(FINFO **fp, int rver)
|
||||
{
|
||||
register FINFO *tp, *sp, *mp, *cp, *pp, *vp;
|
||||
register int num, pnum;
|
||||
|
||||
@@ -113,6 +113,7 @@ static char *id = "$Id: dsk.c,v 1.4 2001/12/24 01:09:01 sybalsky Exp $ Copyright
|
||||
#include "conspage.h"
|
||||
#include "car-cdr.h"
|
||||
#include "dsk.h"
|
||||
#include "dir.h"
|
||||
|
||||
#if defined(ULTRIX) || defined(MACOSX) || defined(FREEBSD)
|
||||
#include <sys/mount.h>
|
||||
|
||||
@@ -23,6 +23,7 @@ static char *id = "$Id: main.c,v 1.4 2001/12/26 22:17:03 sybalsky Exp $ Copyrigh
|
||||
#include "lispemul.h"
|
||||
#include "dbprint.h"
|
||||
#include "unixfork.h"
|
||||
#include "dir.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#ifndef DOS
|
||||
|
||||
@@ -48,6 +48,7 @@ static char *id = "$Id: subr.c,v 1.3 1999/05/31 23:35:42 sybalsky Exp $ Copyrigh
|
||||
#include "profile.h"
|
||||
#include "dbprint.h"
|
||||
#include "dsk.h"
|
||||
#include "dir.h"
|
||||
|
||||
extern LispPTR *PENDINGINTERRUPT68k;
|
||||
|
||||
|
||||
@@ -77,6 +77,7 @@ static char *id = "$Id: vmemsave.c,v 1.2 1999/01/03 02:07:45 sybalsky Exp $ Copy
|
||||
#include "dbprint.h"
|
||||
#include "devif.h"
|
||||
#include "dsk.h"
|
||||
#include "dir.h"
|
||||
|
||||
#ifdef GCC386
|
||||
#include "inlnPS2.h"
|
||||
|
||||
Reference in New Issue
Block a user