Function: semanticdb-ebrowse-C-file-p
semanticdb-ebrowse-C-file-p is a byte-compiled function defined in
db-ebrowse.el.gz.
Signature
(semanticdb-ebrowse-C-file-p FILE)
Documentation
Is FILE a C or C++ file?
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/db-ebrowse.el.gz
(defun semanticdb-ebrowse-C-file-p (file)
"Is FILE a C or C++ file?"
(or (string-match semanticdb-ebrowse-file-match file)
(and (string-match "/\\w+$" file)
(not (file-directory-p file))
(let ((tmp (get-buffer-create "*semanticdb-ebrowse-tmp*")))
(with-current-buffer tmp
(condition-case nil
(insert-file-contents file nil 0 100 t)
(error (insert-file-contents file nil nil nil t)))
(goto-char (point-min))
(looking-at "\\s-*/\\(\\*\\|/\\)")
))
)))