diff options
| author | Dmitry Antipov | 2012-10-10 19:31:21 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-10-10 19:31:21 +0400 |
| commit | 6aea75280281ab89266e7835655f2a551efd81b2 (patch) | |
| tree | 98fa101550e426454736be86a19c1233e3fd68e4 /src | |
| parent | 5f3f57be388eba88944a9e881afcbcacc100a8ae (diff) | |
| download | emacs-6aea75280281ab89266e7835655f2a551efd81b2.tar.gz emacs-6aea75280281ab89266e7835655f2a551efd81b2.zip | |
* alloc.c (mark_object): Use meaningful PVEC_NORMAL_VECTOR.
* lisp.h (enum pvec_type): Adjust comments and omit explicit
initializer for PVEC_NORMAL_VECTOR.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/alloc.c | 2 | ||||
| -rw-r--r-- | src/lisp.h | 10 |
3 files changed, 10 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b1aea7307ae..98433493475 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-10-10 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2 | |||
| 3 | * alloc.c (mark_object): Use meaningful PVEC_NORMAL_VECTOR. | ||
| 4 | * lisp.h (enum pvec_type): Adjust comments and omit explicit | ||
| 5 | initializer for PVEC_NORMAL_VECTOR. | ||
| 6 | |||
| 1 | 2012-10-10 Paul Eggert <eggert@cs.ucla.edu> | 7 | 2012-10-10 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 8 | ||
| 3 | Clean out old termopts cruft. | 9 | Clean out old termopts cruft. |
diff --git a/src/alloc.c b/src/alloc.c index 0cbdef84c4a..95be8db1614 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -5689,7 +5689,7 @@ mark_object (Lisp_Object arg) | |||
| 5689 | pvectype = ((ptr->header.size & PVEC_TYPE_MASK) | 5689 | pvectype = ((ptr->header.size & PVEC_TYPE_MASK) |
| 5690 | >> PSEUDOVECTOR_SIZE_BITS); | 5690 | >> PSEUDOVECTOR_SIZE_BITS); |
| 5691 | else | 5691 | else |
| 5692 | pvectype = 0; | 5692 | pvectype = PVEC_NORMAL_VECTOR; |
| 5693 | 5693 | ||
| 5694 | if (pvectype != PVEC_SUBR && pvectype != PVEC_BUFFER) | 5694 | if (pvectype != PVEC_SUBR && pvectype != PVEC_BUFFER) |
| 5695 | CHECK_LIVE (live_vector_p); | 5695 | CHECK_LIVE (live_vector_p); |
diff --git a/src/lisp.h b/src/lisp.h index 2a647e593a8..71e542cc769 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -345,15 +345,11 @@ static ptrdiff_t const PSEUDOVECTOR_FLAG | |||
| 345 | = PSEUDOVECTOR_FLAG; | 345 | = PSEUDOVECTOR_FLAG; |
| 346 | 346 | ||
| 347 | /* In a pseudovector, the size field actually contains a word with one | 347 | /* In a pseudovector, the size field actually contains a word with one |
| 348 | PSEUDOVECTOR_FLAG bit set, and exactly one of the following bits to | 348 | PSEUDOVECTOR_FLAG bit set, and one of the following values extracted |
| 349 | indicate the actual type. | 349 | with PVEC_TYPE_MASK to indicate the actual type. */ |
| 350 | We use a bitset, even tho only one of the bits can be set at any | ||
| 351 | particular time just so as to be able to use micro-optimizations such as | ||
| 352 | testing membership of a particular subset of pseudovectors in Fequal. | ||
| 353 | It is not crucial, but there are plenty of bits here, so why not do it? */ | ||
| 354 | enum pvec_type | 350 | enum pvec_type |
| 355 | { | 351 | { |
| 356 | PVEC_NORMAL_VECTOR = 0, /* Unused! */ | 352 | PVEC_NORMAL_VECTOR, |
| 357 | PVEC_FREE, | 353 | PVEC_FREE, |
| 358 | PVEC_PROCESS, | 354 | PVEC_PROCESS, |
| 359 | PVEC_FRAME, | 355 | PVEC_FRAME, |