Age | Commit message (Collapse) | Author | Files |
|
|
|
* am/grecs.m4 (GRECS_SETUP): Call AC_PROG_YACC and AM_PROG_LEX.
* src/grecs.h: Add a missing prototype.
|
|
* am/grecs.m4 (GRECS_INCLUDES): New substitute variable.
* src/Makefile.am (INCLUDES): Add GRECS_INCLUDES.
* src/grecs-gram.y: Remove leftover uses of xmalloc.
* src/grecs.h (grecs_zalloc, grecs_calloc): New protos.
* src/mem.c (grecs_zalloc, grecs_calloc): New functions.
* src/wordsplit.c [ENABLE_NLS]: include gettext.h
|
|
* gnulib.modules: Remove.
* src/mem.c: New file.
* src/symtab.c: New file.
* src/Makefile.am (libgrecs_a_SOURCES): Add mem.c and symtab.c.
(INCLUDES): Remove -Ignu
* src/grecs-gram.y (grecs_vasprintf, grecs_asprintf): New functions.
(grecs_warning, grecs_error): Use grecs_vasprintf.
(string_to_signed, string_to_unsigned): Remove.
(STRTONUM,STRxTONUM,GETUNUM,GETSNUM): New macros (from Mailutils).
(grecs_string_convert): Use macros for numeric conversions.
(grecs_prop_tab): Remove entries for uintmax_t and intmax_t.
* src/grecs-lex.l: Drop dependency on obstack.
(line_acc, string_list): New statics.
(line_acc_free_entry,line_acc_add_string): new function
(line_acc_add_char,list_acc_unescape_char): new function
(line_add_unescape_last): new function
(grecs_lex_begin,grecs_line_add, multiline_begin)
(grecs_line_finish): Rewrite.
* src/grecs.h (grecs_type_uintmax,grecs_type_intmax): Remove.
(grecs_malloc_fun,grecs_realloc_fun,grecs_alloc_die_fun): New externs.
(grecs_malloc,grecs_realloc,grecs_alloc_die,grecs_strdup)
(grecs_list_clear,grecs_list_free)
(grecs_vasprintf,grecs_asprintf): New protos.
(grecs_symtab,grecs_syment): New structs.
(grecs_symtab_enumerator_t): New type.
(grecs_symtab_strerror,grecs_symtab_lookup_or_install)
(grecs_symtab_clear,grecs_symtab_create)
(grecs_symtab_create_default)
(grecs_symtab_free,grecs_symtab_remove,grecs_symtab_replace)
(grecs_symtab_enumerate,grecs_symtab_count_entries): New protos.
* src/list.c (grecs_list_clear): New function.
(grecs_list_free): Use grecs_list_clear.
* src/preproc.c (linebufbase,linebufsize): New variables.
(pp_getline): New function.
(pp_line_stmt_size): Remove.
(pp_line_stmt): Use grecs_asprintf to format data.
(next_line,grecs_preproc_extrn_start): Use pp_getline.
(source_lookup): Use grecs_symtab instead of hash.
* src/text.c: Rewrite using grecs_symtab.
|
|
* gnulib.modules (linked-list, xlist): Remove.
* src/list.c: New file.
* src/Makefile.am (libgrecs_a_SOURCES): Add list.c
* src/grecs-gram.y: Use grecs_list functions.
* src/preproc.c: Likewise.
* src/grecs.h (grecs_list_entry, grecs_list): New structs.
(grecs_value): use struct grecs_list* for the v.list member.
(grecs_log_to_stderr): Change type to int.
(grecs_list_create, grecs_list_size, grecs_list_push)
(grecs_list_pop, grecs_list_locate, grecs_list_index)
(grecs_list_remove_tail): New protos.
|
|
|
|
* gnulib.modules: Remove c-type, error, regex and stdbool.
* src/grecs-gram.y: Use 0/1 instead of false/true.
* src/preproc.c: Likewise.
* src/grecs.h: Don't include stdbool.h
* src/wordsplit.c: Apply fixes from Mailutils.
* src/wordsplit.h: Likewise.
|
|
Happy GNU Year!
|
|
* gnulib.modules: Add xlist.
* src/grecs.h: Include gl_xlist.h
|
|
* src/grecs-lex.l: Fix #include <config.h> protection.
|
|
* src/wordsplit.c (scan_word): Ignore trailing whitespace.
* src/grecs-lex.l: Remove duplicate inclusion of config.h
|
|
* src/grecs-lex.l (%top): Include config.h (requires flex >= 2.5.30)
* src/wordsplit.c: Include stdio.h
|
|
* gnulib.modules: Add error.
* src/grecs-gram.y: Include string.h.
* src/preproc.c: Include signal.h.
(incl_hasher): Fix signature.
* src/text.c (text_hasher): Fix signature.
|
|
* src/grecs-lex.l (unquote_char): Handle \" and \v.
* src/preproc.c: Use normal C comments.
|
|
* src/grecs.h (GCONF_): Change prefix to GRECS_. All usages
updated.
(grecs_string_convert): Change prototype.
(grecs_process_ident): New prototype.
* src/grecs-gram.y (CURRENT_BASE): New define.
(target_ptr): Take base as 2nd parameter. All callers updated.
(string_to_signed, string_to_unsigned)
(string_to_bool, string_to_host)
(string_to_sockaddr, grecs_string_convert): Take additional
argument: source location.
(grecs_process_ident): New function.
(process_ident): Rewrite as a wrapper over grecs_process_ident.
* src/wordsplit.c (wordsplit_init): Fix handling of WRDSF_DOOFFS.
|
|
|
|
* build-aux/ylwrap: A modified ylwrap implentation. It
allows to rename all yy* symbols in the resulting files.
It was proposed for inclusion in Automake on 2007-06-22, but
didn't make it into the distribution so far.
* src/Makefile.am (YLWRAP): Rename all yy to yygrecs_.
|
|
|
|
|