From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jorge Araya Navarro Newsgroups: gmane.emacs.devel Subject: Where to place third-party C source code? Date: Fri, 27 Sep 2019 21:29:52 +0000 (UTC) Message-ID: <1504933445.581219.1569619792280@mail.yahoo.com> References: <1504933445.581219.1569619792280.ref@mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="197998"; mail-complaints-to="usenet@blaine.gmane.org" To: Emacs Developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 27 23:32:33 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iDxqq-000pMM-QT for ged-emacs-devel@m.gmane.org; Fri, 27 Sep 2019 23:32:33 +0200 Original-Received: from localhost ([::1]:57718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDxqo-0003hn-O6 for ged-emacs-devel@m.gmane.org; Fri, 27 Sep 2019 17:32:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32883) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDxp6-0003hf-Ps for emacs-devel@gnu.org; Fri, 27 Sep 2019 17:30:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iDxp5-0000zS-Ge for emacs-devel@gnu.org; Fri, 27 Sep 2019 17:30:44 -0400 Original-Received: from sonic311-24.consmr.mail.ne1.yahoo.com ([66.163.188.205]:42634) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iDxp5-0000vA-1j for emacs-devel@gnu.org; Fri, 27 Sep 2019 17:30:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.mx; s=s2048; t=1569619841; bh=IlNFI87QHu6Jzovim8xaF9qdEb4rybkGlqguMxabT3Y=; h=Date:From:To:Subject:References:From:Subject; b=MiF+6teaXTLowU5/qVhPTsFE3WLhtNY1XDNgdynk2yy0dvyPkKwZLXIIpbHbokROIBIwUomwk6aI39He5FzpdIvA/hiM5Qhsr5dCVmni5ZdYUOOA2GO/QMXtdfMHzpYBX24Wieus8TPfR+wKuLlnM7ut/EqvcoOEr0BoFlCJTb+YXWzde+4fak3YPy8FxAWJ4fyOik0cEEvhOZaoQXUOsPKrtM0a4vJ2S3y5OjxQ3OmOzF0dBgRfz2RTGFnRNmQTh74UwejqS/gRm8v0p57DJmfEkZW3SEfgnb25KNiN98roOSWsOWnR8uaaskGAjh7vBV3fWyidSCMYN3+oZNdnMg== X-YMail-OSG: ulbU7D4VM1m.UfhmrAq_MPex_9RkbXycysgUT31ArG9oDhLOmLyaxI3caVtwFg8 koVitiB65TefXuAEpCF50SeSUPaKKY7GGBtIi4QrCp7Q8T5K7XIBH9YPTz9iw6ifIT4BrweLEfWd SZRHhWYAuqX7yflTh1tKeKnsE9FPmpnQJslwJFH2Nqs0JsRym.kjnsitJDTHPtD.CpflUbO1vziE mFdT85orYMtFpWi2G.2VB5Oc71Wx0_KUhHVBTOBviQaGInhlhMbrg..yjGo.7sEzU3Aa.zDx_9jP WhnRd0zni8sOSJbePOLuKcC1h8EjPLySq5iPG9Fl.fq5IlHn5HMcgkJl0ur2HPER4n7NfuWMl8Zn lYAHyKSoxXdd16mGX7YE5nGjei3pCnJX.7z0CZi3XQxS5WsyrVH.l.3RFLPe69x8S6BZU5gOEw2S WTuF0S8lEzI6agCZKyiulQzdNCWDWh.suTzjieT_bVC1Ed0DSYq6G22Se2H5HgUzg2g7L5wKoGdq ZMluKc3CI5_nHhPwufNTZz2mAxP2OomlGNhgovgmZWji.jON6E3BGBKR8zVWwnHlFOK4S8WbpvI0 mlGvwxSx1stnaoEhC3_V4d7IrAcxYaOGyNPDJ_fvUL61GTVcMdwnz2m6kf0QUsBT8DK7O2k9_kSs I9WW.A6p6Q1WuiFbD4mU7i.laH.Fc4G4a7hatxv_yO1K_dq5dEgA_hYNl8KD14ukeW5idZQXjymJ 1rEZwkDTzeajQbmEe.6mwgQV.TLVcjHXig1HYex4hcuPvmrZ7Gf321Z0yfgA1lRB9NksPNTYPGOM H4fjMOo28vtVaUYPezx8kLVWSyLOrI.U7.MJk4vsht Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Fri, 27 Sep 2019 21:30:41 +0000 X-Mailer: WebService/1.1.14448 YMailNorrin Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 66.163.188.205 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:240350 Archived-At: Hello! I was wondering if placing third-party C source code that is used in any fe= ature I would like to implement in the Emacs project is "against the rules"= , sort of speak. I ask because I would like to attempt to integrate tree-sitter (a parser ge= nerator tool and an incremental parsing library; I'm aware there are a coup= le of projects that gives Emacs lisp bindings for this project, too; I'm ju= st wondering how the world could be if this thing was shipped in Vanilla Em= acs), according to its documentation[1]: =C2=A0=C2=A0=C2=A0 [...] you can use the library in a larger project by add= ing one source file to the project. This source file needs three directorie= s to be in the include path when compiled: =C2=A0=C2=A0=C2=A0 source file: =C2=A0=C2=A0=C2=A0 - tree-sitter/lib/src/lib.c=20 =C2=A0=C2=A0=C2=A0 include directories:=20 =C2=A0=C2=A0=C2=A0 - tree-sitter/lib/src =C2=A0=C2=A0=C2=A0 - tree-sitter/lib/include =C2=A0=C2=A0=C2=A0 - tree-sitter/lib/utf8proc The instructions seem straightforward but reading the docs included with th= e Emacs source code there is no mention wherever this is "fair game" (or no= t) and where should such code be placed [1]: https://tree-sitter.github.io/tree-sitter/using-parsers