Function: semantic-expand-c-extern-C

semantic-expand-c-extern-C is a byte-compiled function defined in c.el.gz.

Signature

(semantic-expand-c-extern-C TAG)

Documentation

Expand TAG containing an extern "C" statement.

This will return all members of TAG with extern "C" added to the typemodifiers attribute.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/bovine/c.el.gz
(defun semantic-expand-c-extern-C (tag)
  "Expand TAG containing an `extern \"C\"' statement.
This will return all members of TAG with `extern \"C\"' added to
the typemodifiers attribute."
    (when (eq (semantic-tag-class tag) 'extern)
      (let* ((mb (semantic-tag-get-attribute tag :members))
	     (ret mb))
	(while mb
	  (let ((mods (semantic-tag-get-attribute (car mb) :typemodifiers)))
	    (setq mods (cons "extern" (cons "\"C\"" mods)))
	    (semantic-tag-put-attribute (car mb) :typemodifiers mods))
	  (setq mb (cdr mb)))
	(nreverse ret))))