Loading ...
Sorry, an error occurred while loading the content.

731'C' style definitions for stdint.h

Expand Messages
  • Jon Green
    Jul 6, 2003
    • 0 Attachment
      Attached, 'C' style definitions for <stdint.h>
      add (or create a new file in the macros search path)
      to "myc.emf" to extend the hilighting.

      Also hilighting for "/* TODO" in a 'C' comment.

      These should probably be added to hkc.emf as
      standard.

      Regards
      Jon.
      --
      !if &and &sin "h" .fhook-c.setup &band .hilight.flags 0x02
      ; Extend the hilighting for the IEEE Std 1003.1 <stdint.h>
      ; See http://www.opengroup.org/onlinepubs/007904975/basedefs/stdint.h.html
      hilight .hilight.c 1 "uint8_t" .scheme.type
      hilight .hilight.c 1 "int8_t" .scheme.type
      hilight .hilight.c 1 "uint16_t" .scheme.type
      hilight .hilight.c 1 "int16_t" .scheme.type
      hilight .hilight.c 1 "uint32_t" .scheme.type
      hilight .hilight.c 1 "int32_t" .scheme.type
      hilight .hilight.c 1 "uint64_t" .scheme.type
      hilight .hilight.c 1 "int64_t" .scheme.type
      ; Minimum with integers
      hilight .hilight.c 1 "int_least8_t" .scheme.type
      hilight .hilight.c 1 "int_least16_t" .scheme.type
      hilight .hilight.c 1 "int_least32_t" .scheme.type
      hilight .hilight.c 1 "int_least64_t" .scheme.type
      hilight .hilight.c 1 "uint_least8_t" .scheme.type
      hilight .hilight.c 1 "uint_least16_t" .scheme.type
      hilight .hilight.c 1 "uint_least32_t" .scheme.type
      hilight .hilight.c 1 "uint_least64_t" .scheme.type
      ; Fastest minimum-width integer types
      hilight .hilight.c 1 "int_fast8_t" .scheme.type
      hilight .hilight.c 1 "int_fast16_t" .scheme.type
      hilight .hilight.c 1 "int_fast32_t" .scheme.type
      hilight .hilight.c 1 "int_fast64_t" .scheme.type
      hilight .hilight.c 1 "uint_fast8_t" .scheme.type
      hilight .hilight.c 1 "uint_fast16_t" .scheme.type
      hilight .hilight.c 1 "uint_fast32_t" .scheme.type
      hilight .hilight.c 1 "uint_fast64_t" .scheme.type
      ; Integer types capable of holding object pointers
      hilight .hilight.c 1 "intptr_t" .scheme.type
      hilight .hilight.c 1 "uintptr_t" .scheme.type
      ; Greatest-width integer types
      hilight .hilight.c 1 "intmax_t" .scheme.type
      hilight .hilight.c 1 "uintmax_t" .scheme.type
      ; Other types
      hilight .hilight.c 1 "ptrdiff_t" .scheme.type
      hilight .hilight.c 1 "sig_atomic_t" .scheme.type
      hilight .hilight.c 1 "wchar_t" .scheme.type
      hilight .hilight.c 1 "wint_t" .scheme.type
      ; Limits of exact-width integer types
      hilight .hilight.c 1 "INT8_MIN" .scheme.prepro
      hilight .hilight.c 1 "INT8_MAX" .scheme.prepro
      hilight .hilight.c 1 "UINT8_MAX" .scheme.prepro
      hilight .hilight.c 1 "INT16_MIN" .scheme.prepro
      hilight .hilight.c 1 "INT16_MAX" .scheme.prepro
      hilight .hilight.c 1 "UINT16_MAX" .scheme.prepro
      hilight .hilight.c 1 "INT32_MIN" .scheme.prepro
      hilight .hilight.c 1 "INT32_MAX" .scheme.prepro
      hilight .hilight.c 1 "UINT32_MAX" .scheme.prepro
      hilight .hilight.c 1 "INT64_MIN" .scheme.prepro
      hilight .hilight.c 1 "INT64_MAX" .scheme.prepro
      hilight .hilight.c 1 "UINT64_MAX" .scheme.prepro
      ; Limits of minimum-width integer types
      hilight .hilight.c 1 "INT_LEAST8_MIN" .scheme.prepro
      hilight .hilight.c 1 "INT_LEAST8_MAX" .scheme.prepro
      hilight .hilight.c 1 "UINT_LEAST8_MAX" .scheme.prepro
      hilight .hilight.c 1 "INT_LEAST16_MIN" .scheme.prepro
      hilight .hilight.c 1 "INT_LEAST16_MAX" .scheme.prepro
      hilight .hilight.c 1 "UINT_LEAST16_MAX" .scheme.prepro
      hilight .hilight.c 1 "INT_LEAST32_MIN" .scheme.prepro
      hilight .hilight.c 1 "INT_LEAST32_MAX" .scheme.prepro
      hilight .hilight.c 1 "UINT_LEAST32_MAX" .scheme.prepro
      hilight .hilight.c 1 "INT_LEAST64_MIN" .scheme.prepro
      hilight .hilight.c 1 "INT_LEAST64_MAX" .scheme.prepro
      hilight .hilight.c 1 "UINT_LEAST64_MAX" .scheme.prepro
      ; Limits of fastest minimum-width integer types
      hilight .hilight.c 1 "INT_FAST8_MIN" .scheme.prepro
      hilight .hilight.c 1 "INT_FAST8_MAX" .scheme.prepro
      hilight .hilight.c 1 "UINT_FAST8_MAX" .scheme.prepro
      hilight .hilight.c 1 "INT_FAST16_MIN" .scheme.prepro
      hilight .hilight.c 1 "INT_FAST16_MAX" .scheme.prepro
      hilight .hilight.c 1 "UINT_FAST16_MAX" .scheme.prepro
      hilight .hilight.c 1 "INT_FAST32_MIN" .scheme.prepro
      hilight .hilight.c 1 "INT_FAST32_MAX" .scheme.prepro
      hilight .hilight.c 1 "UINT_FAST32_MAX" .scheme.prepro
      hilight .hilight.c 1 "INT_FAST64_MIN" .scheme.prepro
      hilight .hilight.c 1 "INT_FAST64_MAX" .scheme.prepro
      hilight .hilight.c 1 "UINT_FAST64_MAX" .scheme.prepro
      ; Limits of integer types capable of holding object pointers
      hilight .hilight.c 1 "INTPTR_MIN" .scheme.prepro
      hilight .hilight.c 1 "INTPTR_MAX" .scheme.prepro
      ; Maximum value of pointer-holding unsigned integer type:
      hilight .hilight.c 1 "UINTPTR_MAX" .scheme.prepro
      ; Limits of greatest-width integer types
      hilight .hilight.c 1 "INTMAX_MIN" .scheme.prepro
      hilight .hilight.c 1 "INTMAX_MAX" .scheme.prepro
      hilight .hilight.c 1 "UINTMAX_MAX" .scheme.prepro
      ; Limits of Other Integer Types
      ; Limits of ptrdiff_t:
      hilight .hilight.c 1 "PTRDIFF_MIN" .scheme.prepro
      hilight .hilight.c 1 "PTRDIFF_MAX" .scheme.prepro
      ; Limits of sig_atomic_t:
      hilight .hilight.c 1 "SIG_ATOMIC_MIN" .scheme.prepro
      hilight .hilight.c 1 "SIG_ATOMIC_MAX" .scheme.prepro
      ; Limit of size_t:
      hilight .hilight.c 1 "SIZE_MAX" .scheme.prepro
      ; Limits of wchar_t:
      hilight .hilight.c 1 "WCHAR_MIN" .scheme.prepro
      hilight .hilight.c 1 "WCHAR_MAX" .scheme.prepro
      ; Limits of wint_t:
      hilight .hilight.c 1 "WINT_MIN" .scheme.prepro
      hilight .hilight.c 1 "WINT_MAX" .scheme.prepro
      ;
      ; Hilight TODO in a comment.
      ;
      hilight .hilight.c 20 "/\\*\\s +TODO" "*/" "" .scheme.error
      hilight .hilight.c 18 "//\\s +TODO" .scheme.error
      !endif