aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2008-02-13 22:39:30 +0000
committerStefan Monnier2008-02-13 22:39:30 +0000
commit915b2a6aa8be30a0b3e3f869910cd223b91576f7 (patch)
treeec0ea297f70892331426d99713e33ad606d396f6 /src
parentfa2a4e7dac3968cbdece78995c2517b8077b60ed (diff)
downloademacs-915b2a6aa8be30a0b3e3f869910cd223b91576f7.tar.gz
emacs-915b2a6aa8be30a0b3e3f869910cd223b91576f7.zip
Undo last mistakenly commited change.
Diffstat (limited to 'src')
-rw-r--r--src/lisp.h26
1 files changed, 11 insertions, 15 deletions
diff --git a/src/lisp.h b/src/lisp.h
index f72c15e9d76..8221a85c13e 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -588,17 +588,13 @@ extern size_t pure_size;
588 588
589/* Convenience macros for dealing with Lisp arrays. */ 589/* Convenience macros for dealing with Lisp arrays. */
590 590
591#define ASLOT(ARRAY, IDX) XVECTOR ((ARRAY))->contents[IDX] 591#define AREF(ARRAY, IDX) XVECTOR ((ARRAY))->contents[IDX]
592#define ASIZE(ARRAY) XVECTOR ((ARRAY))->size 592#define ASIZE(ARRAY) XVECTOR ((ARRAY))->size
593/* The IDX==IDX checks that the macro argument is not side-effecting. */ 593/* The IDX==IDX tries to detect when the macro argument is side-effecting. */
594#define AREF(ARRAY, IDX) \
595 (eassert ((IDX) == (IDX)), \
596 eassert ((IDX) >= 0 && (IDX) < ASIZE (ARRAY)), \
597 ASLOT (ARRAY, (IDX)))
598#define ASET(ARRAY, IDX, VAL) \ 594#define ASET(ARRAY, IDX, VAL) \
599 (eassert ((IDX) == (IDX)), \ 595 (eassert ((IDX) == (IDX)), \
600 eassert ((IDX) >= 0 && (IDX) < ASIZE (ARRAY)), \ 596 eassert ((IDX) >= 0 && (IDX) < ASIZE (ARRAY)), \
601 ASLOT ((ARRAY), (IDX)) = (VAL)) 597 AREF ((ARRAY), (IDX)) = (VAL))
602 598
603/* Convenience macros for dealing with Lisp strings. */ 599/* Convenience macros for dealing with Lisp strings. */
604 600
@@ -690,12 +686,12 @@ struct Lisp_Cons
690#define CAR(c) \ 686#define CAR(c) \
691 (CONSP ((c)) ? XCAR ((c)) \ 687 (CONSP ((c)) ? XCAR ((c)) \
692 : NILP ((c)) ? Qnil \ 688 : NILP ((c)) ? Qnil \
693 : (wrong_type_argument (Qlistp, (c)), Qnil)) 689 : wrong_type_argument (Qlistp, (c)))
694 690
695#define CDR(c) \ 691#define CDR(c) \
696 (CONSP ((c)) ? XCDR ((c)) \ 692 (CONSP ((c)) ? XCDR ((c)) \
697 : NILP ((c)) ? Qnil \ 693 : NILP ((c)) ? Qnil \
698 : (wrong_type_argument (Qlistp, (c)), Qnil)) 694 : wrong_type_argument (Qlistp, (c)))
699 695
700/* Take the car or cdr of something whose type is not known. */ 696/* Take the car or cdr of something whose type is not known. */
701#define CAR_SAFE(c) \ 697#define CAR_SAFE(c) \
@@ -1094,25 +1090,25 @@ struct Lisp_Hash_Table
1094 1090
1095/* Value is the key part of entry IDX in hash table H. */ 1091/* Value is the key part of entry IDX in hash table H. */
1096 1092
1097#define HASH_KEY(H, IDX) ASLOT ((H)->key_and_value, 2 * (IDX)) 1093#define HASH_KEY(H, IDX) AREF ((H)->key_and_value, 2 * (IDX))
1098 1094
1099/* Value is the value part of entry IDX in hash table H. */ 1095/* Value is the value part of entry IDX in hash table H. */
1100 1096
1101#define HASH_VALUE(H, IDX) ASLOT ((H)->key_and_value, 2 * (IDX) + 1) 1097#define HASH_VALUE(H, IDX) AREF ((H)->key_and_value, 2 * (IDX) + 1)
1102 1098
1103/* Value is the index of the next entry following the one at IDX 1099/* Value is the index of the next entry following the one at IDX
1104 in hash table H. */ 1100 in hash table H. */
1105 1101
1106#define HASH_NEXT(H, IDX) ASLOT ((H)->next, (IDX)) 1102#define HASH_NEXT(H, IDX) AREF ((H)->next, (IDX))
1107 1103
1108/* Value is the hash code computed for entry IDX in hash table H. */ 1104/* Value is the hash code computed for entry IDX in hash table H. */
1109 1105
1110#define HASH_HASH(H, IDX) ASLOT ((H)->hash, (IDX)) 1106#define HASH_HASH(H, IDX) AREF ((H)->hash, (IDX))
1111 1107
1112/* Value is the index of the element in hash table H that is the 1108/* Value is the index of the element in hash table H that is the
1113 start of the collision list at index IDX in the index vector of H. */ 1109 start of the collision list at index IDX in the index vector of H. */
1114 1110
1115#define HASH_INDEX(H, IDX) ASLOT ((H)->index, (IDX)) 1111#define HASH_INDEX(H, IDX) AREF ((H)->index, (IDX))
1116 1112
1117/* Value is the size of hash table H. */ 1113/* Value is the size of hash table H. */
1118 1114
@@ -2256,7 +2252,7 @@ extern unsigned long cons_to_long P_ ((Lisp_Object));
2256extern void args_out_of_range P_ ((Lisp_Object, Lisp_Object)) NO_RETURN; 2252extern void args_out_of_range P_ ((Lisp_Object, Lisp_Object)) NO_RETURN;
2257extern void args_out_of_range_3 P_ ((Lisp_Object, Lisp_Object, 2253extern void args_out_of_range_3 P_ ((Lisp_Object, Lisp_Object,
2258 Lisp_Object)) NO_RETURN; 2254 Lisp_Object)) NO_RETURN;
2259extern void wrong_type_argument P_ ((Lisp_Object, Lisp_Object)) NO_RETURN; 2255extern Lisp_Object wrong_type_argument P_ ((Lisp_Object, Lisp_Object)) NO_RETURN;
2260extern void store_symval_forwarding P_ ((Lisp_Object, Lisp_Object, 2256extern void store_symval_forwarding P_ ((Lisp_Object, Lisp_Object,
2261 Lisp_Object, struct buffer *)); 2257 Lisp_Object, struct buffer *));
2262extern Lisp_Object do_symval_forwarding P_ ((Lisp_Object)); 2258extern Lisp_Object do_symval_forwarding P_ ((Lisp_Object));