aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFiles
2011-05-01Update copyright years. Add docs.Sergey Poznyakoff10
2011-05-01Minor changesSergey Poznyakoff1
* am/grecs.m4 (GRECS_SETUP): Call AC_PROG_YACC and AM_PROG_LEX. * src/grecs.h: Add a missing prototype.
2011-04-30Bugfixes and improvements.Sergey Poznyakoff5
* 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
2011-04-30Drop all dependencies from gnulib.Sergey Poznyakoff10
* 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.
2011-04-30Remove dependency on xlists.Sergey Poznyakoff5
* 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.
2011-04-18Minor fixSergey Poznyakoff1
2011-04-18Remove superfluous gnulib modules. Improve wordsplit.Sergey Poznyakoff5
* 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.
2010-01-02Update copyright years.Sergey Poznyakoff10
Happy GNU Year!
2009-12-21Update for gnulib 766d4f1d.Sergey Poznyakoff1
* gnulib.modules: Add xlist. * src/grecs.h: Include gl_xlist.h
2009-12-10BugfixSergey Poznyakoff1
* src/grecs-lex.l: Fix #include <config.h> protection.
2009-11-26Minor fix in wordsplit parser.Sergey Poznyakoff2
* src/wordsplit.c (scan_word): Ignore trailing whitespace. * src/grecs-lex.l: Remove duplicate inclusion of config.h
2009-10-19UpdateSergey Poznyakoff2
* src/grecs-lex.l (%top): Include config.h (requires flex >= 2.5.30) * src/wordsplit.c: Include stdio.h
2009-10-16Minor fixes.Sergey Poznyakoff3
* 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.
2009-10-16Bugfixes.Sergey Poznyakoff2
* src/grecs-lex.l (unquote_char): Handle \" and \v. * src/preproc.c: Use normal C comments.
2009-10-12Namespace cleanup. Add grecs_process_ident function.Sergey Poznyakoff5
* 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.
2009-04-21Change yyggrecs_ prefix to yy_grecs_Sergey Poznyakoff2
2009-04-21Keep user namespace clear.Sergey Poznyakoff1
* 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_.
2009-04-20Minor fixesSergey Poznyakoff2
2009-04-20Diverge from Wydawca gconf/ subdirectory into a separate projectSergey Poznyakoff10

Return to:

Send suggestions and report system problems to the System administrator.