Fix some bugs in variable pattern substitution (e.g. $(VAR:A=B)),
[make.git] / file.c
blob8f895037dc9c660a3cfbb40532585068cc572aaf
1 /* Target file hash table management for GNU Make.
2 Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
3 2002 Free Software Foundation, Inc.
4 This file is part of GNU Make.
6 GNU Make is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
11 GNU Make is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Make; see the file COPYING. If not, write to
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 #include "make.h"
23 #include <assert.h>
25 #include "dep.h"
26 #include "filedef.h"
27 #include "job.h"
28 #include "commands.h"
29 #include "variable.h"
30 #include "debug.h"
31 #include "hash.h"
34 /* Hash table of files the makefile knows how to make. */
36 static unsigned long
37 file_hash_1 (const void *key)
39 return_ISTRING_HASH_1 (((struct file const *) key)->hname);
42 static unsigned long
43 file_hash_2 (const void *key)
45 return_ISTRING_HASH_2 (((struct file const *) key)->hname);
48 static int
49 file_hash_cmp (const void *x, const void *y)
51 return_ISTRING_COMPARE (((struct file const *) x)->hname,
52 ((struct file const *) y)->hname);
55 #ifndef FILE_BUCKETS
56 #define FILE_BUCKETS 1007
57 #endif
58 static struct hash_table files;
60 /* Whether or not .SECONDARY with no prerequisites was given. */
61 static int all_secondary = 0;
63 /* Access the hash table of all file records.
64 lookup_file given a name, return the struct file * for that name,
65 or nil if there is none.
66 enter_file similar, but create one if there is none. */
68 struct file *
69 lookup_file (char *name)
71 register struct file *f;
72 struct file file_key;
73 #if defined(VMS) && !defined(WANT_CASE_SENSITIVE_TARGETS)
74 register char *lname, *ln;
75 #endif
77 assert (*name != '\0');
79 /* This is also done in parse_file_seq, so this is redundant
80 for names read from makefiles. It is here for names passed
81 on the command line. */
82 #ifdef VMS
83 # ifndef WANT_CASE_SENSITIVE_TARGETS
85 register char *n;
86 lname = (char *) malloc (strlen (name) + 1);
87 for (n = name, ln = lname; *n != '\0'; ++n, ++ln)
88 *ln = isupper ((unsigned char)*n) ? tolower ((unsigned char)*n) : *n;
89 *ln = '\0';
90 name = lname;
92 # endif
94 while (name[0] == '[' && name[1] == ']' && name[2] != '\0')
95 name += 2;
96 #endif
97 while (name[0] == '.' && name[1] == '/' && name[2] != '\0')
99 name += 2;
100 while (*name == '/')
101 /* Skip following slashes: ".//foo" is "foo", not "/foo". */
102 ++name;
105 if (*name == '\0')
106 /* It was all slashes after a dot. */
107 #ifdef VMS
108 name = "[]";
109 #else
110 #ifdef _AMIGA
111 name = "";
112 #else
113 name = "./";
114 #endif /* AMIGA */
115 #endif /* VMS */
117 file_key.hname = name;
118 f = (struct file *) hash_find_item (&files, &file_key);
119 #if defined(VMS) && !defined(WANT_CASE_SENSITIVE_TARGETS)
120 free (lname);
121 #endif
122 return f;
125 struct file *
126 enter_file (char *name)
128 register struct file *f;
129 register struct file *new;
130 register struct file **file_slot;
131 struct file file_key;
132 #if defined(VMS) && !defined(WANT_CASE_SENSITIVE_TARGETS)
133 char *lname, *ln;
134 #endif
136 assert (*name != '\0');
138 #if defined(VMS) && !defined(WANT_CASE_SENSITIVE_TARGETS)
140 register char *n;
141 lname = (char *) malloc (strlen (name) + 1);
142 for (n = name, ln = lname; *n != '\0'; ++n, ++ln)
144 if (isupper ((unsigned char)*n))
145 *ln = tolower ((unsigned char)*n);
146 else
147 *ln = *n;
150 *ln = 0;
151 /* Creates a possible leak, old value of name is unreachable, but I
152 currently don't know how to fix it. */
153 name = lname;
155 #endif
157 file_key.hname = name;
158 file_slot = (struct file **) hash_find_slot (&files, &file_key);
159 f = *file_slot;
160 if (! HASH_VACANT (f) && !f->double_colon)
162 #if defined(VMS) && !defined(WANT_CASE_SENSITIVE_TARGETS)
163 free(lname);
164 #endif
165 return f;
168 new = (struct file *) xmalloc (sizeof (struct file));
169 bzero ((char *) new, sizeof (struct file));
170 new->name = new->hname = name;
171 new->update_status = -1;
173 if (HASH_VACANT (f))
174 hash_insert_at (&files, new, file_slot);
175 else
177 /* There is already a double-colon entry for this file. */
178 new->double_colon = f;
179 while (f->prev != 0)
180 f = f->prev;
181 f->prev = new;
184 return new;
187 /* Rename FILE to NAME. This is not as simple as resetting
188 the `name' member, since it must be put in a new hash bucket,
189 and possibly merged with an existing file called NAME. */
191 void
192 rename_file (struct file *from_file, char *to_hname)
194 rehash_file (from_file, to_hname);
195 while (from_file)
197 from_file->name = from_file->hname;
198 from_file = from_file->prev;
202 /* Rehash FILE to NAME. This is not as simple as resetting
203 the `hname' member, since it must be put in a new hash bucket,
204 and possibly merged with an existing file called NAME. */
206 void
207 rehash_file (struct file *from_file, char *to_hname)
209 struct file file_key;
210 struct file **file_slot;
211 struct file *to_file;
212 struct file *deleted_file;
213 struct file *f;
215 file_key.hname = to_hname;
216 if (0 == file_hash_cmp (from_file, &file_key))
217 return;
219 file_key.hname = from_file->hname;
220 while (from_file->renamed != 0)
221 from_file = from_file->renamed;
222 if (file_hash_cmp (from_file, &file_key))
223 /* hname changed unexpectedly */
224 abort ();
226 deleted_file = hash_delete (&files, from_file);
227 if (deleted_file != from_file)
228 /* from_file isn't the one stored in files */
229 abort ();
231 file_key.hname = to_hname;
232 file_slot = (struct file **) hash_find_slot (&files, &file_key);
233 to_file = *file_slot;
235 from_file->hname = to_hname;
236 for (f = from_file->double_colon; f != 0; f = f->prev)
237 f->hname = to_hname;
239 if (HASH_VACANT (to_file))
240 hash_insert_at (&files, from_file, file_slot);
241 else
243 /* TO_FILE already exists under TO_HNAME.
244 We must retain TO_FILE and merge FROM_FILE into it. */
246 if (from_file->cmds != 0)
248 if (to_file->cmds == 0)
249 to_file->cmds = from_file->cmds;
250 else if (from_file->cmds != to_file->cmds)
252 /* We have two sets of commands. We will go with the
253 one given in the rule explicitly mentioning this name,
254 but give a message to let the user know what's going on. */
255 if (to_file->cmds->fileinfo.filenm != 0)
256 error (&from_file->cmds->fileinfo,
257 _("Commands were specified for file `%s' at %s:%lu,"),
258 from_file->name, to_file->cmds->fileinfo.filenm,
259 to_file->cmds->fileinfo.lineno);
260 else
261 error (&from_file->cmds->fileinfo,
262 _("Commands for file `%s' were found by implicit rule search,"),
263 from_file->name);
264 error (&from_file->cmds->fileinfo,
265 _("but `%s' is now considered the same file as `%s'."),
266 from_file->name, to_hname);
267 error (&from_file->cmds->fileinfo,
268 _("Commands for `%s' will be ignored in favor of those for `%s'."),
269 to_hname, from_file->name);
273 /* Merge the dependencies of the two files. */
275 if (to_file->deps == 0)
276 to_file->deps = from_file->deps;
277 else
279 register struct dep *deps = to_file->deps;
280 while (deps->next != 0)
281 deps = deps->next;
282 deps->next = from_file->deps;
285 merge_variable_set_lists (&to_file->variables, from_file->variables);
287 if (to_file->double_colon && from_file->is_target && !from_file->double_colon)
288 fatal (NILF, _("can't rename single-colon `%s' to double-colon `%s'"),
289 from_file->name, to_hname);
290 if (!to_file->double_colon && from_file->double_colon)
292 if (to_file->is_target)
293 fatal (NILF, _("can't rename double-colon `%s' to single-colon `%s'"),
294 from_file->name, to_hname);
295 else
296 to_file->double_colon = from_file->double_colon;
299 if (from_file->last_mtime > to_file->last_mtime)
300 /* %%% Kludge so -W wins on a file that gets vpathized. */
301 to_file->last_mtime = from_file->last_mtime;
303 to_file->mtime_before_update = from_file->mtime_before_update;
305 #define MERGE(field) to_file->field |= from_file->field
306 MERGE (precious);
307 MERGE (tried_implicit);
308 MERGE (updating);
309 MERGE (updated);
310 MERGE (is_target);
311 MERGE (cmd_target);
312 MERGE (phony);
313 MERGE (ignore_vpath);
314 #undef MERGE
316 from_file->renamed = to_file;
320 /* Remove all nonprecious intermediate files.
321 If SIG is nonzero, this was caused by a fatal signal,
322 meaning that a different message will be printed, and
323 the message will go to stderr rather than stdout. */
325 void
326 remove_intermediates (int sig)
328 register struct file **file_slot;
329 register struct file **file_end;
330 int doneany = 0;
332 /* If there's no way we will ever remove anything anyway, punt early. */
333 if (question_flag || touch_flag || all_secondary)
334 return;
336 if (sig && just_print_flag)
337 return;
339 file_slot = (struct file **) files.ht_vec;
340 file_end = file_slot + files.ht_size;
341 for ( ; file_slot < file_end; file_slot++)
342 if (! HASH_VACANT (*file_slot))
344 register struct file *f = *file_slot;
345 /* Is this file eligible for automatic deletion?
346 Yes, IFF: it's marked intermediate, it's not secondary, it wasn't
347 given on the command-line, and it's either a -include makefile or
348 it's not precious. */
349 if (f->intermediate && (f->dontcare || !f->precious)
350 && !f->secondary && !f->cmd_target)
352 int status;
353 if (f->update_status == -1)
354 /* If nothing would have created this file yet,
355 don't print an "rm" command for it. */
356 continue;
357 if (just_print_flag)
358 status = 0;
359 else
361 status = unlink (f->name);
362 if (status < 0 && errno == ENOENT)
363 continue;
365 if (!f->dontcare)
367 if (sig)
368 error (NILF, _("*** Deleting intermediate file `%s'"), f->name);
369 else
371 if (! doneany)
372 DB (DB_BASIC, (_("Removing intermediate files...\n")));
373 if (!silent_flag)
375 if (! doneany)
377 fputs ("rm ", stdout);
378 doneany = 1;
380 else
381 putchar (' ');
382 fputs (f->name, stdout);
383 fflush (stdout);
386 if (status < 0)
387 perror_with_name ("unlink: ", f->name);
392 if (doneany && !sig)
394 putchar ('\n');
395 fflush (stdout);
399 /* Set the intermediate flag. */
401 static void
402 set_intermediate (const void *item)
404 struct file *f = (struct file *) item;
405 f->intermediate = 1;
408 /* For each dependency of each file, make the `struct dep' point
409 at the appropriate `struct file' (which may have to be created).
411 Also mark the files depended on by .PRECIOUS, .PHONY, .SILENT,
412 and various other special targets. */
414 void
415 snap_deps (void)
417 register struct file *f;
418 register struct file *f2;
419 register struct dep *d;
420 register struct file **file_slot_0;
421 register struct file **file_slot;
422 register struct file **file_end;
424 /* Enter each dependency name as a file. */
425 /* We must use hash_dump (), because within this loop
426 we might add new files to the table, possibly causing
427 an in-situ table expansion. */
428 file_slot_0 = (struct file **) hash_dump (&files, 0, 0);
429 file_end = file_slot_0 + files.ht_fill;
430 for (file_slot = file_slot_0; file_slot < file_end; file_slot++)
431 for (f2 = *file_slot; f2 != 0; f2 = f2->prev)
432 for (d = f2->deps; d != 0; d = d->next)
433 if (d->name != 0)
435 d->file = lookup_file (d->name);
436 if (d->file == 0)
437 d->file = enter_file (d->name);
438 else
439 free (d->name);
440 d->name = 0;
442 free (file_slot_0);
444 for (f = lookup_file (".PRECIOUS"); f != 0; f = f->prev)
445 for (d = f->deps; d != 0; d = d->next)
446 for (f2 = d->file; f2 != 0; f2 = f2->prev)
447 f2->precious = 1;
449 for (f = lookup_file (".LOW_RESOLUTION_TIME"); f != 0; f = f->prev)
450 for (d = f->deps; d != 0; d = d->next)
451 for (f2 = d->file; f2 != 0; f2 = f2->prev)
452 f2->low_resolution_time = 1;
454 for (f = lookup_file (".PHONY"); f != 0; f = f->prev)
455 for (d = f->deps; d != 0; d = d->next)
456 for (f2 = d->file; f2 != 0; f2 = f2->prev)
458 /* Mark this file as phony and nonexistent. */
459 f2->phony = 1;
460 f2->last_mtime = NONEXISTENT_MTIME;
461 f2->mtime_before_update = NONEXISTENT_MTIME;
464 for (f = lookup_file (".INTERMEDIATE"); f != 0; f = f->prev)
466 /* .INTERMEDIATE with deps listed
467 marks those deps as intermediate files. */
468 for (d = f->deps; d != 0; d = d->next)
469 for (f2 = d->file; f2 != 0; f2 = f2->prev)
470 f2->intermediate = 1;
471 /* .INTERMEDIATE with no deps does nothing.
472 Marking all files as intermediates is useless
473 since the goal targets would be deleted after they are built. */
476 for (f = lookup_file (".SECONDARY"); f != 0; f = f->prev)
478 /* .SECONDARY with deps listed
479 marks those deps as intermediate files
480 in that they don't get rebuilt if not actually needed;
481 but unlike real intermediate files,
482 these are not deleted after make finishes. */
483 if (f->deps)
484 for (d = f->deps; d != 0; d = d->next)
485 for (f2 = d->file; f2 != 0; f2 = f2->prev)
486 f2->intermediate = f2->secondary = 1;
487 /* .SECONDARY with no deps listed marks *all* files that way. */
488 else
490 all_secondary = 1;
491 hash_map (&files, set_intermediate);
495 f = lookup_file (".EXPORT_ALL_VARIABLES");
496 if (f != 0 && f->is_target)
497 export_all_variables = 1;
499 f = lookup_file (".IGNORE");
500 if (f != 0 && f->is_target)
502 if (f->deps == 0)
503 ignore_errors_flag = 1;
504 else
505 for (d = f->deps; d != 0; d = d->next)
506 for (f2 = d->file; f2 != 0; f2 = f2->prev)
507 f2->command_flags |= COMMANDS_NOERROR;
510 f = lookup_file (".SILENT");
511 if (f != 0 && f->is_target)
513 if (f->deps == 0)
514 silent_flag = 1;
515 else
516 for (d = f->deps; d != 0; d = d->next)
517 for (f2 = d->file; f2 != 0; f2 = f2->prev)
518 f2->command_flags |= COMMANDS_SILENT;
521 f = lookup_file (".POSIX");
522 if (f != 0 && f->is_target)
523 posix_pedantic = 1;
525 f = lookup_file (".NOTPARALLEL");
526 if (f != 0 && f->is_target)
527 not_parallel = 1;
530 /* Set the `command_state' member of FILE and all its `also_make's. */
532 void
533 set_command_state (struct file *file, enum cmd_state state)
535 struct dep *d;
537 file->command_state = state;
539 for (d = file->also_make; d != 0; d = d->next)
540 d->file->command_state = state;
543 /* Convert an external file timestamp to internal form. */
545 FILE_TIMESTAMP
546 file_timestamp_cons (const char *fname, time_t s, int ns)
548 int offset = ORDINARY_MTIME_MIN + (FILE_TIMESTAMP_HI_RES ? ns : 0);
549 FILE_TIMESTAMP product = (FILE_TIMESTAMP) s << FILE_TIMESTAMP_LO_BITS;
550 FILE_TIMESTAMP ts = product + offset;
552 if (! (s <= FILE_TIMESTAMP_S (ORDINARY_MTIME_MAX)
553 && product <= ts && ts <= ORDINARY_MTIME_MAX))
555 char buf[FILE_TIMESTAMP_PRINT_LEN_BOUND + 1];
556 ts = s <= OLD_MTIME ? ORDINARY_MTIME_MIN : ORDINARY_MTIME_MAX;
557 file_timestamp_sprintf (buf, ts);
558 error (NILF, _("%s: Timestamp out of range; substituting %s"),
559 fname ? fname : _("Current time"), buf);
562 return ts;
565 /* Return the current time as a file timestamp, setting *RESOLUTION to
566 its resolution. */
567 FILE_TIMESTAMP
568 file_timestamp_now (int *resolution)
570 int r;
571 time_t s;
572 int ns;
574 /* Don't bother with high-resolution clocks if file timestamps have
575 only one-second resolution. The code below should work, but it's
576 not worth the hassle of debugging it on hosts where it fails. */
577 #if FILE_TIMESTAMP_HI_RES
578 # if HAVE_CLOCK_GETTIME && defined CLOCK_REALTIME
580 struct timespec timespec;
581 if (clock_gettime (CLOCK_REALTIME, &timespec) == 0)
583 r = 1;
584 s = timespec.tv_sec;
585 ns = timespec.tv_nsec;
586 goto got_time;
589 # endif
590 # if HAVE_GETTIMEOFDAY
592 struct timeval timeval;
593 if (gettimeofday (&timeval, 0) == 0)
595 r = 1000;
596 s = timeval.tv_sec;
597 ns = timeval.tv_usec * 1000;
598 goto got_time;
601 # endif
602 #endif
604 r = 1000000000;
605 s = time ((time_t *) 0);
606 ns = 0;
608 #if FILE_TIMESTAMP_HI_RES
609 got_time:
610 #endif
611 *resolution = r;
612 return file_timestamp_cons (0, s, ns);
615 /* Place into the buffer P a printable representation of the file
616 timestamp TS. */
617 void
618 file_timestamp_sprintf (char *p, FILE_TIMESTAMP ts)
620 time_t t = FILE_TIMESTAMP_S (ts);
621 struct tm *tm = localtime (&t);
623 if (tm)
624 sprintf (p, "%04d-%02d-%02d %02d:%02d:%02d",
625 tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday,
626 tm->tm_hour, tm->tm_min, tm->tm_sec);
627 else if (t < 0)
628 sprintf (p, "%ld", (long) t);
629 else
630 sprintf (p, "%lu", (unsigned long) t);
631 p += strlen (p);
633 /* Append nanoseconds as a fraction, but remove trailing zeros.
634 We don't know the actual timestamp resolution, since clock_getres
635 applies only to local times, whereas this timestamp might come
636 from a remote filesystem. So removing trailing zeros is the
637 best guess that we can do. */
638 sprintf (p, ".%09d", FILE_TIMESTAMP_NS (ts));
639 p += strlen (p) - 1;
640 while (*p == '0')
641 p--;
642 p += *p != '.';
644 *p = '\0';
647 /* Print the data base of files. */
649 static void
650 print_file (const void *item)
652 struct file *f = (struct file *) item;
653 struct dep *d;
654 struct dep *ood = 0;
656 putchar ('\n');
657 if (!f->is_target)
658 puts (_("# Not a target:"));
659 printf ("%s:%s", f->name, f->double_colon ? ":" : "");
661 /* Print all normal dependencies; note any order-only deps. */
662 for (d = f->deps; d != 0; d = d->next)
663 if (! d->ignore_mtime)
664 printf (" %s", dep_name (d));
665 else if (! ood)
666 ood = d;
668 /* Print order-only deps, if we have any. */
669 if (ood)
671 printf (" | %s", dep_name (ood));
672 for (d = ood->next; d != 0; d = d->next)
673 if (d->ignore_mtime)
674 printf (" %s", dep_name (d));
677 putchar ('\n');
679 if (f->precious)
680 puts (_("# Precious file (prerequisite of .PRECIOUS)."));
681 if (f->phony)
682 puts (_("# Phony target (prerequisite of .PHONY)."));
683 if (f->cmd_target)
684 puts (_("# Command-line target."));
685 if (f->dontcare)
686 puts (_("# A default, MAKEFILES, or -include/sinclude makefile."));
687 puts (f->tried_implicit
688 ? _("# Implicit rule search has been done.")
689 : _("# Implicit rule search has not been done."));
690 if (f->stem != 0)
691 printf (_("# Implicit/static pattern stem: `%s'\n"), f->stem);
692 if (f->intermediate)
693 puts (_("# File is an intermediate prerequisite."));
694 if (f->also_make != 0)
696 fputs (_("# Also makes:"), stdout);
697 for (d = f->also_make; d != 0; d = d->next)
698 printf (" %s", dep_name (d));
699 putchar ('\n');
701 if (f->last_mtime == UNKNOWN_MTIME)
702 puts (_("# Modification time never checked."));
703 else if (f->last_mtime == NONEXISTENT_MTIME)
704 puts (_("# File does not exist."));
705 else if (f->last_mtime == OLD_MTIME)
706 puts (_("# File is very old."));
707 else
709 char buf[FILE_TIMESTAMP_PRINT_LEN_BOUND + 1];
710 file_timestamp_sprintf (buf, f->last_mtime);
711 printf (_("# Last modified %s\n"), buf);
713 puts (f->updated
714 ? _("# File has been updated.") : _("# File has not been updated."));
715 switch (f->command_state)
717 case cs_running:
718 puts (_("# Commands currently running (THIS IS A BUG)."));
719 break;
720 case cs_deps_running:
721 puts (_("# Dependencies commands running (THIS IS A BUG)."));
722 break;
723 case cs_not_started:
724 case cs_finished:
725 switch (f->update_status)
727 case -1:
728 break;
729 case 0:
730 puts (_("# Successfully updated."));
731 break;
732 case 1:
733 assert (question_flag);
734 puts (_("# Needs to be updated (-q is set)."));
735 break;
736 case 2:
737 puts (_("# Failed to be updated."));
738 break;
739 default:
740 puts (_("# Invalid value in `update_status' member!"));
741 fflush (stdout);
742 fflush (stderr);
743 abort ();
745 break;
746 default:
747 puts (_("# Invalid value in `command_state' member!"));
748 fflush (stdout);
749 fflush (stderr);
750 abort ();
753 if (f->variables != 0)
754 print_file_variables (f);
756 if (f->cmds != 0)
757 print_commands (f->cmds);
759 if (f->prev)
760 print_file ((const void *) f->prev);
763 void
764 print_file_data_base (void)
766 puts (_("\n# Files"));
768 hash_map (&files, print_file);
770 fputs (_("\n# files hash-table stats:\n# "), stdout);
771 hash_print_stats (&files, stdout);
774 #define EXPANSION_INCREMENT(_l) ((((_l) / 500) + 1) * 500)
776 char *
777 build_target_list (char *value)
779 static unsigned long last_targ_count = 0;
781 if (files.ht_fill != last_targ_count)
783 unsigned long max = EXPANSION_INCREMENT (strlen (value));
784 unsigned long len;
785 char *p;
786 struct file **fp = (struct file **) files.ht_vec;
787 struct file **end = &fp[files.ht_size];
789 /* Make sure we have at least MAX bytes in the allocated buffer. */
790 value = xrealloc (value, max);
792 p = value;
793 len = 0;
794 for (; fp < end; ++fp)
795 if (!HASH_VACANT (*fp) && (*fp)->is_target)
797 struct file *f = *fp;
798 int l = strlen (f->name);
800 len += l + 1;
801 if (len > max)
803 unsigned long off = p - value;
805 max += EXPANSION_INCREMENT (l + 1);
806 value = xrealloc (value, max);
807 p = &value[off];
810 bcopy (f->name, p, l);
811 p += l;
812 *(p++) = ' ';
814 *(p-1) = '\0';
816 last_targ_count = files.ht_fill;
819 return value;
822 void
823 init_hash_files (void)
825 hash_init (&files, 1000, file_hash_1, file_hash_2, file_hash_cmp);
828 /* EOF */