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