This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: FileRunner under cygwin - simple compilation fails.
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Patrick Samson <p_samson at yahoo dot com>
- Cc: cygwin at cygwin dot com
- Date: Wed, 19 Jan 2005 13:00:22 -0500 (EST)
- Subject: Re: FileRunner under cygwin - simple compilation fails.
- References: <20050119175434.47986.qmail@web51403.mail.yahoo.com>
- Reply-to: cygwin at cygwin dot com
On Wed, 19 Jan 2005, Patrick Samson wrote:
> --- Igor Pechtchanski wrote:
> > Arg #3 is a pointer to a function (Tcl_CmdProc). See where that's
> > declared *in the preprocessed file* (so that all macros are expanded)
> > and see if your declarations of GetTimeFromSecs, etc, correspond to
> > it. The most obvious mismatch is probably the "const char* argv[]"
> > vs. your "char* argv[]".
>
> 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
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT
--
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/