From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: FFI in Emacs Date: Thu, 12 Jul 2012 03:23:46 +0900 Message-ID: <87y5mq40nh.fsf@uwakimon.sk.tsukuba.ac.jp> References: <877gua6a6n.fsf@uwakimon.sk.tsukuba.ac.jp> <83vchub7m5.fsf@gnu.org> <83mx36b32i.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: dough.gmane.org 1342031044 19756 80.91.229.3 (11 Jul 2012 18:24:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Jul 2012 18:24:04 +0000 (UTC) Cc: johnw@newartisans.com, Samuel Bronson , monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 11 20:24:02 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sp1Zw-0000iw-LD for ged-emacs-devel@m.gmane.org; Wed, 11 Jul 2012 20:24:00 +0200 Original-Received: from localhost ([::1]:56287 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sp1Zv-0008Eo-SP for ged-emacs-devel@m.gmane.org; Wed, 11 Jul 2012 14:23:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sp1Zs-0008EY-CP for emacs-devel@gnu.org; Wed, 11 Jul 2012 14:23:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sp1Zm-00047K-Oa for emacs-devel@gnu.org; Wed, 11 Jul 2012 14:23:56 -0400 Original-Received: from mgmt1.sk.tsukuba.ac.jp ([130.158.97.223]:45523) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sp1Zl-00046y-6O; Wed, 11 Jul 2012 14:23:49 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt1.sk.tsukuba.ac.jp (Postfix) with ESMTP id EAC713FA081D; Thu, 12 Jul 2012 03:23:46 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 9EE3D11F06A; Thu, 12 Jul 2012 03:23:46 +0900 (JST) In-Reply-To: <83mx36b32i.fsf@gnu.org> X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta31) "ginger" b4715fcbe001 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.158.97.223 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:151542 Archived-At: Eli Zaretskii writes: > > >> [SXEmacs FFI interface] should be fairly easily portable to Emacs on > > >> platforms that have libffi. It probably doesn't work on Windows > > > > > > Why not? Not because of libffi, I think. Because there is no support for Windows in SXEmacs at all, and last I looked XEmacsen do not use the same technology for loading DLLs on Windows that they do on Unix, so there is no provision whatsoever in the SXEmacs code for actually loading the C code that the Lisp FFI API allows you to call. Come to think of it, I am assuming a "native" build with VC; maybe it would work with the "Unix" code on Cygwin/Mingwin. > I see no need to assume anything when there are facts available. I > revealed the facts known to me so that people won't need to assume. I made no assumptions about how hard it is to build libraries on Windows, only that as far as I know half the job has never been coded for Windows, so AFAIK until it is done the SXEmacs code won't work.