From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Lisp_String to LPWSTR Date: Sat, 03 Oct 2009 13:23:30 +0200 Message-ID: <838wfspvpp.fsf@gnu.org> References: <83eipkq3hq.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1254569153 31721 80.91.229.12 (3 Oct 2009 11:25:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Oct 2009 11:25:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eugen Anghel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 03 13:25:46 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mu2kE-0003nV-1x for ged-emacs-devel@m.gmane.org; Sat, 03 Oct 2009 13:25:46 +0200 Original-Received: from localhost ([127.0.0.1]:56407 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mu2kC-0003j0-Ty for ged-emacs-devel@m.gmane.org; Sat, 03 Oct 2009 07:25:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mu2k4-0003f4-Eb for emacs-devel@gnu.org; Sat, 03 Oct 2009 07:25:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mu2k3-0003dl-Ir for emacs-devel@gnu.org; Sat, 03 Oct 2009 07:25:36 -0400 Original-Received: from [199.232.76.173] (port=51034 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mu2k3-0003dW-Ck for emacs-devel@gnu.org; Sat, 03 Oct 2009 07:25:35 -0400 Original-Received: from mtaout4.012.net.il ([84.95.2.10]:12824 helo=mtaout3.012.net.il) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mu2k2-0007wi-Uy for emacs-devel@gnu.org; Sat, 03 Oct 2009 07:25:35 -0400 Original-Received: from conversion-daemon.i_mtaout3.012.net.il by i_mtaout3.012.net.il (HyperSendmail v2004.12) id <0KQX00D00RAH9100@i_mtaout3.012.net.il> for emacs-devel@gnu.org; Sat, 03 Oct 2009 13:25:33 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.44.55]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KQX007PHRQLKJ30@i_mtaout3.012.net.il>; Sat, 03 Oct 2009 13:25:33 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:115881 Archived-At: > From: Eugen Anghel > Date: Sat, 3 Oct 2009 13:50:52 +0300 > Cc: emacs-devel@gnu.org > > Are there any issues that I need to worry about if I just call this > function everywhere this conversion is needed? e.g memory-leaks? Lisp objects are GC'ed automagically. You may need to GC protect some of the C strings, though. See the other uses of code_convert_string_norecord in the sources, for examples.