version 1.2, 2001/01/29 01:58:02 |
version 1.3, 2001/11/19 19:02:14 |
|
|
|
|
static void |
static void |
incr_index(p, incr) |
incr_index(p, incr) |
register struct ifile *p; |
struct ifile *p; |
int incr; |
int incr; |
{ |
{ |
for (; p != &anchor; p = p->h_next) |
for (; p != &anchor; p = p->h_next) |
|
|
char *filename; |
char *filename; |
struct ifile *prev; |
struct ifile *prev; |
{ |
{ |
register struct ifile *p; |
struct ifile *p; |
|
|
/* |
/* |
* Allocate and initialize structure. |
* Allocate and initialize structure. |
|
|
del_ifile(h) |
del_ifile(h) |
IFILE h; |
IFILE h; |
{ |
{ |
register struct ifile *p; |
struct ifile *p; |
|
|
if (h == NULL_IFILE) |
if (h == NULL_IFILE) |
return; |
return; |
|
|
next_ifile(h) |
next_ifile(h) |
IFILE h; |
IFILE h; |
{ |
{ |
register struct ifile *p; |
struct ifile *p; |
|
|
p = (h == NULL_IFILE) ? &anchor : int_ifile(h); |
p = (h == NULL_IFILE) ? &anchor : int_ifile(h); |
if (p->h_next == &anchor) |
if (p->h_next == &anchor) |
|
|
prev_ifile(h) |
prev_ifile(h) |
IFILE h; |
IFILE h; |
{ |
{ |
register struct ifile *p; |
struct ifile *p; |
|
|
p = (h == NULL_IFILE) ? &anchor : int_ifile(h); |
p = (h == NULL_IFILE) ? &anchor : int_ifile(h); |
if (p->h_prev == &anchor) |
if (p->h_prev == &anchor) |
|
|
find_ifile(filename) |
find_ifile(filename) |
char *filename; |
char *filename; |
{ |
{ |
register struct ifile *p; |
struct ifile *p; |
|
|
for (p = anchor.h_next; p != &anchor; p = p->h_next) |
for (p = anchor.h_next; p != &anchor; p = p->h_next) |
if (strcmp(filename, p->h_filename) == 0) |
if (strcmp(filename, p->h_filename) == 0) |
|
|
char *filename; |
char *filename; |
IFILE prev; |
IFILE prev; |
{ |
{ |
register struct ifile *p; |
struct ifile *p; |
|
|
if ((p = find_ifile(filename)) == NULL) |
if ((p = find_ifile(filename)) == NULL) |
p = new_ifile(filename, int_ifile(prev)); |
p = new_ifile(filename, int_ifile(prev)); |
|
|
public void |
public void |
if_dump() |
if_dump() |
{ |
{ |
register struct ifile *p; |
struct ifile *p; |
|
|
for (p = anchor.h_next; p != &anchor; p = p->h_next) |
for (p = anchor.h_next; p != &anchor; p = p->h_next) |
{ |
{ |