Topic
  • 1 reply
  • Latest Post - ‏2012-03-01T09:08:36Z by buptxch
oeakdemir
oeakdemir
144 Posts

Pinned topic how to make struct code appear before function declaration

‏2012-02-25T13:41:35Z |
Hi,

I have a package, in which a struct, named "header", and a function, named "func" exist.

"func" has a return type of "header * "

In the generated specification code, function signature appears first, not the struct.

This results in compilation error, complaining about missing type specifier...

How to force Rhapsody generate code so that struct code appears before function signature ?
Updated on 2012-03-01T09:08:36Z at 2012-03-01T09:08:36Z by buptxch
  • buptxch
    buptxch
    31 Posts

    Re: how to make struct code appear before function declaration

    ‏2012-03-01T09:08:36Z  
    you can directly move the struct code ahead of the function,save file,and compile.