Re: [gob-list] Need for %ctop{ %}

From: Jiri Lebl <jirka_at_5z.com>
Date: Mon, 3 Jan 2011 12:07:11 -0800

Hmmm, that's not a bad idea. Here's a patch. Make sure to run "make
distclelan" and rerun the autogen.sh to make sure that everything gets
rebuilt. I'll make a new release of gob at some point soon.

The patch adds %ct{ and %ctop{

Jiri

On Thu, Dec 30, 2010 at 9:12 AM, Dmitri Toubelis
<dmitri.toubelis_at_alkeron.com> wrote:
> Hi,
>
> I'm new to this list but I was using GOB with autotools for several years now. GOB is a excellent tool and it is saved us a lot of time. However, all this time I was having intermittent problems with our builds. I was fixing these problems by adding temporary hacks to a standard autotool's build process. Finally I had some time to investigate them properly and here is my observations:
>
> - We use autotools to generate config.h file that needs to be included as a first thing in *.c files.
>
> - I would normally put it at the top of %{ %} section but then I was having problems and in particular with large file support that didn't work on GOB generated files and worked flawlessly on manually created ones.
>
> - It appears that top of %{ %} section does not translate to the top of corresponding *.c file and GOB includes its headers before this point when it is too late for config.h.
>
> - To prove my suspicion I tried to include config.h in %alltop{ %} section and it worked alright. However, config.h should not be used in any of headers especially in public ones and it have to only be included just once at the top in each of *.c files.
>
> So, does anyone came across same problem before? If so, are there any reasonable workarounds out there? Otherwise, can we talk about adding this feature to GOB?
>
> Regards,
> Dmitri
>
>
>
> --
> to unsubscribe:
> send mail to minimalist_at_5z.com with "unsubscribe gob-list" in the subject
>

-- 
Jiri (George) Lebl, http://www.math.ucsd.edu/~jlebl/ or http://www.jirka.org/

Received on Mon Jan 03 2011 - 14:07:35 CST

This archive was generated by hypermail 2.2.0 : Sun Apr 17 2011 - 21:05:02 CDT