Function: cedet-gnu-global-scan-hits

cedet-gnu-global-scan-hits is a byte-compiled function defined in cedet-global.el.gz.

Signature

(cedet-gnu-global-scan-hits BUFFER)

Documentation

Scan all the hits from the GNU Global output BUFFER.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/cedet-global.el.gz
(defun cedet-gnu-global-scan-hits (buffer)
  "Scan all the hits from the GNU Global output BUFFER."
  (let ((hits nil)
	(r1 "^\\([^ ]+\\) +\\([0-9]+\\) \\([^ ]+\\) "))
    (with-current-buffer buffer
      (goto-char (point-min))
      (while (re-search-forward r1 nil t)
	(setq hits (cons (cons (string-to-number (match-string 2))
			       (match-string 3))
			 hits)))
      ;; Return the results
      (nreverse hits))))