emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tree-sitter api


From: Yuan Fu
Subject: Re: Tree-sitter api
Date: Fri, 10 Sep 2021 21:11:52 -0700


> On Sep 10, 2021, at 8:41 PM, Tuấn-Anh Nguyễn <ubolonton@gmail.com> wrote:
> 
>> Just realized another problem, how do we make sure the loaded library is 
>> GPL-compatible?
> 
> This question is rather non-technical, so I can't provide any comments.
> 
>> There certainly won’t be “plugin_is_GPL_compatible” symbol in them… And IIUC 
>> Emacs cannot load GPL-incompatible dynamic libraries?
> 
> That's one of the reasons for using `dynlib.h` APIs directly. The check for
> that symbol is at the level of `emacs-module.c`. Let's not conceptually
> conflate a "shared library" and an "Emacs dynamic module”.

I think you have it backwards. IIUC the reason why every Emacs dynamic module 
declares “plugin_is_GPL_compatible” is that every shared library that links 
with Emacs must be GPL compatible, and an Emacs dynamic module is a shared 
library. But that’s just my understanding, of course. I’m happy to be corrected.

Yuan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]