@@ -91,7 +91,7 @@ T_sp oEighth(T_sp o);
9191T_sp oNinth (T_sp o);
9292T_sp oTenth (T_sp o);
9393
94- #define CONS_CAR (x ) (gctools::reinterpret_cast_smart_ptr<::core::Cons_O>(x)->ocar ())
94+ #define CONS_CAR (x ) (gctools::reinterpret_cast_smart_ptr<::core::Cons_O>(x)->car ())
9595#define CONS_CDR (x ) (gctools::reinterpret_cast_smart_ptr<::core::Cons_O>(x)->cdr ())
9696#define CAR (x ) oCar(x)
9797#define CDR (x ) oCdr(x)
@@ -121,7 +121,7 @@ namespace core {
121121 friend T_sp oCdr (T_sp o);
122122#ifdef USE_PRECISE_GC
123123 public: // Garbage collector functions
124- uintptr_t rawRefCar () const { return (uintptr_t )this ->ocar ().raw_ (); }
124+ uintptr_t rawRefCar () const { return (uintptr_t )this ->car ().raw_ (); }
125125 uintptr_t rawRefCdr () const { return (uintptr_t )this ->cdr ().raw_ (); }
126126 void rawRefSetCar (uintptr_t val) { T_sp tval ((gctools::Tagged)val); this ->setCarNoValidate (tval); }
127127 void rawRefSetCdr (uintptr_t val) { T_sp tval ((gctools::Tagged)val); this ->setCdrNoValidate (tval); }
@@ -182,7 +182,7 @@ namespace core {
182182 }
183183
184184 public: // basic access
185- inline T_sp ocar () const { return _Car.load (std::memory_order_relaxed); }
185+ inline T_sp car () const { return _Car.load (std::memory_order_relaxed); }
186186 inline T_sp cdr () const { return _Cdr.load (std::memory_order_relaxed); }
187187 inline void setCarNoValidate (T_sp o) {
188188 _Car.store (o, std::memory_order_relaxed);
@@ -245,14 +245,14 @@ namespace core {
245245 T_sp cdr = this ->cdr ();
246246 if (UNLIKELY (!cdr.consp ()))
247247 return nil<T_O>();
248- return cdr.unsafe_cons ()->ocar ();
248+ return cdr.unsafe_cons ()->car ();
249249 }
250250
251251 /* ! Get the data for the first element */
252252 template <class o_class >
253253 gctools::smart_ptr<o_class> car () {
254- ASSERTNOTNULL (this ->ocar ());
255- return gc::As<gc::smart_ptr<o_class>>(this ->ocar ());
254+ ASSERTNOTNULL (this ->car ());
255+ return gc::As<gc::smart_ptr<o_class>>(this ->car ());
256256 };
257257 T_sp setf_nth (cl_index index, T_sp val);
258258 /* ! Return the last cons (not the last element) of list.
@@ -266,7 +266,7 @@ namespace core {
266266 /* ! Recursively hash the car and cdr parts - until the HashGenerator fills up */
267267 inline void sxhash_ (HashGenerator &hg) const {
268268 if (hg.isFilling ())
269- hg.hashObject (this ->ocar ());
269+ hg.hashObject (this ->car ());
270270 if (hg.isFilling ())
271271 hg.hashObject (this ->cdr ());
272272 }
@@ -325,6 +325,7 @@ namespace core {
325325 void describe (T_sp stream);
326326 string __repr__ () const ;
327327 void __write__ (T_sp stream) const ;
328+ bool maybe_write_quoted_form (bool tail, T_sp stream) const ;
328329
329330 /* !Set the owner of every car in the list
330331 */
@@ -350,10 +351,10 @@ namespace core {
350351 // These are necessary because atomics are not copyable.
351352 // More specifically they are necessary if you want to store conses in vectors,
352353 // which the hash table code does.
353- Cons_O (const Cons_O& other) : _Car(other.ocar ()), _Cdr(other.cdr()) {};
354+ Cons_O (const Cons_O& other) : _Car(other.car ()), _Cdr(other.cdr()) {};
354355 Cons_O& operator =(const Cons_O& other) {
355356 if (this != &other) {
356- setCar (other.ocar ());
357+ setCar (other.car ());
357358 setCdr (other.cdr ());
358359 }
359360 return *this ;
@@ -385,7 +386,7 @@ CL_DOCSTRING("Return the first object in a list.")
385386DOCGROUP (clasp)
386387CL_DEFUN inline core::T_sp oCar (T_sp obj) {
387388 if (obj.consp ())
388- return obj.unsafe_cons ()->ocar ();
389+ return obj.unsafe_cons ()->car ();
389390 if (obj.nilp ())
390391 return obj;
391392 TYPE_ERROR (obj, cl::_sym_Cons_O);
@@ -638,15 +639,15 @@ CL_DOCSTRING("Return the tenth object in a list.")
638639DOCGROUP (clasp)
639640CL_DEFUN inline T_sp oTenth (T_sp o) { return oCar (oCdr (oCdr (oCdr (oCdr (oCdr (oCdr (oCdr (oCdr (oCdr (o)))))))))); }
640641
641- inline T_sp cons_car (T_sp x) {ASSERT (x.consp ());return gctools::reinterpret_cast_smart_ptr<Cons_O>(x)->ocar ();};
642+ inline T_sp cons_car (T_sp x) {ASSERT (x.consp ());return gctools::reinterpret_cast_smart_ptr<Cons_O>(x)->car ();};
642643
643644inline T_sp cons_cdr (T_sp x) {ASSERT (x.consp ());return gctools::reinterpret_cast_smart_ptr<Cons_O>(x)->cdr ();};
644645
645- inline T_sp cons_car (Cons_sp x) {ASSERT (x.consp ());return x->ocar ();};
646+ inline T_sp cons_car (Cons_sp x) {ASSERT (x.consp ());return x->car ();};
646647
647648inline T_sp cons_cdr (Cons_sp x) {ASSERT (x.consp ());return x->cdr ();};
648649
649- inline T_sp cons_car (Cons_O* x) {return x->ocar ();};
650+ inline T_sp cons_car (Cons_O* x) {return x->car ();};
650651
651652inline T_sp cons_cdr (Cons_O* x) {return x->cdr ();};
652653
@@ -709,7 +710,7 @@ template <class T>
709710void fillVec0 (core::List_sp c, gctools::Vec0<T> &vec) {
710711 vec.clear ();
711712 for (auto me : (List_sp)(c)) {
712- vec.emplace_back (gc::As<T>(me->ocar ()));
713+ vec.emplace_back (gc::As<T>(me->car ()));
713714 }
714715}
715716
0 commit comments