Mercurial > emacs
annotate src/s/sol2.h @ 4139:0b32ee899a3a
Consistently use the mark bit of the root interval's parent field
to say whether or not the interval tree has been visited (and skip
it when revisited), and the mark bit of the plist field to say
whether or not that interval has been visited (and abort if
revisited); don't try to use the plist mark bit for both
meanings.
* alloc.c (mark_interval_tree): Don't test if the interval tree
has already been visited here; let the MARK_INTERVAL_TREE macro do
that; avoid function call overhead. Mark the interval tree as
having been visited by setting TREE->parent's mark bit.
(MARK_INTERVAL_TREE): If the tree has been visited (according to
I->parent's mark bit), don't call mark_interval_tree.
(gc_sweep): Rebalance the interval trees of those large strings
which are still alive. This also clears the mark bits of those
trees' root intervals' parent fields.
(compact_strings): Rebalance the interval tree of each small
strings which is still alive. This also clears the mark bits of
that tree's root interval's parent field. Since the string has
moved, update the root interval's parent pointer to contain the
new address.
* lisp.h (struct interval): Doc fix; explain the roles of the mark
bits of the parent and plist members.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Sun, 18 Jul 1993 06:26:10 +0000 |
parents | 7930bf123cb7 |
children | 14c8cd7926a0 |
rev | line source |
---|---|
2815
60f122cfe785
* process.c (wait_reading_process_input): If we're running
Jim Blandy <jimb@redhat.com>
parents:
2741
diff
changeset
|
1 #include "usg5-4.h" |
1179 | 2 |
3435
7930bf123cb7
(XOS_NEEDS_TIME_H): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
3413
diff
changeset
|
3 /* This triggers a conditional in xfaces.c. */ |
7930bf123cb7
(XOS_NEEDS_TIME_H): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
3413
diff
changeset
|
4 #define XOS_NEEDS_TIME_H |
7930bf123cb7
(XOS_NEEDS_TIME_H): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
3413
diff
changeset
|
5 |
1179 | 6 #define POSIX |
7 | |
3161
2965c226e5ed
* s/sol2.h (C_SWITCH_X_SYSTEM): Deleted.
Jim Blandy <jimb@redhat.com>
parents:
3097
diff
changeset
|
8 /* Here is how to find X Windows. The -R option says where |
2965c226e5ed
* s/sol2.h (C_SWITCH_X_SYSTEM): Deleted.
Jim Blandy <jimb@redhat.com>
parents:
3097
diff
changeset
|
9 to find X windows at run time. */ |
1638
e49c2e6349e4
(LD_SWITCH_SYSTEM): Make alternate version for GCC.
Richard M. Stallman <rms@gnu.org>
parents:
1584
diff
changeset
|
10 #ifndef __GNUC__ |
3161
2965c226e5ed
* s/sol2.h (C_SWITCH_X_SYSTEM): Deleted.
Jim Blandy <jimb@redhat.com>
parents:
3097
diff
changeset
|
11 #define LD_SWITCH_SYSTEM -R/usr/openwin/lib |
1638
e49c2e6349e4
(LD_SWITCH_SYSTEM): Make alternate version for GCC.
Richard M. Stallman <rms@gnu.org>
parents:
1584
diff
changeset
|
12 #else /* GCC */ |
3161
2965c226e5ed
* s/sol2.h (C_SWITCH_X_SYSTEM): Deleted.
Jim Blandy <jimb@redhat.com>
parents:
3097
diff
changeset
|
13 #define LD_SWITCH_SYSTEM -Xlinker -R/usr/openwin/lib |
1638
e49c2e6349e4
(LD_SWITCH_SYSTEM): Make alternate version for GCC.
Richard M. Stallman <rms@gnu.org>
parents:
1584
diff
changeset
|
14 #endif /* GCC */ |
1179 | 15 |
16 /* Compile in non-ansi fashion to work around bugs in system header files. */ | |
17 #ifndef __GNUC__ | |
18 #define C_SWITCH_SYSTEM -Xs | |
19 #else /* GCC */ | |
20 #define C_SWITCH_SYSTEM -traditional | |
21 #endif /* GCC */ | |
2815
60f122cfe785
* process.c (wait_reading_process_input): If we're running
Jim Blandy <jimb@redhat.com>
parents:
2741
diff
changeset
|
22 #define const |
2741
1d72336294c6
* fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the
Jim Blandy <jimb@redhat.com>
parents:
1638
diff
changeset
|
23 |
1d72336294c6
* fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the
Jim Blandy <jimb@redhat.com>
parents:
1638
diff
changeset
|
24 /* Karl Berry writes: |
1d72336294c6
* fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the
Jim Blandy <jimb@redhat.com>
parents:
1638
diff
changeset
|
25 If you have the misfortune to be running Solaris 2.1, you may have |
1d72336294c6
* fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the
Jim Blandy <jimb@redhat.com>
parents:
1638
diff
changeset
|
26 noticed that the access system call does not check the readonlyness of |
1d72336294c6
* fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the
Jim Blandy <jimb@redhat.com>
parents:
1638
diff
changeset
|
27 the filesystem the path refers to. This is a bug, according to |
1d72336294c6
* fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the
Jim Blandy <jimb@redhat.com>
parents:
1638
diff
changeset
|
28 access(2), but in the meantime, some of us need the right behavior. */ |
3162
358923f49f13
* s/sol2.h: (SOLARIS_BROKEN_ACCESS): Don't define this.
Jim Blandy <jimb@redhat.com>
parents:
3161
diff
changeset
|
29 |
358923f49f13
* s/sol2.h: (SOLARIS_BROKEN_ACCESS): Don't define this.
Jim Blandy <jimb@redhat.com>
parents:
3161
diff
changeset
|
30 /* Well, we released Emacs with this change, and fixed a typo, but |
358923f49f13
* s/sol2.h: (SOLARIS_BROKEN_ACCESS): Don't define this.
Jim Blandy <jimb@redhat.com>
parents:
3161
diff
changeset
|
31 people keep saying that it doesn't work, and that the patch is easy |
3413 | 32 to install. Patch number is 100947-02. */ |
3162
358923f49f13
* s/sol2.h: (SOLARIS_BROKEN_ACCESS): Don't define this.
Jim Blandy <jimb@redhat.com>
parents:
3161
diff
changeset
|
33 #undef SOLARIS_BROKEN_ACCESS |