OAR

RTEMS GNU Tools On-Line Library


Types

PREV UP NEXT Bookshelf STABS

Chapter 5: Defining Types

The examples so far have described types as references to previously defined types, or defined in terms of subranges of or pointers to previously defined types. This chapter describes the other type descriptors that may follow the `=' in a type definition.

  • Builtin Types Integers, floating point, void, etc.
  • Miscellaneous Types Pointers, sets, files, etc.
  • Cross-References Referring to a type not yet defined.
  • Subranges A type with a specific range.
  • Arrays An aggregate type of same-typed elements.
  • Strings Like an array but also has a length.
  • Enumerations Like an integer but the values have names.
  • Structures An aggregate type of different-typed elements.
  • Typedefs Giving a type a name.
  • Unions Different types sharing storage.
  • Function Types

  • PREV UP NEXT Bookshelf STABS

    Packaging copyright © 1988-2000 OAR Corporation
    Context copyright by each document's author. See Free Software Foundation for information.