Re: CVS HEAD compile failure - Mailing list pgsql-hackers

From Greg Stark
Subject Re: CVS HEAD compile failure
Date
Msg-id 87u14bz1u6.fsf@stark.dyndns.tv
Whole thread Raw
In response to Re: CVS HEAD compile failure  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: CVS HEAD compile failure
List pgsql-hackers
> >>  int CRYPTO_set_locked_mem_functions(void *(*m)(size_t), void (*free_func)(void *));
> 
> If there's a missing typedef shouldn't we see something like this:
> 
>     `size_t' undeclared (first use in this function)
> 
> (assuming he is using gcc)?

Try it.

typedefs are weird in the C language, they change the syntactical value of the
identifier. The parser actually has to know whether an identifier is a typedef
or not in order to figure out how to parse the code.

Syntax errors in known good code, especially header files are a typical
symptom of missing typedefs. A good thing to know to recognize right away or
else you'll spend lots of time puzzling over seemingly good code.

-- 
greg



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: CVS HEAD compile failure
Next
From: Jan Wieck
Date:
Subject: Re: ERROR: Index pg_toast_8443892_index is not a btree