delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/19/13:18:46

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <20050119181831.9262.qmail@web51409.mail.yahoo.com>
Date: Wed, 19 Jan 2005 10:18:31 -0800 (PST)
From: Patrick Samson <p_samson AT yahoo DOT com>
Subject: Re: FileRunner under cygwin - simple compilation fails.
To: cygwin AT cygwin DOT com
In-Reply-To: <Pine.GSO.4.61.0501191257030.19122@slinky.cs.nyu.edu>
MIME-Version: 1.0
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 <tcl.h>' | 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/

- Raw text -


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