Enums and Structs

PreviousUpNext
Up: The doctext Program Next: Miscellaneous Documentation Previous: C Macros

A C enum may be documented using the E command:

 
/*E 
  Read_t - Enum for read modes 
E*/ 
typedef enum  Read, ReadBack  Read_t; 
A C struct definition uses the S command:
 
/*S 
  File_t - Structure defining a file type 
S*/ 
typedef struct   
    Read_t mode; 
    int    fd; 
    int (*readfn)( int, void *, int ); 
    int (*writefn)( int, void *, int ); 
     File_t; 


PreviousUpNext
Up: The doctext Program Next: Miscellaneous Documentation Previous: C Macros