annotate etc/DISTRIB @ 28062:26edef632c89

This is a big redesign of failure-stack and register handling, prompted by bugs revealed when trying to add shy-groups. Overall, what happened is that loops are now structured a little differently, groups can be shy and the code is a little simpler. (enum re_opcode_t): Remove jump_past_alt, maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add on_failure_jump_(exclusive, loop and smart). Also fix the comment for (start|stop)_memory since they now only take one argument (the second has becomes unnecessary). (print_partial_compiled_pattern): Adjust for changes in re_opcode_t. (print_compiled_pattern): Use %ld to printf long ints and flush to make debugging a little easier. (union fail_stack_elt): Make the integer unsigned. (struct fail_stack_type): Add a `frame' element. (INIT_FAIL_STACK): Init `frame' as well. (POP_PATTERN_OP): New macro for re_compile_fastmap. (DEBUG_PUSH, DEBUG_POP): Remove. (NUM_REG_ITEMS): Remove. (NUM_NONREG_ITEMS): Adjust. (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE, TOP_FAILURE_HANDLE): New macros for the cycle detection. (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT). (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New macros. (PUSH_FAILURE_POINT): Don't push registers any more. The pattern address pushed is not the destination of the jump but the source of it instead. (NUM_FAILURE_ITEMS): Remove. (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop registers before the actual failure point). Don't hardcode any meaning for str==NULL anymore. (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE) (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED): Remove. (REG_UNSET_VALUE): Use NULL (why not?). (compile_range): Remove declaration since it doesn't exist. (struct compile_stack_elt_t): Remove inner_group_offset. (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove. (regex_grow_registers): Remove dead code. (FIXUP_ALT_JUMP): New macro. (regex_compile): Add shy-groups Change loops to use on_failure_jump_smart&jump instead of on_failure_jump&maybe_pop_jump. Change + loops to eliminate the initial (dummy_failure_)jump. Remove c1_base (looks like unused variable to me). Use `jump' instead of `jump_past_alt' and don't bother with push_dummy_failure in alternatives since it is now unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef emacs' for (re)allocating the stack. (re_compile_fastmap): Remove dead variables i and num_regs. Exit from loop when bufp->can_be_null rather than jumping to `done'. Avoid jumping backwards so as to ensure termination. Use PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of backreferences. Remove dead code in handling of `anychar'. (skip_noops, mutually_exclusive_p): New functions taken from the handling of `maybe_pop_jump' in re_match_2_internal. Slightly improve mutually_exclusive_p to handle ".+\n". ((lowest|highest)_active_reg, NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove. (re_match_2_internal): Use %p instead of 0x%x when printf'ing ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead variables. Push register (in `start_memory') on the stack rather than storing it in old_reg(start|end). Remove the cycle detection from `stop_memory', replaced by the use of on_failure_jump_loop for greedy loops. Add code for the new on_failure_jump_<foo>. Remove ad-hoc code in `on_failure_jump' to push more registers in the case of a loop. Take out code from `maybe_pop_jump' into separate functions and adapt it to the semantics of `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump and push_dummy_failure. Remove dummy_failure handling and handling of `failures to jump to on_failure_jump' (this last one was already dead code, it seems). ((group|alt|common_op)_match_null_string_p): Remove.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 08 Mar 2000 23:25:41 +0000
parents 6b5aacec5ace
children 1e525e729760
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26119
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
1 -*- text -*-
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
2 For an order form for all Emacs and FSF distributions deliverable from
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
3 the USA, see the file `ORDERS' in this directory (etc/ in the GNU
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
4 Emacs distribution or /pub/gnu/GNUinfo on ftp.gnu.org). For a
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
5 European order form, see `ORDERS.EUROPE'. For a Japan order form,
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
6 see `ORDERS.JAPAN'.
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
7
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
8 GNU Emacs availability information, April 1998
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
9 Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1995, 1998
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
10 Free Software Foundation, Inc.
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
11
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
12 Permission is granted to anyone to make or distribute
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
13 verbatim copies of this document provided that the
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
14 copyright notice and this permission notice are preserved.
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
15
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
16 GNU Emacs is legally owned by the Free Software Foundation, but we
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
17 regard the foundation more as its custodian on behalf of the public.
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
18
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
19 In the GNU project, when we speak of "free software", this refers to
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
20 liberty, not price. Specifically, it refers to the users' freedom to
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
21 study, copy, change and improve the software. Sometimes users pay
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
22 money for copies of GNU software, and sometimes they get copies at no
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
23 charge. But regardless of how they got the software, or whether it
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
24 was modified by anyone else along the way, they have the freedom to
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
25 copy and change it--those freedoms are what "free software" means.
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
26
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
27 The precise conditions for copying and modification are stated in the
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
28 document "GNU General Public License," a copy of which is required to
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
29 be distributed with every copy of GNU Emacs. It is usually in a file
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
30 named `COPYING' in the same directory as this file. These conditions
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
31 are designed to make sure that everyone who has a copy of GNU Emacs
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
32 (including modified versions) has the freedom to redistribute and
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
33 change it.
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
34
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
35 If you do not know anyone to get a copy of GNU Emacs from, you can
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
36 order a cd-rom from the Free Software Foundation. We distribute Emacs
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
37 versions 19 and 20. We also distribute nicely typeset copies of the
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
38 Emacs user manual, Emacs Lisp Reference Manual, the Emacs reference
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
39 card, etc. See file `ORDERS'.
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
40
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
41 If you have Internet access, you can copy the latest Emacs
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
42 distribution from hosts, such as ftp.gnu.org. There are several
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
43 ways to do this; see the file `FTP' for more information. Even
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
44 better, get the latest version of the file from `/pub/gnu/GNUinfo/FTP'
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
45 on ftp.gnu.org for the most current arrangements. It may also be
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
46 possible to copy Emacs via uucp; the file `FTP' contains information
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
47 on that too.
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
48
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
49 Emacs has been run on both Berkeley Unix and System V Unix, on a
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
50 variety of types of cpu. It also works on VMS and on Apollo
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
51 computers, though with some deficiencies that reflect problems in
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
52 these operating systems. See the file `MACHINES' in this directory
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
53 (see above) for a full list of machines that GNU Emacs has been tested
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
54 on, with machine-specific installation notes and warnings. There is
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
55 also Demacs that works on newer MS-DOS machines (see file `ORDERS').
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
56
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
57 Note that there is significant variation between Unix systems
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
58 supposedly running the same version of Unix; it is possible that what
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
59 works in GNU Emacs for me does not work on your system due to such an
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
60 incompatibility. Since I must avoid reading Unix source code, I
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
61 cannot even guess what such problems may exist.
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
62
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
63 GNU Emacs is distributed with no warranty (see the General Public
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
64 License for full details, in the file `COPYING' in this directory (see
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
65 above)), and neither I nor the Free Software Foundation promises any
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
66 kind of support or assistance to users. The foundation keeps a list
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
67 of people who are willing to offer support and assistance for hire.
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
68 See the file `SERVICE'. You can get the latest version from
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
69 ftp.gnu.org in file `/pub/gnu/GNUinfo/SERVICE'.
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
70
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
71 However, we plan to continue to improve GNU Emacs and keep it
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
72 reliable, so please send me any complaints and suggestions you have.
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
73 I will probably fix anything that I consider a malfunction. I may
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
74 make improvements that are suggested, but I may choose not to.
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
75 Improving Emacs is not my highest priority now.
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
76
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
77 If you are on the Internet, report bugs to bug-gnu-emacs@gnu.org.
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
78 Otherwise, phone or write the Foundation at:
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
79
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
80 Free Software Foundation
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
81 59 Temple Place - Suite 330
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
82 Boston, MA 02111-1307
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
83 Voice: +1-617-542-5942
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
84 Fax: +1-617-542-2652
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
85
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
86 General questions about the GNU Project can be asked of
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
87 gnu@gnu.org.
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
88
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
89 If you are a computer manufacturer, I encourage you to ship a copy of
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
90 GNU Emacs with every computer you deliver. The same copying
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
91 permission terms apply to computer manufacturers as to everyone else.
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
92 You should consider making a donation to help support the GNU project;
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
93 if you estimate what it would cost to distribute some commercial
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
94 product and divide it by five, that is a good amount.
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
95
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
96 If you like GNU Emacs, please express your satisfaction with a
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
97 donation: send me or the Foundation what you feel Emacs has been worth
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
98 to you. If you are glad that I developed GNU Emacs and distribute it
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
99 as freeware, rather than following the obstructive and antisocial
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
100 practices typical of software developers, reward me. If you would
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
101 like the Foundation to develop more free software, contribute.
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
102
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
103 Your donations will help to support the development of additional GNU
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
104 software. GNU/Linux systems (variants of GNU, based on the kernel
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
105 Linux) have millions of users, but there is still much to be done.
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
106 For more information on GNU, see the file `GNU' in this directory (see
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
107 above).
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
108
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
109 Richard M Stallman
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
110 Chief GNUisance,
6b5aacec5ace *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
111 President of the Free Software Foundation