cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Borland Barfs on Bison

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 27 Dec 2002 18:57:16 +0100 (MET)

On Sun, 22 Dec 2002, Alexander J. Oss wrote:

> ...the Borland C++ Builder warning removal continues.
>
> I'm getting some bizarre things from getdate.c (which uses ugly #line
> directives), such as:

Why are the #line directives ugly? The file is generated so the #line
directives help us know from where those lines origin.

> bison.simple(358): W8065 Call to function 'Curl_gd_error' with no prototype

I'd guess that is because the prototype for yyerror (which is #defined to
Curl_gd_error) is not a proper ANSI prototype at around line 173.

I believ it should instead be:

static int yyerror (char *);

> Is it possible that I have included getdate.c and getenv.c in my project
> and shouldn't have?

Both those files are needed for libcurl to build and run properly.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-12-27