Type Definitions

Type Definitions

Type definitions must be contained within a data segment. They are used to define new type aliases or new aggregate types (i.e., structures). A type alias is defined using the typedef keyword with the following syntax:

 type_alias typedef existing_type

The new alias name may be any valid identifier. The existing type must be some type already known by the compiler. It can be a native type or a user-defined type. Once a type alias has been defined it can be used in subsequent variable declarations and aggregate type definitions. The following is an example of a simple type alias definition:

 big typedef dword // big is now an alias for the dword type

Generated by  doxygen 1.6.2