# if defined(__IBMC__) && defined(OS2)
# include <process.h>
-# include <io.h>
# define getpid _getpid
-# define S_IRUSR S_IREAD
-# define S_IWUSR S_IWRITE
-# define S_IXUSR S_IEXEC
# endif
/*@access fileId*/
cstring abspath;
if (ft == NULL) return NOT_FOUND;
abspath = osd_absolutePath (cstring_undefined, s);
-
- if (context_getFlag (FLG_CASEINSENSITIVEFILENAMES))
- {
- abspath = cstring_downcase (abspath);
- }
-
DPRINTF (("Absolute path: %s: %s", s, abspath));
res = cstringTable_lookup (ft->htable, abspath);
cstring_free (abspath);
ft->nspace--;
DPRINTF (("Adding: %s", e->fname));
-
- if (context_getFlag (FLG_CASEINSENSITIVEFILENAMES))
- {
- cstring sd = cstring_downcase (e->fname);
- cstringTable_insert (ft->htable, sd, ft->nentries);
- cstring_free (e->fname);
- }
- else
- {
- cstringTable_insert (ft->htable, e->fname, ft->nentries);
- }
-
+ cstringTable_insert (ft->htable, e->fname, ft->nentries);
ft->elements[ft->nentries] = e;
ft->nentries++;
cstring absname = osd_absolutePath (NULL, name);
int tindex = fileTable_getIndex (ft, absname);
- /*@i534 fprintf (stderr, "Got abs path: %s", absname); */
+ DPRINTF (("Got abs path: %s", absname));
llassert (ft != fileTable_undefined);
if (tindex != NOT_FOUND)
fileId
fileTable_lookupBase (fileTable ft, cstring base)
{
- int tindex;
-
- if (context_getFlag (FLG_CASEINSENSITIVEFILENAMES))
- {
- cstring dbase = cstring_downcase (base);
- tindex = fileTable_getIndex (ft, dbase);
- cstring_free (dbase);
- }
- else
- {
- tindex = fileTable_getIndex (ft, base);
- }
+ int tindex = fileTable_getIndex (ft, base);
if (tindex == NOT_FOUND)
{
if (msg)
{
(void) fflush (g_warningstream);
- displayScanOpen (cstring_makeLiteral ("cleaning"));
+ fprintf (stderr, "< cleaning");
}
for (i = 0; i < ft->nentries; i++)
if (msg && ((i % skip) == 0))
{
- displayScanContinue (cstring_makeLiteral (i == 0 ? " " : "."));
+ (void) fflush (g_warningstream);
+
+ if (i == 0) {
+ fprintf (stderr, " ");
+ } else {
+ fprintf (stderr, ".");
+ }
+
+ (void) fflush (stderr);
}
}
-
+
if (msg)
{
- displayScanClose ();
+ fprintf (stderr, " >\n");
}
}