From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Zeeshan Ali (Khattak)" Newsgroups: gmane.lisp.guile.user Subject: optionals in C procedures Date: Sun, 4 Apr 2010 18:15:00 +0300 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1270394121 12919 80.91.229.12 (4 Apr 2010 15:15:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 4 Apr 2010 15:15:21 +0000 (UTC) To: Guile User Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Apr 04 17:15:17 2010 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NyRXf-0004vA-EN for guile-user@m.gmane.org; Sun, 04 Apr 2010 17:15:15 +0200 Original-Received: from localhost ([127.0.0.1]:47587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NyRXe-0007XS-MC for guile-user@m.gmane.org; Sun, 04 Apr 2010 11:15:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NyRXa-0007WM-PP for guile-user@gnu.org; Sun, 04 Apr 2010 11:15:10 -0400 Original-Received: from [140.186.70.92] (port=36453 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NyRXU-0007OU-1y for guile-user@gnu.org; Sun, 04 Apr 2010 11:15:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NyRXT-0006sh-3N for guile-user@gnu.org; Sun, 04 Apr 2010 11:15:03 -0400 Original-Received: from mail-fx0-f227.google.com ([209.85.220.227]:55934) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NyRXS-0006sP-Q1 for guile-user@gnu.org; Sun, 04 Apr 2010 11:15:03 -0400 Original-Received: by fxm27 with SMTP id 27so427032fxm.8 for ; Sun, 04 Apr 2010 08:15:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=8cwE7+wSWblAPxov97ThNlFxRzR8Kyat+xsuPvbGB2E=; b=dh2EdoAbhcFCWWi6OJkSxzESzKGIqM0NWcva6OnahmtW7OFQ9MTwRiO9v1Ce2QPbNP Pu5HMJbm5vv6vfNjTud9z5arhgGFiEXWPcgsCVDwdp+6UP9L5AnwTH7Gvb+jk7dgb4cX 2E5Cwfsdi7kberQ1Ya/xtHL7w9kBCVZ9d2AsE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=f4S7Vvy7JPQQsUTbc37Phe+Ba51YZtinK1i2v3BlYIryAXlba74ju7tHsrhiKvvVCV 6mTImY0H8ZaAygybS57ILiWDKXDD1YM3drh4KFxwBPb/KPlLBh0wLgxOckoG0DnHYRVE hdjtjry8ZQHhUcxeygvEE8OVk7CA142mr5ZUw= Original-Received: by 10.223.125.135 with HTTP; Sun, 4 Apr 2010 08:15:00 -0700 (PDT) Original-Received: by 10.223.4.197 with SMTP id 5mr4598053fas.1.1270394100864; Sun, 04 Apr 2010 08:15:00 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:7726 Archived-At: Hi, As soon as I updated my guile installation from git master, the test app in my guile-gir project started to fail. On a bit of investigation, I found out that the problem is in this code: static SCM scm_g_irepository_require (SCM scm_repository, SCM scm_namespace, SCM scm_version, SCM scm_flags) { const char *version; if (SCM_UNBNDP (scm_version)) version = NULL; else version = scm_to_locale_string (scm_version); ... } scm_c_define_gsubr ("g-irepository-require", 2, 2, 0, scm_g_irepository_require); Whats happening is that my scheme code is not passing any value to the optional argument version and guile is not making sure that the argument is unbound. Is this a regression or some intentional change? -- Regards, Zeeshan Ali (Khattak) FSF member#5124