| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
type to long.
* libidu/scanners.h (MAX_LEVELS): Remove constant.
(struct token) [tok_hits, tok_name]: Remove members.
[tok_hits_name]: Add member.
(TOKEN_HITS, TOKEN_NAME, OFFSETOF_TOKEN_NAME): Add macros.
* libidu/scanners.c (log_8_member_files): Add variable definition.
(get_token_c, get_token_asm, get_token_text): Use OFFSETOF_TOKEN_NAME.
* libidu/walker.c (mark_member_file_links) [new_index]: Change
variable type to long.
* src/idx.c (scan_member_file): Use TOKEN_NAME.
* src/mkid.c (ceil_log_8) Add function.
(current_hits_signature): Change variable type to (char *).
(main) [log_8_member_files]: Initialize new variable.
[current_hits_signature] Allocate storage.
(scan_member_file): Print member->mf_index as long.
(scan_member_file_1, write_id_file, token_hash_1, token_hash_2,
token_hash_cmp, token_qsort_cmp, summarize, write_hits):
use TOKEN_NAME & TOKEN_HITS.
(init_hits_signature, write_hits): Replace MAX_LEVELS
with log_8_member_files.
* src/xtokid.c (scan_member_file): Use TOKEN_NAME.
* libidu/idfile.h (vectorize_string) [delimiter_class]:
Declare as pointer to const.
* libidu/walker.c (append_strings_to_vector, vectorize_string)
[delimiter_class]: Declare as pointer to const.
(white_space): Declare as array of const.
|
| |
|
|
|
|
|
|
|
|
|
| |
returns old contents, but rather the new slot address.
(hash_insert_at): Return slot address of inserted item.
* libidu/walker.c (get_member_file): return member.
(get_link_from_dirent, get_link_from_string): Conform
to new hash_insert_at API, where return value is slot
address of newly inserted item.
|
| |
|
| |
|
|
|
|
|
| |
* configure.in (AM_WITH_REGEX): Remove.
* src/lid.c (rx.h): Remove #include.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
fopen fails.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
(clear_ushort_ctype): Likewise.
(set_uchar_ctype): Likewise.
(clear_uchar_ctype): Likewise.
(id_0): Add `unsigned' to declaration of this file-scope static var..
(get_token_c): Add `unsigned' to declaration of `id'.
(get_token_asm): Likewise.
(get_token_text): Likewise.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
(ansi2knr.c): Remove rule.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Remove some variables that now come with AM_INIT_AUTOMAKE.
Remove deprecated AM_MAINTAINER_MODE.
Use AC_PROG_INSTALL, not deprecated AM_PROG_INSTALL.
Use AM_FUNC_OBSTACK, not AC_REPLACE_OBSTACK.
Use AM_GNU_GETTEXT, not ud_GNU_GETTEXT/AC_LINK_FILES...
Define LIBOBJS for ansi2knr filtering rules.
(AC_OUTPUT): Add m4/Makefile.
|
| |
|
|
|
|
| |
3-arg form of the AC*DEFINE macros.
|
|
|
|
|
|
| |
(EXTRA_DIST): Add Makefile.maint GNUmakefile @README_ALPHA@.
(DISTCLEANFILES): Add intl/libintl.h.
(ACLOCAL_AMFLAGS): Define to `-I m4'.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* hash.c (hash_init): Initialize ht_empty_slots. Don't halve
ht_size. (hash_find_slot) Return deleted slot, if available.
(hash_insert_at): Decrement ht_empty_slots if one is consumed.
Rehash if emtpy slots become too scarce. (hash_free_items,
hash_deleted_item, hash_free): Re-initialize ht_empty_slots.
(hash_rehash): Don't double table size if rehashing only because
table is clogged with deleted slots.
|
|
|
|
|
|
|
|
| |
libidu/walker.c (get_lang_args): Ditto.
src/fnid.c (main): Ditto.
src/lid.c (report_grep, search_flinkv): Ditto.
src/mkid.c (scan_member_file): Consolidate two ALLOCA buffers
at inner scopes to a single buffer at an outer scope.
|