C parsing help

Discussion in 'C Programming' started by victor, Jan 11, 2012.

  1. victor

    victor Guest

    Hi,
    Please help. dont know if i am posting on the right group.
    when gcc parses declarations in a C file, is it possible to make
    gcc call some function hooks?
    Like if it successfully parsed a structure , it should call a
    callback. with the structure it has parsed.
    Regards.
     
    victor, Jan 11, 2012
    #1
    1. Advertising

  2. victor <> writes:
    > Please help. dont know if i am posting on the right group.
    > when gcc parses declarations in a C file, is it possible to make
    > gcc call some function hooks?
    > Like if it successfully parsed a structure , it should call a
    > callback. with the structure it has parsed.


    You might get better answers in gnu.gcc.help.

    --
    Keith Thompson (The_Other_Keith) <http://www.ghoti.net/~kst>
    Will write code for food.
    "We must do something. This is something. Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"
     
    Keith Thompson, Jan 11, 2012
    #2
    1. Advertising

  3. victor

    Nobody Guest

    On Tue, 10 Jan 2012 22:29:58 -0800, victor wrote:

    > when gcc parses declarations in a C file, is it possible to make
    > gcc call some function hooks?
    > Like if it successfully parsed a structure , it should call a
    > callback. with the structure it has parsed.


    Not without modifying gcc.

    How would you define these functions such that gcc could execute them? gcc
    is a C compiler, not a C interpreter (or any kind of interpreter).
     
    Nobody, Jan 11, 2012
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. GIMME
    Replies:
    2
    Views:
    927
    GIMME
    Feb 11, 2004
  2. Naren
    Replies:
    0
    Views:
    609
    Naren
    May 11, 2004
  3. Christopher Diggins
    Replies:
    0
    Views:
    626
    Christopher Diggins
    Jul 9, 2007
  4. Christopher Diggins
    Replies:
    0
    Views:
    455
    Christopher Diggins
    Jul 9, 2007
  5. John Levine
    Replies:
    0
    Views:
    762
    John Levine
    Feb 2, 2012
Loading...

Share This Page