Mercurial > emacs
annotate src/s/isc4-0.h @ 28203:c10ee0e6982b
(RE_STRING_CHAR): New macro.
(GET_CHAR_AFER_2): Remove.
(RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
(enum re_opcode_t): Remove on_failure_jump_exclusive.
(print_partial_compiled_pattern, re_compile_fastmap)
(re_match_2_internal): Remove on_failure_jump_exclusive.
(regex_compile): Turn optimizable P+ loops into PP*, so that the
optimization only need to work for * (ie. can use of_keep_string_jump).
Remove the special case for .*\n since it is now covered by the general
optimization.
(re_search_2): Don't bother with `room'.
(skip_one_char): New function.
(skip_noops): Simplify since `memory' is not needed any more.
(mutually_exclusive_p): Restructure slightly to use `switch' and
add handling for "all" remaining cases.
(re_match_2_internal): Change on_failure_jump_smart to use
on_failure_keep_string_jump (and redirect the end-of-loop jump)
rather than on_failure_jump_exclusive.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Sun, 19 Mar 2000 23:22:06 +0000 |
parents | 4e472b8b55c5 |
children | 4406a040b043 |
rev | line source |
---|---|
6777 | 1 #include "isc3-0.h" |
2 | |
9548
6c1db50b798d
(LIBS_SYSTEM): Add -lcposix.
Richard M. Stallman <rms@gnu.org>
parents:
8530
diff
changeset
|
3 #undef LIBS_SYSTEM |
6c1db50b798d
(LIBS_SYSTEM): Add -lcposix.
Richard M. Stallman <rms@gnu.org>
parents:
8530
diff
changeset
|
4 #define LIBS_SYSTEM -linet -lcposix |
7325
bfbebc2a04c9
(NEED_SIOCTL, ISC4_0): Declared.
Richard M. Stallman <rms@gnu.org>
parents:
6880
diff
changeset
|
5 |
bfbebc2a04c9
(NEED_SIOCTL, ISC4_0): Declared.
Richard M. Stallman <rms@gnu.org>
parents:
6880
diff
changeset
|
6 #define ISC4_0 |
8284
f21e11ac80bb
[__GNUC__] (LIBX11_SYSTEM): Add -lcposix.
Richard M. Stallman <rms@gnu.org>
parents:
7577
diff
changeset
|
7 |
f21e11ac80bb
[__GNUC__] (LIBX11_SYSTEM): Add -lcposix.
Richard M. Stallman <rms@gnu.org>
parents:
7577
diff
changeset
|
8 /* fmcphers@csugrad.cs.vt.edu reported this was necessary. |
f21e11ac80bb
[__GNUC__] (LIBX11_SYSTEM): Add -lcposix.
Richard M. Stallman <rms@gnu.org>
parents:
7577
diff
changeset
|
9 He used GCC. I don't know what is needed with other compilers. */ |
f21e11ac80bb
[__GNUC__] (LIBX11_SYSTEM): Add -lcposix.
Richard M. Stallman <rms@gnu.org>
parents:
7577
diff
changeset
|
10 #ifdef __GNUC__ |
f21e11ac80bb
[__GNUC__] (LIBX11_SYSTEM): Add -lcposix.
Richard M. Stallman <rms@gnu.org>
parents:
7577
diff
changeset
|
11 #undef LIBX11_SYSTEM |
f21e11ac80bb
[__GNUC__] (LIBX11_SYSTEM): Add -lcposix.
Richard M. Stallman <rms@gnu.org>
parents:
7577
diff
changeset
|
12 #define LIBX11_SYSTEM -lpt -lnls -lnsl_s -lcposix -lc |
f21e11ac80bb
[__GNUC__] (LIBX11_SYSTEM): Add -lcposix.
Richard M. Stallman <rms@gnu.org>
parents:
7577
diff
changeset
|
13 #endif |
9548
6c1db50b798d
(LIBS_SYSTEM): Add -lcposix.
Richard M. Stallman <rms@gnu.org>
parents:
8530
diff
changeset
|
14 |
6c1db50b798d
(LIBS_SYSTEM): Add -lcposix.
Richard M. Stallman <rms@gnu.org>
parents:
8530
diff
changeset
|
15 /* Tobias Herbert <herbert@clipper.ikp.physik.th-darmstadt.de> |
6c1db50b798d
(LIBS_SYSTEM): Add -lcposix.
Richard M. Stallman <rms@gnu.org>
parents:
8530
diff
changeset
|
16 says this is needed. */ |
6c1db50b798d
(LIBS_SYSTEM): Add -lcposix.
Richard M. Stallman <rms@gnu.org>
parents:
8530
diff
changeset
|
17 |
12754
8ba3a8c5dc43
(sigblock, SIG_BLOCK): Don't define them if POSIX_SIGNALS.
Richard M. Stallman <rms@gnu.org>
parents:
9548
diff
changeset
|
18 #ifndef POSIX_SIGNALS |
9548
6c1db50b798d
(LIBS_SYSTEM): Add -lcposix.
Richard M. Stallman <rms@gnu.org>
parents:
8530
diff
changeset
|
19 #ifndef sigblock |
6c1db50b798d
(LIBS_SYSTEM): Add -lcposix.
Richard M. Stallman <rms@gnu.org>
parents:
8530
diff
changeset
|
20 #ifndef SIG_BLOCK |
6c1db50b798d
(LIBS_SYSTEM): Add -lcposix.
Richard M. Stallman <rms@gnu.org>
parents:
8530
diff
changeset
|
21 #define SIG_BLOCK 0 |
6c1db50b798d
(LIBS_SYSTEM): Add -lcposix.
Richard M. Stallman <rms@gnu.org>
parents:
8530
diff
changeset
|
22 #endif |
6c1db50b798d
(LIBS_SYSTEM): Add -lcposix.
Richard M. Stallman <rms@gnu.org>
parents:
8530
diff
changeset
|
23 #define sigblock(sig) (sigprocmask (SIG_BLOCK, SIGEMPTYMASK | sig, NULL)) |
6c1db50b798d
(LIBS_SYSTEM): Add -lcposix.
Richard M. Stallman <rms@gnu.org>
parents:
8530
diff
changeset
|
24 #endif |
12754
8ba3a8c5dc43
(sigblock, SIG_BLOCK): Don't define them if POSIX_SIGNALS.
Richard M. Stallman <rms@gnu.org>
parents:
9548
diff
changeset
|
25 #endif /* not POSIX_SIGNALS */ |