| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Run "make update-copyright".
|
|
|
|
|
|
| |
* libidu/scanners.c: As above.
* libidu/walker.c: Likewise.
* src/mkid.c: Likewise.
|
|
|
|
| |
Run "make update-copyright".
|
|
|
|
|
|
| |
Use this command:
git ls-files |grep -vE '^(\..*|COPYING|gnulib)$' |xargs \
env UPDATE_COPYRIGHT_USE_INTERVALS=1 build-aux/update-copyright
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use EXIT_FAILURE and EXIT_SUCCESS, not 1 and 0.
Apply these commands:
perl -pi -e 's/\berror \(1,/error (EXIT_FAILURE,/' \
$(git grep -l '\<error (1,')
perl -pi -e 's/\bexit \(1\)/exit (EXIT_FAILURE)/' \
$(git grep -l '\<exit (1)')
perl -pi -e 's/\bexit \(0\)/exit (EXIT_SUCCESS)/' \
$(git grep -l '\<exit (0)')
* libidu/idread.c (read_id_file, maybe_read_id_file, io_read):
* libidu/idu-hash.c (hash_init):
* libidu/idwrite.c (io_write):
* libidu/scanners.c (parse_language_map, parse_language_map_file):
(read_language_map_file):
* libidu/walker.c (include_languages, exclude_languages):
(get_current_dir_link):
* src/fid.c (usage, help_me, main):
* src/fnid.c (usage, help_me, main):
* src/lid.c (usage, help_me, main, report_grep, report_edit):
(query_regexp):
* src/mkid.c (main, assert_writeable, write_id_file):
* src/xtokid.c (help_me):
|
|
|
|
| |
* libidu/scanners.c: ...tools like llvm understand flow control better.
|
|
|
|
| |
* libidu/scanners.c (language_save_arg): Compare pointer to NULL, not 0.
|
| |
|
|
|
|
|
| |
* libidu/scanners.c (language_save_arg): Remove decl of unused
static local, horizontal_space.
|
|
|
|
|
|
|
|
|
| |
* libidu/scanners.c: languages_0[] is not const anymore, since this
would make impossible to set lang->lg_argv
* libidu/scanners.c: language_save_arg now manages language options
with zero or one argument.
* doc/idutils.texi: update to reflect the behavior of mkid "-l" option.
* testsuite/mkid-langopt: new test program.
|
|
|
|
| |
* libidu/scanners.c: set_default_language function implemented.
|
|
|
|
|
| |
* libidu/scanners.h (log_8_member_files): Change type from int to size_t.
* libidu/scanners.c: Likewise.
|
|
|
|
| |
* libidu/scanners.c (ISSPACE, WS): Remove unused macros.
|
|
|
|
|
|
|
| |
* libidu/idfile.c: Include <sys/stat.h>, not "lstat.h".
* libidu/scanners.c: Likewise.
* libidu/walker.c: Likewise.
* src/mkid.c: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libidu/scanners.c (long_options_c, long_options_asm)
(long_options_text, long_options_perl): Add initializers.
* src/fid.c (long_options): Add initializers.
* src/fnid.c (long_options): Add initializers.
* src/lid.c (ATTRIBUTE_UNUSED): Define.
(long_options): Add initializers.
(report_nothing): Mark parameter as unused.
(get_editor_argv, report_edit): Adjust for const-correctness.
* src/mkid.c (long_options): Add initializers.
(report_statistics): Don't subtract "void*" pointers. Cast to "char*".
* src/xtokid.c (long_options): Add initializers.
|
|
|
|
|
|
|
|
|
|
| |
* libidu/scanners.c (languages_0, long_options_c): Likewise.
(long_options_asm, long_options_text, long_options_perl): Likewise.
* src/fid.c (long_options): Likewise.
* src/fnid.c (long_options): Likewise.
* src/lid.c (long_options): Likewise.
* src/mkid.c (long_options): Likewise.
* src/xtokid.c (long_options): Likewise.
|
|
|
|
|
|
|
|
| |
* libidu/scanners.c (long_options_c, long_options_asm): Add "const".
(long_options_text, long_options_perl): Likewise.
* src/fnid.c (long_options): Likewise.
* src/lid.c (long_options): Likewise.
* src/xtokid.c (long_options): Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Mark with "extern" the symbols that belong that way.
Make the others static.
* libidu/dynvec.h (dv_fill):
* libidu/fnprint.c (cw_dlink):
* libidu/hash.h (qsort_cmp_t):
* libidu/idfile.h (io_func_t):
* libidu/scanners.c (lang_args_obstack, languages_0, languages_N):
(language_help_me, language_getopt, get_language):
(lang_args_index):
* libidu/walker.c (largest_member_file):
* maint.mk (extract_char, today):
* src/fid.c (long_options):
* src/fnid.c (cw_dlink):
* src/lid.c (cw_dlink):
* src/xtokid.c (cw_dlink):
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* libidu/dynvec.c (make_dynvec):
* libidu/scanners.c (parse_language_map_file, parse_args_c)
(parse_args_asm, parse_args_text):
|
|
|
|
|
|
|
|
| |
* libidu/dynvec.c (make_dynvec, dynvec_freeze, dynvec_append):
Use xnmalloc, not xmalloc (n * sizeof T).
Use xnrealloc, not xrealloc (p, n * sizeof T).
* libidu/walker.c (append_strings_to_vector, vectorize_string): Likewise.
* libidu/scanners.c (tokenize_args_string): Likewise.
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
| |
* libidu/walker.c: Don't include <strsep.h>.
* libidu/idfile.c: Likewise.
* libidu/scanners.c: Likewise.
Signed-off-by: Jim Meyering <meyering@redhat.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* libidu/scanners.c (get_token_lisp): Disable the code that
treats '[]' as part of a kawa identifier. It could call ungetc
two or three times in a row. One is the maximum.
* testsuite/infloop-kawa-el: New file. Test for the above.
* testsuite/Makefile.am (TESTS): Add infloop-kawa-el.
(TESTS_ENVIRONMENT): Prepend build directory to PATH so that
invoking e.g., "mkid" runs the just-built version of the tool.
|
| |
|
| |
|
|
|
|
| |
to workaround AC_REPLACE_FUNC / gnulib shortcomings
|
| |
|
|
|
|
| |
and comments #2775
|
| |
|
| |
|
|
|
|
| |
Added some missing files in po/ and updated intl/
|
|
|
|
| |
Fix language options handling bugs, and removed redundant C options help.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* lib/strtok.c: Remove file.
* configure.in: Check for strsep instead of strtok.
* libidu/idfile.c (locate_id_file_name): Use strsep instead of strtok.
* libidu/scanners.c (language_save_arg, language_save_arg,
tokenize_args_string): Ditto.
* libidu/walker.c (append_strings_to_vector, vectorize_string): Ditto.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
| |
|
| |
|
|
|