Function: semanticdb-create-table-for-file

semanticdb-create-table-for-file is a byte-compiled function defined in db.el.gz.

Signature

(semanticdb-create-table-for-file FILENAME)

Documentation

Initialize a database table for FILENAME, and return it.

If FILENAME exists in the database already, return that. If there is no database for the table to live in, create one.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/db.el.gz
(defun semanticdb-create-table-for-file (filename)
  "Initialize a database table for FILENAME, and return it.
If FILENAME exists in the database already, return that.
If there is no database for the table to live in, create one."
  (let ((cdb nil)
	(tbl nil)
	(dd (file-name-directory (file-truename filename)))
	)
    ;; Allow a database override function
    (setq cdb (semanticdb-create-database semanticdb-new-database-class
					  dd))
    ;; Get a table for this file.
    (setq tbl (semanticdb-create-table cdb filename))

    ;; Return the pair.
    (cons cdb tbl)
    ))