From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stanislav Ievlev Newsgroups: gmane.lisp.guile.devel Subject: Re: guile-1.8 question Date: Thu, 15 Oct 2009 19:18:21 +0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1255619919 9990 80.91.229.12 (15 Oct 2009 15:18:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Oct 2009 15:18:39 +0000 (UTC) Cc: guile-devel@gnu.org To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Oct 15 17:18:31 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MyS62-0002gj-Gt for guile-devel@m.gmane.org; Thu, 15 Oct 2009 17:18:30 +0200 Original-Received: from localhost ([127.0.0.1]:60866 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyS62-0006dt-4J for guile-devel@m.gmane.org; Thu, 15 Oct 2009 11:18:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MyS60-0006de-3J for guile-devel@gnu.org; Thu, 15 Oct 2009 11:18:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MyS5v-0006d9-JD for guile-devel@gnu.org; Thu, 15 Oct 2009 11:18:27 -0400 Original-Received: from [199.232.76.173] (port=39980 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyS5v-0006d6-GO for guile-devel@gnu.org; Thu, 15 Oct 2009 11:18:23 -0400 Original-Received: from mail-fx0-f205.google.com ([209.85.220.205]:59312) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MyS5v-00069J-1n for guile-devel@gnu.org; Thu, 15 Oct 2009 11:18:23 -0400 Original-Received: by fxm1 with SMTP id 1so1216864fxm.31 for ; Thu, 15 Oct 2009 08:18:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=dyMHR6Qna4mpqLFzjqh+S2t5EVg+vBBx/c6Ha7jVXc4=; b=aDHP/DsdTR81+LrpTc9R7T0omIt49hhfFLQ+00x7meGxhunC9iAwS0FXnp1ahEwvYs B4JiceWhr7oAvqE7pem/BYo2l6Z82ayKe4xbmyayMvfV7tZRiOtLaFHyagTWIkNWFZKM j6vjv51KSWNDnvqIP6WS8PgYSjKiWGY0fUYIs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=eEiSP/4qyczXX5oGrCyFj5TEPvmjQeL8AIB1hmAQ80cU0npwlQN7EKx/YcVin4VGlJ bj8zNzzOtkKdAfRSF4oABBJqTLWTE871KBeQm0LVoR1qHqHbhjKf7Jw8NJGD5JXGEkp4 HZUhbv3CTxr5robONcD9sZ2JJUZ7/NcpowKCA= Original-Received: by 10.204.153.215 with SMTP id l23mr119785bkw.135.1255619901346; Thu, 15 Oct 2009 08:18:21 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:9494 Archived-At: 2009/10/15 Andy Wingo : > The ports C interface is rather crufty, as you have found :) Do you have > any suggestions, or a patch? Keep in mind that we need to maintain > backwards compatibility with these interfaces. What do you think about documented additional function like this? -- SCM scm_c_fdopen(int fdes, const char* modes) { return scm_i_fdes_to_port (fdes, scm_mode_bits (modes), SCM_BOOL_F); } -- You can also use in libguile source files scm_i_fdes_to_port instead of scm_i_fdes_to_port, and mark scm_fdes_to_port as a deprecated.