Book a Demo

Author Topic: Code generation for C functions  (Read 7803 times)

Adria

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Code generation for C functions
« on: December 01, 2008, 05:07:34 pm »
I am using EA on a C project, and will be using code engineering to both forward and reverse engineer the code.

    [*]When generating code for an operation with no arguments, the function prototype contains empty braces instead of explicitly stating "void":
    Code: [Select]
    void functionName();
    [*]When importing code into the model from a function prototype with an explicit void argument such as:
    Code: [Select]
    void functionName(void);The model adds an argument to the operation "pm1 : void".

    [*]Then generating code from this new operation the function prototype looks like:
    Code: [Select]
    void functionName(void pm1);[/list]
    Is there a way to get EA to support (for operation parameters) equating blank in the model with "void" in the code.

    Schuecki

    • EA Novice
    • *
    • Posts: 2
    • Karma: +0/-0
      • View Profile
    Re: Code generation for C functions
    « Reply #1 on: June 10, 2009, 04:46:13 pm »
    Hello,

    I have the same problem like Adria, has somebody a solution for that problem ?

    regards Christoph