aboutsummaryrefslogtreecommitdiffstats
path: root/src/regex.c
Commit message (Collapse)AuthorAgeFilesLines
* * alloc.c: Do not define struct catchtag.Dan Nicolaescu2009-10-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * eval.c: Move struct catchtag definition ... * lisp.h: ... here. * image.c: Move png.h #include earlier to avoid warnings. * xterm.c: * xsmfns.c: * xselect.c: * xrdb.c: * xmenu.c: * xftfont.c: * xfont.c: * xfns.c: * xfaces.c: * xdisp.c: * window.c: * widget.c: * w32xfns.c: * w32uniscribe.c: * w32term.c: * w32select.c: * w32reg.c: * w32proc.c: * w32menu.c: * w32inevt.c: * w32heap.c: * w32font.c: * w32fns.c: * w32console.c: * w32.c: * w16select.c: * vm-limit.c: * unexsol.c: * unexec.c: * unexcw.c: * unexaix.c: * undo.c: * tparam.c: * textprop.c: * terminfo.c: * terminal.c: * termcap.c: * term.c: * syntax.c: * sound.c: * sheap.c: * search.c: * scroll.c: * region-cache.c: * regex.c: * ralloc.c: * process.c: * print.c: * msdos.c: * minibuf.c: * menu.c: * marker.c: * macros.c: * keymap.c: * keyboard.c: * intervals.c: * insdel.c: * indent.c: * gtkutil.c: * ftxfont.c: * ftfont.c: * fringe.c: * frame.c: * fontset.c: * font.c: * fns.c: * floatfns.c: * filelock.c: * fileio.c: * emacs.c: * editfns.c: * dosfns.c: * doprnt.c: * doc.c: * dispnew.c: * dired.c: * dbusbind.c: * data.c: * composite.c: * coding.c: * cmds.c: * cm.c: * chartab.c: * charset.c: * character.c: * ccl.c: * category.c: * casetab.c: * casefiddle.c: * callproc.c: * callint.c: * bytecode.c: * buffer.c: * atimer.c: Include setjmp.h. (Bug#4643) * xlwmenu.c: * lwlib.c: * lwlib-utils.c: * lwlib-Xm.c: * lwlib-Xlw.c: * lwlib-Xaw.c: Include setjmp.h.
* Remove leftover table unibyte_to_multibyte_table.Stefan Monnier2009-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | * character.c (unibyte_to_multibyte_table): Remove. (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE. * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table. * character.h (UNIBYTE_TO_CHAR): New macro. (MAKE_CHAR_MULTIBYTE): Use it. (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove. * xdisp.c (get_next_display_element): USE ASCII_CHAR_P. (message_dolog, set_message_1): * search.c (Freplace_match): * editfns.c (Fcompare_buffer_substrings): * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE. (concat): * insdel.c (copy_text, count_size_as_multibyte): Use ASCII_CHAR_P and BYTE8_TO_CHAR. * term.c (produce_glyphs): * syntax.c (skip_chars): Use BYTE8_TO_CHAR. * regex.c (RE_CHAR_TO_MULTIBYTE): * cmds.c (internal_self_insert): * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
* Fix typos in comments.Juanma Barranquero2009-10-041-1/+1
|
* Add 2009 to copyright years.Glenn Morris2009-01-081-1/+1
|
* * character.h (CHAR_TO_BYTE_SAFE): New macro.Stefan Monnier2008-06-121-8/+2
| | | | | | | | * character.c (Fmultibyte_char_to_unibyte): Obey the docstring. * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro. (WEAK_ALIAS): Simplify. * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap when searching a unibyte buffer.
* remove useless if-before-free testsJim Meyering2008-06-021-6/+3
| | | | | | | | | | | | | | | | * lib-src/ebrowse.c (xfree): Likewise. * lib-src/etags.c (process_file_name, free_tree, free_fdesc): Likewise. (popclass_above, Prolog_functions, Erlang_functions): Likewise. * lib-src/pop.c (pop_quit): Likewise. * lwlib/lwlib-Xm.c (xm_update_one_value): Likewise. * lwlib/lwlib.c (safe_free_str, free_widget_value_tree): Likewise. * src/editfns.c (Fset_time_zone_rule): Likewise. * src/lread.c (nosuffix): Likewise. * src/ralloc.c (get_bloc): Likewise. * src/regex.c (reg_free): Likewise. * src/xftfont.c (xftfont_open, xftfont_close): Likewise. * src/xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise. * src/xsmfns.c (smc_save_yourself_CB): Likewise.
* (EXTEND_BUFFER): Change order of pointer addition operations, to avoidChong Yidong2008-03-261-5/+7
| | | | having the difference between pointers overflow.
* (re_match_2_internal): Properly match raw 8-bit bytesAndreas Schwab2008-03-171-0/+2
| | | | against a charset.
* (re_match_2_internal): Correct matching of a charsetAndreas Schwab2008-03-161-3/+12
| | | | against latin-1 characters.
* (re_match_2_internal): Correct matching of eight bitAndreas Schwab2008-03-151-0/+2
| | | | characters in unibyte strings.
* Update copyrights.Stefan Monnier2008-02-121-1/+1
|
* * configure.in (LIBX11_MACHINE, HAVE_XFREE386): Remove codeDan Nicolaescu2008-02-091-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | dealing with obsolete variables. * fakemail.c (MAIL_PROGRAM_NAME): Remove unused conditional. (main): Replace MAIL_PROGRAM_NAME with its value. * src/Makefile.in: * src/emacs.c: * src/gmalloc.c: * src/keyboard.c: * src/lisp.h: * src/m/ibm370aix.h: * src/process.c: * src/regex.c: * src/s/hpux.h: * src/sysdep.c: * src/sysselect.h: * src/systty.h: * src/unexec.c: * src/w32term.c: * src/xsmfns.c: * src/xterm.c: Remove code that deals with obsolete variables. * s/msdos.h (DONT_NEED_ENVIRON): Don't define. * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test, nothing else needs it anymore.
* Merge from emacs--devo--0Miles Bader2007-10-111-18/+1
|\ | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--devo--0 (patch 866-879) - Merge multi-tty branch - Update from CVS - Merge from emacs--rel--22 Revision: [email protected]/emacs--unicode--0--patch-257
| * (C_ALLOCA): Remove all references and code that was only used whenGlenn Morris2007-09-121-18/+1
| | | | | | | | this was defined.
* | Merge from emacs--devo--0Miles Bader2007-08-131-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--devo--0 (patch 846-851) - Update from CVS - Merge from emacs--rel--22 * emacs--rel--22 (patch 88-92) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 242-244) - Update from CVS Revision: [email protected]/emacs--unicode--0--patch-246
| * Merge from emacs--rel--22Miles Bader2007-08-131-1/+1
| |\ | | | | | | | | | Revision: [email protected]/emacs--devo--0--patch-851
| | * Replace `iff' in comments.Glenn Morris2007-08-081-1/+1
| | |
| | * Switch license to GPLv3 or later.Glenn Morris2007-07-261-2/+3
| | |
| * | Switch license to GPLv3 or later.Glenn Morris2007-07-271-2/+3
| | |
* | | Merge from emacs--devo--0Miles Bader2007-07-271-2/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--devo--0 (patch 824-831) - Update from CVS - Merge from emacs--rel--22 * emacs--rel--22 (patch 70-74) - Update from CVS Revision: [email protected]/emacs--unicode--0--patch-238
* | | Merge from emacs--devo--0Miles Bader2007-06-161-25/+46
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--devo--0 (patch 793-802) - Update from CVS - Remove RCS keywords - Merge from emacs--rel--22 * emacs--rel--22 (patch 42-50) - Update from CVS - Merge from gnus--rel--5.10 - Gnus ChangeLog tweaks * gnus--rel--5.10 (patch 229-232) - Merge from emacs--devo--0, emacs--rel--22 - ChangeLog tweak - Update from CVS Revision: [email protected]/emacs--unicode--0--patch-223
| * | (regex_compile): Remove the `regnum' counter.Stefan Monnier2007-06-121-25/+46
| |/ | | | | | | Use bufp->re_nsub instead. Add support for \(?N:RE\).
* | (analyse_first): Fix for multibyte characters in "caseKenichi Handa2007-03-231-17/+20
| | | | | | | | charset:" and "case categoryspec:".
* | (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.Juanma Barranquero2007-02-161-1/+1
| |
* | (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variableKenichi Handa2007-02-161-5/+5
| | | | | | | | | | | | | | target_multibyte instead of multibyte. (re_match_2_internal): Call bcmp_translate with target_multibyte. (bcmp_translate): Change the argument name from multibyte to target_multibyte.
* | (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New argKenichi Handa2007-02-151-153/+300
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | multibte. Callers changed. (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros. (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Deleted. Callers changed to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE respectively. (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros. (SETUP_MULTIBYTE_RANGE): Generate more compact range_table. (regex_compile): Make the compiled pattern usable both for multibyte and unibyte targets. (analyse_first): Make the fastmap usable both for multibyte and unibyte targets. (TRANSLATE_VIA_MULTIBYTE): Deleted. (re_match_2_internal): Pay attention to the case that the multibyteness of bufp and target may be different.
* | Merge from emacs--devo--0Miles Bader2007-01-261-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--devo--0 (patch 586-614) - Update from CVS - Update from erc--emacs--22 - Merge from gnus--rel--5.10 - Merge from erc--main--0 - Make byte compiler correctly write circular constants * gnus--rel--5.10 (patch 186-196) - Update from CVS - Merge from emacs--devo--0 Revision: [email protected]/emacs--unicode--0--patch-162
| * Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
| |
* | Merge from emacs--devo--0Miles Bader2007-01-011-9/+12
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--devo--0 (patch 563-582) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 177-185) - Merge from emacs--devo--0 - Update from CVS Revision: [email protected]/emacs--unicode--0--patch-158
| * (regerror): Change parameter name err_code.Jason Rumney2006-12-291-9/+12
| |
* | (regex_compile): Synch with HEAD.Kenichi Handa2006-12-151-1/+2
| |
* | Merge from emacs--devo--0Miles Bader2006-12-071-86/+86
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--devo--0 (patch 523-544) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 168-171) - Update from CVS - Merge from emacs--devo--0 Revision: [email protected]/emacs--unicode--0--patch-150
| * (regex_compile): Fix previous change.Kenichi Handa2006-11-301-1/+8
| |
| * (regex_compile): Fix previous change.Kenichi Handa2006-11-281-1/+1
| |
| * (regex_compile): Don't call SET_LIST_BIT with aKenichi Handa2006-11-281-1/+2
| | | | | | | | multibyte character.
| * Fix last change in whitespace.Juanma Barranquero2006-11-241-1/+1
| |
| * Whitespace/tab mixups.Juanma Barranquero2006-11-241-89/+89
| |
* | Merge from emacs--devo--0Miles Bader2006-10-151-0/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--devo--0 (patch 460-475) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 145-152) - Merge from emacs--devo--0 - Update from CVS Revision: [email protected]/emacs--unicode--0--patch-118
| * (regex_compile): Set the new `used_syntax' bit.Stefan Monnier2006-10-031-0/+9
| |
* | (analyse_first): Cancel the change for synching withKenichi Handa2006-10-041-7/+1
| | | | | | | | HEAD.
* | Merge from emacs--devo--0Miles Bader2006-10-031-1/+7
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--devo--0 (patch 447-459) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 141-144) - Merge from emacs--devo--0 - Update from CVS Revision: [email protected]/emacs--unicode--0--patch-115
| * (analyse_first): For eight-bit-control chars, mark both theStefan Monnier2006-09-221-8/+42
| | | | | | | | | | | | char's value and its leading byte in the fastmap. (re_search_2): When fast-scanning without translation, be careful to check that we only match the leading byte of a multibyte char.
* | Merge from emacs--devo--0Miles Bader2006-09-201-0/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--devo--0 (patch 437-446) - Update from CVS - lisp/url/url-methods.el: Fix format error when http_proxy is empty string - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 137-140) - Update from CVS Revision: [email protected]/emacs--unicode--0--patch-111
| * (re_compile_pattern): Set gl_state.current_syntax_table.Richard M. Stallman2006-09-161-0/+4
| |
* | Revision: [email protected]/emacs--unicode--0--patch-21Miles Bader2006-02-221-0/+45
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 97-112) - Update from CVS - Merge from erc--emacs--0 - Update from CVS: src/regex.c (extend_range_table_work_area): Fix typo. - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 37) - Update from CVS
| * Fix indentation.Andreas Schwab2006-02-211-4/+4
| |
| * * regex.c: Revert 2006-02-19 change.Chong Yidong2006-02-201-6/+15
| | | | | | | | Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
| * * regex.c (xmalloc, xrealloc): Define these when not linked toChong Yidong2006-02-201-0/+36
| | | | | | | | Emacs.
| * (extend_range_table_work_area): Fix typo.Luc Teirlinck2006-02-201-1/+1
| |
| * (regex_compile): Call xmalloc and xrealloc.Richard M. Stallman2006-02-201-8/+8
| | | | | | | | (regcomp): Use xmalloc.