projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor changes. Dictionary is lower case now.
[idzebra-moved-to-github.git]
/
index
/
dir.c
diff --git
a/index/dir.c
b/index/dir.c
index
6d0e11d
..
74c93aa
100644
(file)
--- a/
index/dir.c
+++ b/
index/dir.c
@@
-1,10
+1,16
@@
/*
/*
- * Copyright (C) 1995, Index Data I/S
+ * Copyright (C) 1994-1995, Index Data I/S
* All rights reserved.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: dir.c,v $
* All rights reserved.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: dir.c,v $
- * Revision 1.4 1995-09-04 12:33:41 adam
+ * Revision 1.6 1995-09-08 14:52:26 adam
+ * Minor changes. Dictionary is lower case now.
+ *
+ * Revision 1.5 1995/09/06 16:11:16 adam
+ * Option: only one word key per file.
+ *
+ * Revision 1.4 1995/09/04 12:33:41 adam
* Various cleanup. YAZ util used instead.
*
* Revision 1.3 1995/09/01 14:06:35 adam
* Various cleanup. YAZ util used instead.
*
* Revision 1.3 1995/09/01 14:06:35 adam
@@
-33,11
+39,11
@@
struct dir_entry *dir_open (const char *rep)
{
DIR *dir;
struct dirent *dent;
{
DIR *dir;
struct dirent *dent;
- size_t entry_max = 20;
+ size_t entry_max = 50;
size_t idx = 0;
struct dir_entry *entry;
size_t idx = 0;
struct dir_entry *entry;
- logf (LOG_DEBUG, "dir_open %s", rep);
+ logf (LOG_LOG, "dir_open %s", rep);
if (!(dir = opendir(rep)))
{
logf (LOG_WARN|LOG_ERRNO, "opendir %s", rep);
if (!(dir = opendir(rep)))
{
logf (LOG_WARN|LOG_ERRNO, "opendir %s", rep);
@@
-59,7
+65,7
@@
struct dir_entry *dir_open (const char *rep)
{
struct dir_entry *entry_n;
{
struct dir_entry *entry_n;
- if (!(entry_n = malloc (sizeof(*entry) * (entry_max + 100))))
+ if (!(entry_n = malloc (sizeof(*entry) * (entry_max + 400))))
{
logf (LOG_FATAL|LOG_ERRNO, "malloc");
exit (1);
{
logf (LOG_FATAL|LOG_ERRNO, "malloc");
exit (1);