From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: implementing curl module with opaque emacs types Date: Sun, 15 Feb 2015 13:27:40 -0600 Message-ID: <85egprasb7.fsf_-_@stephe-leake.org> References: <83y4oiiw81.fsf@gnu.org> <838ugdf251.fsf@gnu.org> <54D80098.3020209@cs.ucla.edu> <54D85304.1030600@cs.ucla.edu> <54D9AC29.2020603@cs.ucla.edu> <54DA8539.1020905@cs.ucla.edu> <87zj8ktq8f.fsf@lifelogs.com> <54DD6413.1000403@cs.ucla.edu> <83wq3m436s.fsf@gnu.org> <834mqowbnh.fsf@gnu.org> <85egpsgf5z.fsf@stephe-leake.org> <83oaovull2.fsf@gnu.org> <85y4nzat5m.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1424028505 25131 80.91.229.3 (15 Feb 2015 19:28:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Feb 2015 19:28:25 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 15 20:28:15 2015 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 1YN4rX-0000QT-CD for ged-emacs-devel@m.gmane.org; Sun, 15 Feb 2015 20:28:15 +0100 Original-Received: from localhost ([::1]:36352 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YN4rW-0003hy-LR for ged-emacs-devel@m.gmane.org; Sun, 15 Feb 2015 14:28:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YN4rF-0003hh-UN for emacs-devel@gnu.org; Sun, 15 Feb 2015 14:28:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YN4rA-0001lk-VL for emacs-devel@gnu.org; Sun, 15 Feb 2015 14:27:57 -0500 Original-Received: from gproxy2-pub.mail.unifiedlayer.com ([69.89.18.3]:50103) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1YN4rA-0001le-ON for emacs-devel@gnu.org; Sun, 15 Feb 2015 14:27:52 -0500 Original-Received: (qmail 17480 invoked by uid 0); 15 Feb 2015 19:27:48 -0000 Original-Received: from unknown (HELO CMOut01) (10.0.90.82) by gproxy2.mail.unifiedlayer.com with SMTP; 15 Feb 2015 19:27:48 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by CMOut01 with id sjTi1p00a2UdiVW01jTlef; Sun, 15 Feb 2015 12:27:47 -0700 X-Authority-Analysis: v=2.1 cv=J8Y5smXS c=1 sm=1 tr=0 a=CQdxDb2CKd3SRg4I0/XZPQ==:117 a=CQdxDb2CKd3SRg4I0/XZPQ==:17 a=DsvgjBjRAAAA:8 a=f5113yIGAAAA:8 a=TeMFXEv2S7AA:10 a=9i_RQKNPAAAA:8 a=hEr_IkYJT6EA:10 a=jrwKn-8xaegA:10 a=0HtSIViG9nkA:10 a=wxwuCNJLCvUcx9pseGgA:9 Original-Received: from [70.94.38.149] (port=51865 helo=takver) by host114.hostmonster.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.82) (envelope-from ) id 1YN4r1-0007qe-M0 for emacs-devel@gnu.org; Sun, 15 Feb 2015 12:27:43 -0700 In-Reply-To: <85y4nzat5m.fsf@stephe-leake.org> (Stephen Leake's message of "Sun, 15 Feb 2015 13:09:25 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (windows-nt) X-Identified-User: {2442:host114.hostmonster.com:stephele:stephe-leake.org} {sentby:smtp auth 70.94.38.149 authed with stephen_leake@stephe-leake.org} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 69.89.18.3 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:183111 Archived-At: Stephen Leake writes: > So let's take a stab at something closer to your approach. > > I'm not familiar with the idioms for making an opaque type in C; would > that just be a pointer to void? something like: > > typedef void* Lisp_Object_Ptr; Here is the list of Emacs functions that curl.c currently uses Fprovide SSDATA XSAVE_POINTER builtin_lisp_symbol (for Qnil) defsubr intern make_string We can either implement these in a new version of emacs_module_api.h/.c, or rewrite curl.c to not use them. -- -- Stephe