summaryrefslogtreecommitdiffstats
path: root/libidu
Commit message (Collapse)AuthorAgeFilesLines
* * libidu/idfile.h (largest_member_file): Add variable decl.Greg McGary1999-04-064-30/+41
| | | | | | | | | | | | | | | | (MAX_LARGEST_MEMBER_FILE): Add constant. * libidu/scanners.h (scanner_buffer): Add variable decl. * libidu/scanners.c (scanner_buffer): Rename from id_0. * libidu/walker.c (largest_member_file): Add veriable defn. (walk_flink): Maintain largest_member_file. Call print_member_file. (maybe_get_member_file): Don't call print_member_file. (classify_link): Return 0 if file size is zero. * src/mkid.c (scan_files): Report size of largest file. Cap scanner_buffer size at MAX_LARGEST_MEMBER_FILE. Allocate scanner_buffer. * src/xtokid.c (scan_files): Cap scanner_buffer size at MAX_LARGEST_MEMBER_FILE. Allocate scanner_buffer.
* Update copyright notices for 1999Greg McGary1999-04-045-5/+5
|
* * Version 3.2c released.Greg McGary1999-04-043-98/+93
| | | | | | | | | | | | | * libidu/id-file.h (walker_verbose_flag): Add extern variable decl. * libidu/scanners.c (SCAN_CPP_DIRECTIVE): Add macro. (get_token_c, get_token_asm): Call SCAN_CPP_DIRECTIVE. * libidu/walker.c (walker_verbose_flag): Add variable defn. (print_member_file): Add function. (maybe_get_member_file): Call print_member_file in verbose mode. * src/mkid.c: Add coments. (ceil_log_2): Add function. (main): Handle 'V' option for extra verbosity. (scan_files): Use MAX (1M, n*lg(n)*64) to estimate initial size of token hash table.
* .r3_2bGreg McGary1999-03-291-1/+1
|
* * libidu/idfile.h (struct member_file) [mf_index]: ChangeGreg McGary1999-03-294-13/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* .r3_2aGreg McGary1999-03-281-34/+21
|
* * libidu/hash.c (hash_insert): hash_insert_at no longerGreg McGary1999-03-282-6/+14
| | | | | | | | | 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.
* .Greg McGary1999-03-021-25/+38
|
* .Jim Meyering1999-01-281-0/+1
|
* (EXTRA_DIST): Arrange to distribute id-lang.map.Jim Meyering1999-01-281-0/+1
|
* (set_ushort_ctype): Use an unsigned char index.Jim Meyering1999-01-281-13/+17
| | | | | | | | | | (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.
* *** empty log message ***Jim Meyering1999-01-271-0/+2
|
* .Jim Meyering1999-01-273-493/+22
|
* .Jim Meyering1999-01-271-176/+263
|
* (AUTOMAKE_OPTIONS): Likewise.Jim Meyering1999-01-271-5/+2
| | | | (ansi2knr.c): Remove rule.
* * hash.h (struct hash_table) [ht_empty_slots]: Add struct member.Greg McGary1999-01-262-12/+24
| | | | | | | | | | * 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/fnprint.c (print_filenames): Move ALLOCA outside loop.Greg McGary1998-11-202-6/+4
| | | | | | | | 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.
* * configure.in, lib/Makefile.am, libidu/Makefile.am:Greg McGary1998-11-191-2/+2
| | | | Conform macro names to automake-1.3 conventions.
* * libidu/scanners.c (id_0): Increase size and make file static.Greg McGary1998-11-181-3/+1
|
* assorted bug fixesGreg McGary1997-07-232-2/+2
|
* imported from id-utils-3.2r3_2Greg McGary1997-04-182-11/+13
|
* Initial revisionGreg McGary1997-04-182-0/+458
|
* Initial revisionGreg McGary1997-04-1817-0/+4397