comparison src/.gdbinit @ 10337:597742bda8b6

(xcar, xcdr): Use correct shift and mask values.
author Karl Heuer <kwzh@gnu.org>
date Wed, 04 Jan 1995 21:31:58 +0000
parents a76a89bb6c57
children 727cd2061e2a
comparison
equal deleted inserted replaced
10336:a76a89bb6c57 10337:597742bda8b6
135 document xcons 135 document xcons
136 Print the contents of $, assuming it is an Emacs Lisp cons. 136 Print the contents of $, assuming it is an Emacs Lisp cons.
137 end 137 end
138 138
139 define xcar 139 define xcar
140 print ((($ >> 24) & 0x7f) == Lisp_Cons ? ((struct Lisp_Cons *) (($ & 0x0fffffff) | $data_seg_bits))->car : 0) 140 print ((($ >> 28) & 0xf) == Lisp_Cons ? ((struct Lisp_Cons *) (($ & 0x0fffffff) | $data_seg_bits))->car : 0)
141 end 141 end
142 document xcar 142 document xcar
143 Print the car of $, assuming it is an Emacs Lisp pair. 143 Print the car of $, assuming it is an Emacs Lisp pair.
144 end 144 end
145 145
146 define xcdr 146 define xcdr
147 print ((($ >> 24) & 0x7f) == Lisp_Cons ? ((struct Lisp_Cons *) (($ & 0x0fffffff) | $data_seg_bits))->cdr : 0) 147 print ((($ >> 28) & 0xf) == Lisp_Cons ? ((struct Lisp_Cons *) (($ & 0x0fffffff) | $data_seg_bits))->cdr : 0)
148 end 148 end
149 document xcdr 149 document xcdr
150 Print the cdr of $, assuming it is an Emacs Lisp pair. 150 Print the cdr of $, assuming it is an Emacs Lisp pair.
151 end 151 end
152 152