![]() |
Telelogic TAU (steve huntington) | ![]() |
Topic Title: How do I get prototypes for external procedures? Topic Summary: Created On: 26-Aug-2003 07:39 Status: Read Only
|
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Consider the following, simple external procedure example:
PROCEDURE GetDelay; FPAR IN a AlarmCode; RETURNS Duration; EXTERNAL; The code generator will insert calls to the C function GetDelay in the generated C file - but since there is no prototype, the compiler will generate an error. How can I easiest get the prototype into the generated files? Today, I insert a small #CODE block after the FPAR line: PROCEDURE GetDelay; FPAR IN a AlarmCode; /*#CODE #HEADING #(Duration) GetSmDelay(#(AlarmCode)); */ RETURNS Duration; EXTERNAL; It works, but it is not very pretty - I have some strange aversion to #CODE statements... anyone have an idea for a cleaner solution? Greetings, Hans Odeberg Gambro Lundia AB ![]() |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.