Function: c-laomib-get-cache

c-laomib-get-cache is a byte-compiled function defined in cc-engine.el.gz.

Signature

(c-laomib-get-cache CONTAINING-SEXP START)

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/cc-engine.el.gz
(defun c-laomib-get-cache (containing-sexp start)
  ;; Get an element from `c-laomib-cache' matching CONTAINING-SEXP, and which
  ;; is suitable for start position START.
  ;; Return that element or nil if one wasn't found.
  (let ((ptr c-laomib-cache)
	elt)
    (while (and (setq elt (assq containing-sexp ptr))
		(< start (car (cddr elt))))
      (setq ptr (cdr (memq elt ptr))))
    (when elt
      ;; Move the fetched `elt' to the front of the cache.
      (setq c-laomib-cache (delq elt c-laomib-cache))
      (push elt c-laomib-cache)
      elt)))