Function: c-add-type-1

c-add-type-1 is a byte-compiled function defined in cc-engine.el.gz.

Signature

(c-add-type-1 FROM TO)

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/cc-engine.el.gz
(defun c-add-type-1 (from to)
  ;; Add the given region as a type in `c-found-types'.  Prepare occurrences
  ;; of this new type for fontification throughout the buffer.
  ;;
  ;; This function might do hidden buffer changes.
  (let ((type (c-syntactic-content from to c-recognize-<>-arglists)))
    (unless (gethash type c-found-types)
      (puthash type t c-found-types)
      (when (and (not c-record-found-types) ; Only call `c-fontify-new-found-type'
					; when we haven't "bound" c-found-types
					; to itself in c-forward-<>-arglist.
		 (eq (string-match c-symbol-key type) 0)
		 (eq (match-end 0) (length type)))
	(c-fontify-new-found-type type)))))