function location patch

From: Jean-Yves Lefort <jylefort_at_brutele.be>
Date: Fri, 1 Feb 2008 23:01:58 +0100

The attached patch:

- puts the opening braces of functions in the .gob #line sections, eg:

  before:

        #line 1007 "mn-mailbox.gob"
        void
        mn_mailbox_check (MNMailbox * self)
        #line 2064 "mn-mailbox.c"
        {

  after:

        #line 1007 "mn-mailbox.gob"
        void
        mn_mailbox_check (MNMailbox * self)
        {
        #line 2064 "mn-mailbox.c"

  This makes GCC use the .gob location when it has something to say
  about a function.

- encloses function declarations in .gob #line sections. This makes
  GCC use the .gob location when it has something to say about a
  function prototype.

Note: the patch applies to gob2-jylefort (gob2 2.0.15 + my other
patches).

-- 
Jean-Yves Lefort <jylefort_at_brutele.be>

Received on Fri Feb 01 2008 - 16:16:50 CST

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