aboutsummaryrefslogtreecommitdiffstats
path: root/prism
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2023-11-30 12:52:42 -0500
committerKevin Newton <kddnewton@gmail.com>2023-11-30 21:37:56 -0500
commit99a147ff4fbfda6f15d8b6bcfd61d5776a58be2b (patch)
treef3bf6444d138ba99110a3a1b1f2c4e2810549b33 /prism
parent0c277f2b7659076f18487132aef2cf40d4c608e7 (diff)
downloadruby-99a147ff4fbfda6f15d8b6bcfd61d5776a58be2b.tar.gz
[ruby/prism] Document remaining encodings
https://github.com/ruby/prism/commit/b9510aed40
Diffstat (limited to 'prism')
-rw-r--r--prism/encoding.c2
-rw-r--r--prism/encoding.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/prism/encoding.c b/prism/encoding.c
index 2141eb2948..4bf6b6a775 100644
--- a/prism/encoding.c
+++ b/prism/encoding.c
@@ -4214,7 +4214,7 @@ pm_encoding_shift_jis_char_width(const uint8_t *b, ptrdiff_t n) {
/**
* This is the definition of all of the encodings that we support.
*/
-static const pm_encoding_t pm_encodings[PM_ENCODING_MAXIMUM] = {
+static const pm_encoding_t pm_encodings[] = {
[PM_ENCODING_UTF_8] = {
.name = "UTF-8",
.char_width = pm_encoding_utf_8_char_width,
diff --git a/prism/encoding.h b/prism/encoding.h
index dd60c620eb..247db600ce 100644
--- a/prism/encoding.h
+++ b/prism/encoding.h
@@ -213,8 +213,7 @@ typedef enum {
PM_ENCODING_WINDOWS_1257,
PM_ENCODING_WINDOWS_1258,
PM_ENCODING_WINDOWS_31J,
- PM_ENCODING_WINDOWS_874,
- PM_ENCODING_MAXIMUM
+ PM_ENCODING_WINDOWS_874
} pm_encoding_type_t;
/**