VirtualBox

Changeset 1980 in kBuild for trunk/src/kmk/dir.c


Ignore:
Timestamp:
Oct 27, 2008 11:25:49 PM (16 years ago)
Author:
bird
Message:

kmk: Some cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/dir.c

    r1941 r1980  
    220220#ifndef DIRECTORY_BUCKETS
    221221#ifdef KMK
    222 # define DIRECTORY_BUCKETS 4096
     222#  define DIRECTORY_BUCKETS 4096
    223223# else
    224 #define DIRECTORY_BUCKETS 199
     224#  define DIRECTORY_BUCKETS 199
    225225# endif
    226226#endif
     
    10161016#endif
    10171017      memset (dir->contents, '\0', sizeof (struct directory_contents));
    1018 
    10191018    }
    10201019
     
    12391238              files += f;
    12401239              impossible += im;
    1241 
    12421240#ifdef KMK
    12431241              fputs ("# ", stdout);
     
    13911389  gl->gl_closedir = ansi_free;
    13921390  gl->gl_stat = local_stat;
    1393 #ifdef __EMX__ /* The FreeBSD implemenation actually uses gl_lstat!! */
     1391#ifdef __EMX__ /* The FreeBSD implementation actually uses gl_lstat!! */
    13941392  gl->gl_lstat = local_stat;
    13951393#endif
     
    14041402  hash_init (&directories, DIRECTORY_BUCKETS,
    14051403             directory_hash_1, directory_hash_2, directory_hash_cmp);
    1406 #else  /* */
     1404#else  /* CONFIG_WITH_STRCACHE2 */
    14071405  hash_init_strcached (&directories, DIRECTORY_BUCKETS, &file_strcache,
    14081406                       offsetof (struct directory, name));
    1409 #endif /* */
     1407#endif /* CONFIG_WITH_STRCACHE2 */
    14101408  hash_init (&directory_contents, DIRECTORY_BUCKETS,
    14111409             directory_contents_hash_1, directory_contents_hash_2,
     
    14181416  alloccache_init (&dirfile_cache, sizeof (struct dirfile),
    14191417                   "dirfile", NULL, NULL);
    1420 #endif
    1421 }
     1418#endif /* CONFIG_WITH_ALLOC_CACHES */
     1419}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette