summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* aid, eid, gid: Make these scripts executable in srcdir.Jim Meyering2008-02-143-0/+0
| | | | | | | | | This fixes a test failure that would occur when "aid" is not already installed anywhere in your search PATH. * src/aid: chmod a+x. * src/eid: Likewise. * src/gid: Likewise. Reported by Bob Proulx.
* Avoid printf-format-vs-arg type mismatch warnings.Jim Meyering2008-01-301-3/+5
| | | | * src/mkid.c (report_statistics): Cast ptrdiff_t to unsigned long long.
* Remove trailing blanks.Jim Meyering2008-01-303-4/+4
| | | | | | | | | | | | * README-alpha: * TODO: * doc/idutils.texi: * libidu/scanners.c (set_uchar_ctype, ARGS, get_token_lisp): * src/Makefile.am: * src/fid.c (main): * src/lid.c (report_edit): * Makefile.cfg (local-checks-to-skip): Remove sc_trailing_blank, thus enabling that check.
* Use xstrdup, not strdup.Jim Meyering2008-01-301-1/+1
| | | | | | | | | * src/lid.c (get_editor_argv): Use xstrdup, not strdup. * libidu/walker.c (get_current_dir_link): Likewise. * libidu/idfile.c: Include "xalloc.h". (locate_id_file_name): Handle failed strdup. * libidu/scanners.c (parse_args_text, parse_args_perl): Likewise. (parse_args_c, parse_args_asm): Likewise.
* Replace uses of xrealloc with uses of safer variants.Jim Meyering2008-01-141-7/+11
| | | | | | | * src/mkid.c (write_id_file): Avoid risk of overflow. (make_sibling_summary, add_token_to_summary): Likewise. Signed-off-by: Jim Meyering <meyering@redhat.com>
* src/mkid.c: Remove now-unused declaration of dirname.Jim Meyering2008-01-141-2/+0
| | | | Signed-off-by: Jim Meyering <meyering@redhat.com>
* Mark diagnostics for translation.Jim Meyering2008-01-142-3/+4
| | | | | | | | * src/mkid.c (main): Mark with _(...). * libidu/walker.c (exclude_languages, include_languages): Likewise. * src/lid.c (report_grep): Likewise. Signed-off-by: Jim Meyering <meyering@redhat.com>
* Put at least two spaces between an option and its description.Jim Meyering2008-01-143-6/+7
| | | | | | | | | help2man requires this. * src/lid.c: Add another space before the description. * src/mkid.c: Likewise. * src/xtokid.c: Likewise. Signed-off-by: Jim Meyering <meyering@redhat.com>
* Avoid SPACE-TAB.Jim Meyering2008-01-141-1/+1
| | | | | | | * testsuite/consistency: Use TAB-SPACE, instead. * src/defid: Likewise. Signed-off-by: Jim Meyering <meyering@redhat.com>
* License upgrade to "GPL-3 or later"Pedro J. Ruiz Lopez2007-08-175-18/+18
|
* * add missing checks for terminal-related include filesClaudio Fontana2006-07-221-1/+1
|
* * provide replacement for lstat in a convoluted way,Claudio Fontana2006-07-222-2/+2
| | | | to workaround AC_REPLACE_FUNC / gnulib shortcomings
* * fix sbrk portability issueClaudio Fontana2006-07-221-6/+15
|
* * remove generated files from CVSClaudio Fontana2006-07-212-581/+62
| | | | | * apply EDITOR env variable patch * updated ChangeLog
* *** empty log message ***Claudio Fontana2006-07-052-3/+3
|
* * add bug report string to the help outputClaudio Fontana2006-03-055-3/+11
| | | | * src/lid.c: fix bug in pattern recognition in is_number()
* * include gnulib changesClaudio Fontana2006-02-012-2/+4
|
* * portability fixesClaudio Fontana2006-01-111-1/+1
|
* * small fixesClaudio Fontana2006-01-111-8/+7
|
* * fix bad offtostr usage (now uses return value)Claudio Fontana2006-01-081-2/+2
|
* * s/id-utils/idutils/g;Claudio Fontana2006-01-062-3/+2
| | | | * other small changes
* * solve mutual dependencies problem linking programs in src/Claudio Fontana2005-12-272-12/+12
|
* * enforce use of <> and "" in include directivesClaudio Fontana2005-12-271-1/+1
|
* * started to address portability problems in the id-utils-4.0 releaseClaudio Fontana2005-12-276-25/+32
|
* * 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-112-3/+9
| | | | 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-3/+6
|
* *** empty log message ***Claudio Fontana2005-11-017-476/+591
|
* * assume ansi C-89Claudio Fontana2005-11-012-664/+0
|
* .Jim Meyering2000-06-061-104/+109
|
* update generated config filesGreg McGary2000-04-271-1/+0
|
* * lid.c (add_regexp_word_delimiters): Rename fromGreg McGary2000-04-271-23/+34
| | | | | | | | | | | maybe_add_word_delimiters--action is now unconditional. (query_literal_word): Call query_literal_substring if ignoring case. (query_literal_prefix): Call query_regexp if ignoring case. (query_regexp): Test delimiter_style before calling add_regexp_word_delimiters. (query_literal_substring): Add local var arg_length. Handle word matches which can happen when ignoring case. Add local var match.
* .Greg McGary1999-04-111-0/+1
|
* * libidu/idread.c (maybe_read_id_file): Add `b' for binaryGreg McGary1999-04-091-5/+5
| | | | | to fopen mode string. [From tbisp@uswest.net] * src/lid.c (report_grep): Change name of gid_FILE to source_FILE.
* * src/mkid.c (write_id_file): Complain if fclose fails.Greg McGary1999-04-081-1/+2
| | | | [From jbb6@acpub.duke.edu]
* * src/lid.c (limits.h): Include earlier to avoid RE_DUP_MAXGreg McGary1999-04-081-3/+7
| | | | | | | | | | conflict. [From Erick.Branderhorst@asml.nl] (search_flinkv): Bash terminating newline. [From marc@snafu.org] * lisp/elisp-comp: Import more recent version from automake. * libidu/scanners.c (SCAN_CPP_DIRECTIVE): Tolerate leading whitespace before first '#' [From rodneybrown@pmsc.com] (get_token_asm, get_token_c): Move some common leading context into SCAN_CPP_DIRECTIVE.
* * libidu/idfile.h (largest_member_file): Add variable decl.Greg McGary1999-04-062-2/+13
| | | | | | | | | | | | | | | | (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.
* .Greg McGary1999-04-052-170/+0
|
* Update copyright notices for 1999Greg McGary1999-04-044-4/+4
|
* * src/lid.c (search_flinkv): Replace `gets' with `fgets'.Greg 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.
* .r3_2bGreg McGary1999-03-291-5/+4
|
* * libidu/idfile.h (struct member_file) [mf_index]: ChangeGreg McGary1999-03-293-23/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * config.h.in (WITH_REGEX): Remove.Greg McGary1999-03-281-5/+1
| | | | | * configure.in (AM_WITH_REGEX): Remove. * src/lid.c (rx.h): Remove #include.
* .Greg McGary1999-03-021-7/+8
|
* .Greg McGary1999-03-021-2/+1
|
* * src/lid.c (report_grep): Continue rather than return whenGreg McGary1999-02-111-1/+1
| | | | fopen fails.
* *** empty log message ***Jim Meyering1999-01-272-5/+29
|