home *** CD-ROM | disk | FTP | other *** search
/ Aminet 3 / Aminet 3 - July 1994.iso / Aminet / util / misc / aterminfo.lha / object.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-18  |  1.4 KB  |  43 lines

  1.  
  2. /* This work is copyrighted. See COPYRIGHT.OLD & COPYRIGHT.NEW for   *
  3. *  details. If they are missing then this copy is in violation of    *
  4. *  the copyright conditions.                                        */
  5.  
  6. /*
  7. **
  8. **    object.h - Format of compiled terminfo files
  9. **
  10. **        Header (12 bytes), containing information given below
  11. **        Names Section, containing the names of the terminal
  12. **        Boolean Section, containing the values of all of the
  13. **                boolean capabilities
  14. **                A null byte may be inserted here to make
  15. **                sure that the Number Section begins on an
  16. **                even word boundary.
  17. **        Number Section, containing the values of all of the numeric
  18. **                capabilities, each as a short integer
  19. **        String Section, containing short integer offsets into the
  20. **                String Table, one per string capability
  21. **        String Table, containing the actual characters of the string
  22. **                capabilities.
  23. **
  24. **    NOTE that all short integers in the file are stored using VAX/PDP-style
  25. **    byte-swapping, i.e., least-significant byte first.  The code in
  26. **    read_entry() automatically fixes this up on machines which don't use
  27. **    this system (I hope).
  28. **
  29. */
  30.  
  31.  
  32. #define MAGIC    0432
  33.  
  34. struct header
  35. {
  36.     short    magic;        /* Magic Number (0432)            */
  37.     short    name_size;    /* Size of names section        */
  38.     short    bool_count;    /* Number of booleans            */
  39.     short    num_count;    /* Number of numbers            */
  40.     short    str_count;    /* Number of strings            */
  41.     short    str_size;    /* Size of string table            */
  42. };
  43.