delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/08/19/05:46:34

X-Spam-Check-By: sourceware.org
Message-ID: <46C81173.2040401@x-ray.at>
Date: Sun, 19 Aug 2007 11:46:27 +0200
From: Reini Urban <rurban AT x-ray DOT at>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: python module patch
References: <46C6CE48 DOT 10004 AT x-ray DOT at> <46C7C573 DOT 2000100 AT users DOT sourceforge DOT net>
In-Reply-To: <46C7C573.2000100@users.sourceforge.net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Yaakov (Cygwin Ports) schrieb:
> Reini Urban wrote:
>> extern __declspec(dllexport) cannot be used as constant during
>> compile-time.
>> => "initializer element is not constant"
>> cygwin auto-import feature get's that right at link-time.
>>
>> This is needed for the constant (compile-time) resolution of
>> PyObject_HEAD_INIT(&PyType_Type) in a typical PyTypeObject struct.
> 
> I believe the commonly accepted solution is to change this to
> PyObject_HEAD_INIT(NULL) in the struct.
> 
> http://starship.python.net/crew/mwh/toext/node20.html

Indeed. That sounds better.
-- 
Reini Urban

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019