Messages: add new messages to registry
authorPierre Le Marre <dev@wismill.eu>
Thu, 21 Sep 2023 18:06:27 +0000 (20:06 +0200)
committerWismill <dev@wismill.eu>
Sun, 24 Sep 2023 07:09:24 +0000 (09:09 +0200)
commita83d745b62ea8ec89e939b00bb3754ad54280942
tree24f278ec5319b91346614d759e7c2a495e699ae2
parentb900faf77b5d07805f10a1160cd1c6842cc46b11
Messages: add new messages to registry

This commit is another step to identify and document the maximum number
of logging messages. Bulk changes:

- Rename `conflicting-key-type` to `conflicting-key-type-merging-groups`.
  Giving more context in the name allow us to introduce
  `conflicting-key-type-definitions` later.
- Add conflicting-key-type-definitions
- Add conflicting-key-type-map-entry
- Add undeclared-modifiers-in-key-type
  Also improve the log messages.
- Add conflicting-key-type-preserve-entries
- Use XKB_ERROR_UNSUPPORTED_MODIFIER_MASK
- Add illegal-key-type-preserve-result
- Add conflicting-key-type-level-names
- Add duplicate-entry
- Add unsupported-symbols-field
- Add missing-symbols-group-name-index
- Use XKB_ERROR_WRONG_FIELD_TYPE
- Add conflicting-key-name
- Use XKB_WARNING_UNDEFINED_KEYCODE
- Add illegal-keycode-alias
- Add unsupported-geometry-section
- Add missing-default-section
- Add XKB_LOG_MESSAGE_NO_ID
- Rename log_vrb_with_code to log_vrb
- Use ERROR_WRONG_FIELD_TYPE & ERROR_INVALID_SYNTAX
- Add unknown-identifier
- Add invalid-expression-type
- Add invalid-operation + fixes
- Add unknown-operator
- Rename ERROR_UNKNOWN_IDENTIFIER to ERROR_INVALID_IDENTIFIER
- Add undeclared-virtual-modifier
- Add expected-array-entry
- Add invalid-include-statement
- Add included-file-not-found
- Add allocation-error
- Add invalid-included-file
- Process symbols.c
- Add invalid-value
- Add invalid-real-modifier
- Add unknown-field
- Add wrong-scope
- Add invalid-modmap-entry
- Add wrong-statement-type
- Add conflicting-key-symbols-entry
- Add invalid-set-default-statement
16 files changed:
doc/message-registry.md
doc/message-registry.yaml
src/context.h
src/messages-codes.h
src/messages-codes.h.jinja
src/xkbcomp/ast-build.c
src/xkbcomp/expr.c
src/xkbcomp/include.c
src/xkbcomp/keycodes.c
src/xkbcomp/keymap.c
src/xkbcomp/parser.y
src/xkbcomp/symbols.c
src/xkbcomp/types.c
src/xkbcomp/xkbcomp-priv.h
test/log.c
tools/messages.c