summaryrefslogtreecommitdiffstats
path: root/src/mkid.c
Commit message (Collapse)AuthorAgeFilesLines
* * fix bad offtostr usage (now uses return value)Claudio Fontana2006-01-081-2/+2
|
* * started to address portability problems in the id-utils-4.0 releaseClaudio Fontana2005-12-271-7/+9
|
* * implemented fix for savannah support request sr #104712 andClaudio Fontana2005-12-151-1/+16
| | | | added test case
* * added inttostr module from gnulib, used in src/mkid.c to print anClaudio Fontana2005-12-111-3/+8
| | | | off_t portably using offtostr()
* * fixed small issues and integrated perl patch.Claudio Fontana2005-12-111-2/+3
| | | | Added some missing files in po/ and updated intl/
* *** empty log message ***Claudio Fontana2005-11-011-50/+53
|
* * src/mkid.c (write_id_file): Complain if fclose fails.Greg McGary1999-04-081-1/+2
| | | | [From jbb6@acpub.duke.edu]
* * libidu/idfile.h (largest_member_file): Add variable decl.Greg McGary1999-04-061-2/+7
| | | | | | | | | | | | | | | | (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-041-1/+1
|
* (name_tokens, number_tokens, string_tokens, literal_tokens,Greg McGary1999-04-041-12/+12
| | | | | | comment_tokens, occurrences, hits_length, tokens_length, output_length): Change type from size_t to unsigned long. (report_statistics): Fix printf formats.
* * Version 3.2c released.Greg McGary1999-04-041-6/+58
| | | | | | | | | | | | | * 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.
* * libidu/idfile.h (struct member_file) [mf_index]: ChangeGreg McGary1999-03-291-20/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * libidu/fnprint.c (print_filenames): Move ALLOCA outside loop.Greg McGary1998-11-201-2/+1
| | | | | | | | 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.
* assorted bug fixesGreg McGary1997-07-231-2/+3
|
* imported from id-utils-3.1r3_1Greg McGary1997-04-181-89/+124
|
* Initial revisionGreg McGary1997-04-181-0/+794