Function: cl--struct-register-child
cl--struct-register-child is a byte-compiled function defined in
cl-preloaded.el.gz.
Signature
(cl--struct-register-child PARENT TAG)
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-preloaded.el.gz
(defun cl--struct-register-child (parent tag)
;; Can't use (cl-typep parent 'cl-structure-class) at this stage
;; because `cl-structure-class' is defined later.
(while (cl--struct-class-p parent)
(add-to-list (cl--struct-class-children-sym parent) tag)
;; Only register ourselves as a child of the leftmost parent since structs
;; can only have one parent.
(setq parent (car (cl--struct-class-parents parent)))))