]> git.eshelyaron.com Git - emacs.git/commit
New function internal--c-header-file-path
authorStefan Kangas <stefankangas@gmail.com>
Mon, 6 Jan 2025 09:08:01 +0000 (10:08 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 8 Jan 2025 08:45:42 +0000 (09:45 +0100)
commite287fb3d547e08159607210c87eaa1a203f2fe78
tree19ebad31efdc5886428d7d41c61c58b288a5bc4b
parentff5e0d8f0e1f0b2e9eb792080092a84496824304
New function internal--c-header-file-path

It is not clear to me where this function properly belongs, so let's put
it in subr.el for now.  This avoids code duplication without introducing
a dependency between man and ffap.  It can always be moved later.

* lisp/subr.el (internal--c-header-file-path): New function.
* lisp/man.el (Man-header-file-path):
* lisp/ffap.el (ffap-c-path): Use above new function.

* test/lisp/subr-tests.el (ert-x): Require.
(subr-tests-internal--c-header-file-path)
(subr-tests-internal--c-header-file-path/gcc-mocked): New tests.

(cherry picked from commit 888ff3755d499ca74f9d8cdf9e4d2c7dc0331236)
lisp/man.el
lisp/subr.el
test/lisp/subr-tests.el