C Routines

PreviousUpNext
Up: Structured Comments Next: C Macros Previous: Structured Comments

C routines are indicated by the structured comment /*@ ... @*/. The program bfort uses the name in the first line (Add in this example) to generate the name of the routine for which a wrapper is being provided.


 
/*@ 
   Add - Add two values 

Parameters: . a1,a2 - Values to add @*/ int Add( a1, a2 ) int a1, a2; { return a1 + s2; }


Figure 1: C code for an Add routine with bfort-style structured comment


PreviousUpNext
Up: Structured Comments Next: C Macros Previous: Structured Comments