Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <20050119181831.9262.qmail@web51409.mail.yahoo.com> Date: Wed, 19 Jan 2005 10:18:31 -0800 (PST) From: Patrick Samson Subject: Re: FileRunner under cygwin - simple compilation fails. To: cygwin AT cygwin DOT com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes --- Igor Pechtchanski wrote: > On Wed, 19 Jan 2005, Patrick Samson wrote: > > > > > From a working source of Postgresql: > > > > static int pltcl_elog(ClientData cdata, Tcl_Interp > *interp, > > int argc, CONST84 char *argv[]); > > ^^^^^^^ > > > > I'm pretty confident that CONST84 is #defined as > CONST in tcl.h > > ...which expands to "const" in the final sources: > > $ echo '#include ' | gcc -E - | grep > '^typedef int (Tcl_CmdProc)' > typedef int (Tcl_CmdProc) (ClientData clientData, > Tcl_Interp *interp, int argc, const char *argv[]); > > And your point was?.. > Igor You're right. I just wanted to inform that the CONST84 may be a better syntax (according to the postgresql sample, but it may be only a particular case, I don't know other examples). I should have be more precise with: by default CONST84 expands to CONST, but with possible additional define's, it may expand to nothing. __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail -- 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/