Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/lint1 lint: add quotes around a few more place...



details:   https://anonhg.NetBSD.org/src/rev/609184e6877e
branches:  trunk
changeset: 366729:609184e6877e
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Jun 11 11:52:13 2022 +0000

description:
lint: add quotes around a few more placeholders in messages

diffstat:

 tests/usr.bin/xlint/lint1/decl.c                        |   8 ++--
 tests/usr.bin/xlint/lint1/decl.exp                      |   4 +-
 tests/usr.bin/xlint/lint1/emit.c                        |   4 +-
 tests/usr.bin/xlint/lint1/emit.exp                      |   2 +-
 tests/usr.bin/xlint/lint1/gcc_attribute_func.c          |   6 +-
 tests/usr.bin/xlint/lint1/gcc_attribute_func.exp        |   4 +-
 tests/usr.bin/xlint/lint1/gcc_init_compound_literal.c   |   4 +-
 tests/usr.bin/xlint/lint1/gcc_init_compound_literal.exp |   2 +-
 tests/usr.bin/xlint/lint1/init.c                        |   4 +-
 tests/usr.bin/xlint/lint1/init.exp                      |   2 +-
 tests/usr.bin/xlint/lint1/msg_000.exp                   |   2 +-
 tests/usr.bin/xlint/lint1/msg_001.c                     |   8 ++--
 tests/usr.bin/xlint/lint1/msg_001.exp                   |   6 +-
 tests/usr.bin/xlint/lint1/msg_019.exp                   |   2 +-
 tests/usr.bin/xlint/lint1/msg_031.exp                   |   2 +-
 tests/usr.bin/xlint/lint1/msg_044.c                     |   6 +-
 tests/usr.bin/xlint/lint1/msg_044.exp                   |   4 +-
 tests/usr.bin/xlint/lint1/msg_045.c                     |   4 +-
 tests/usr.bin/xlint/lint1/msg_045.exp                   |   2 +-
 tests/usr.bin/xlint/lint1/msg_046.c                     |  22 +++++++-------
 tests/usr.bin/xlint/lint1/msg_046.exp                   |  20 ++++++------
 tests/usr.bin/xlint/lint1/msg_067.c                     |   4 +-
 tests/usr.bin/xlint/lint1/msg_067.exp                   |   2 +-
 tests/usr.bin/xlint/lint1/msg_085.exp                   |   2 +-
 tests/usr.bin/xlint/lint1/msg_135.c                     |   5 +-
 tests/usr.bin/xlint/lint1/msg_135.exp                   |   2 +-
 tests/usr.bin/xlint/lint1/msg_136.exp                   |   2 +-
 tests/usr.bin/xlint/lint1/msg_143.exp                   |   2 +-
 tests/usr.bin/xlint/lint1/msg_152.exp                   |   2 +-
 tests/usr.bin/xlint/lint1/msg_175.exp                   |   2 +-
 tests/usr.bin/xlint/lint1/msg_226.c                     |   6 +-
 tests/usr.bin/xlint/lint1/msg_226.exp                   |   2 +-
 tests/usr.bin/xlint/lint1/msg_233.c                     |   6 +-
 tests/usr.bin/xlint/lint1/msg_233.exp                   |   2 +-
 tests/usr.bin/xlint/lint1/msg_234.c                     |   6 +-
 tests/usr.bin/xlint/lint1/msg_234.exp                   |   2 +-
 tests/usr.bin/xlint/lint1/msg_235.c                     |   6 +-
 tests/usr.bin/xlint/lint1/msg_235.exp                   |   2 +-
 tests/usr.bin/xlint/lint1/msg_236.c                     |   6 +-
 tests/usr.bin/xlint/lint1/msg_236.exp                   |   2 +-
 tests/usr.bin/xlint/lint1/msg_247.c                     |   7 ++-
 tests/usr.bin/xlint/lint1/msg_247.exp                   |   2 +-
 tests/usr.bin/xlint/lint1/msg_260.c                     |   8 ++--
 tests/usr.bin/xlint/lint1/msg_260.exp                   |   4 +-
 tests/usr.bin/xlint/lint1/msg_261.c                     |   6 +-
 tests/usr.bin/xlint/lint1/msg_261.exp                   |   2 +-
 tests/usr.bin/xlint/lint1/msg_268.c                     |   6 +-
 tests/usr.bin/xlint/lint1/msg_268.exp                   |   2 +-
 tests/usr.bin/xlint/lint1/msg_269.c                     |   6 +-
 tests/usr.bin/xlint/lint1/msg_269.exp                   |   2 +-
 tests/usr.bin/xlint/lint1/msg_307.c                     |   6 +-
 tests/usr.bin/xlint/lint1/msg_307.exp                   |   2 +-
 tests/usr.bin/xlint/lint1/msg_314.c                     |   4 +-
 tests/usr.bin/xlint/lint1/msg_347.c                     |  10 +++---
 tests/usr.bin/xlint/lint1/msg_347.exp                   |   8 ++--
 tests/usr.bin/xlint/lint1/msg_348.c                     |   6 +-
 tests/usr.bin/xlint/lint1/msg_348.exp                   |   4 +-
 tests/usr.bin/xlint/lint1/platform_long.c               |   4 +-
 tests/usr.bin/xlint/lint1/platform_long.exp             |   2 +-
 tests/usr.bin/xlint/lint1/platform_lp64.c               |   4 +-
 tests/usr.bin/xlint/lint1/platform_lp64.exp             |   2 +-
 usr.bin/xlint/lint1/decl.c                              |  26 ++++++++--------
 usr.bin/xlint/lint1/err.c                               |  26 ++++++++--------
 63 files changed, 166 insertions(+), 164 deletions(-)

diffs (truncated from 1049 to 300 lines):

diff -r 7a20e7f2f052 -r 609184e6877e tests/usr.bin/xlint/lint1/decl.c
--- a/tests/usr.bin/xlint/lint1/decl.c  Sat Jun 11 11:20:40 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/decl.c  Sat Jun 11 11:52:13 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: decl.c,v 1.15 2022/04/24 20:08:23 rillig Exp $ */
+/*     $NetBSD: decl.c,v 1.16 2022/06/11 11:52:13 rillig Exp $ */
 # 3 "decl.c"
 
 /*
@@ -108,8 +108,8 @@
        return i;
 }
 
-/* TODO: add quotes around %s */
-/* expect+2: warning: static function unused unused [236] */
+
+/* expect+2: warning: static function 'unused' unused [236] */
 static void
 unused(void)
 {
@@ -168,7 +168,7 @@
 __thread__ int thread_int;
 
 /* expect+4: error: old style declaration; add 'int' [1] */
-/* expect+2: warning: static function cover_func_declarator unused [236] */
+/* expect+2: warning: static function 'cover_func_declarator' unused [236] */
 static
 cover_func_declarator(void)
 {
diff -r 7a20e7f2f052 -r 609184e6877e tests/usr.bin/xlint/lint1/decl.exp
--- a/tests/usr.bin/xlint/lint1/decl.exp        Sat Jun 11 11:20:40 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/decl.exp        Sat Jun 11 11:52:13 2022 +0000
@@ -16,6 +16,6 @@
 decl.c(168): error: syntax error 'int' [249]
 decl.c(174): error: old style declaration; add 'int' [1]
 decl.c(183): error: syntax error 'goto' [249]
-decl.c(114): warning: static function unused unused [236]
-decl.c(173): warning: static function cover_func_declarator unused [236]
+decl.c(114): warning: static function 'unused' unused [236]
+decl.c(173): warning: static function 'cover_func_declarator' unused [236]
 decl.c(183): warning: empty array declaration: void_array_error [190]
diff -r 7a20e7f2f052 -r 609184e6877e tests/usr.bin/xlint/lint1/emit.c
--- a/tests/usr.bin/xlint/lint1/emit.c  Sat Jun 11 11:20:40 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/emit.c  Sat Jun 11 11:52:13 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: emit.c,v 1.11 2022/04/24 19:21:01 rillig Exp $ */
+/*     $NetBSD: emit.c,v 1.12 2022/06/11 11:52:13 rillig Exp $ */
 # 3 "emit.c"
 
 /*
@@ -104,7 +104,7 @@
 
 extern int                     declared_int;
 int                            defined_int;
-/* expect+1: warning: static variable static_int unused [226] */
+/* expect+1: warning: static variable 'static_int' unused [226] */
 static int                     static_int;
 
 /*
diff -r 7a20e7f2f052 -r 609184e6877e tests/usr.bin/xlint/lint1/emit.exp
--- a/tests/usr.bin/xlint/lint1/emit.exp        Sat Jun 11 11:20:40 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/emit.exp        Sat Jun 11 11:52:13 2022 +0000
@@ -1,4 +1,4 @@
 emit.c(123): error: old style declaration; add 'int' [1]
-emit.c(108): warning: static variable static_int unused [226]
+emit.c(108): warning: static variable 'static_int' unused [226]
 emit.c(129): warning: static function static_return_void_no_parameters declared but not defined [290]
 emit.c(149): warning: static function static_function declared but not defined [290]
diff -r 7a20e7f2f052 -r 609184e6877e tests/usr.bin/xlint/lint1/gcc_attribute_func.c
--- a/tests/usr.bin/xlint/lint1/gcc_attribute_func.c    Sat Jun 11 11:20:40 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/gcc_attribute_func.c    Sat Jun 11 11:52:13 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gcc_attribute_func.c,v 1.2 2021/07/14 20:39:13 rillig Exp $    */
+/*     $NetBSD: gcc_attribute_func.c,v 1.3 2022/06/11 11:52:13 rillig Exp $    */
 # 3 "gcc_attribute_func.c"
 
 /*
@@ -25,13 +25,13 @@
  * The attribute 'used' does not influence static functions, it only
  * applies to function parameters.
  */
-/* expect+2: warning: static function used_function unused [236] */
+/* expect+2: warning: static function 'used_function' unused [236] */
 static void __attribute__((used))
 used_function(void)
 {
 }
 
-/* expect+2: warning: static function unused_function unused [236] */
+/* expect+2: warning: static function 'unused_function' unused [236] */
 static void
 unused_function(void)
 {
diff -r 7a20e7f2f052 -r 609184e6877e tests/usr.bin/xlint/lint1/gcc_attribute_func.exp
--- a/tests/usr.bin/xlint/lint1/gcc_attribute_func.exp  Sat Jun 11 11:20:40 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/gcc_attribute_func.exp  Sat Jun 11 11:52:13 2022 +0000
@@ -1,2 +1,2 @@
-gcc_attribute_func.c(30): warning: static function used_function unused [236]
-gcc_attribute_func.c(36): warning: static function unused_function unused [236]
+gcc_attribute_func.c(30): warning: static function 'used_function' unused [236]
+gcc_attribute_func.c(36): warning: static function 'unused_function' unused [236]
diff -r 7a20e7f2f052 -r 609184e6877e tests/usr.bin/xlint/lint1/gcc_init_compound_literal.c
--- a/tests/usr.bin/xlint/lint1/gcc_init_compound_literal.c     Sat Jun 11 11:20:40 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/gcc_init_compound_literal.c     Sat Jun 11 11:52:13 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gcc_init_compound_literal.c,v 1.4 2021/04/18 08:03:56 rillig Exp $     */
+/*     $NetBSD: gcc_init_compound_literal.c,v 1.5 2022/06/11 11:52:13 rillig Exp $     */
 # 3 "gcc_init_compound_literal.c"
 
 /*
@@ -37,7 +37,7 @@
  * Initial tree for representing the decisions in the classic number guessing
  * game often used in teaching the basics of programming.
  */
-/* expect+1: static variable guess unused */
+/* expect+1: static variable 'guess' unused */
 static const struct node guess = {
        50,
        &(struct node){
diff -r 7a20e7f2f052 -r 609184e6877e tests/usr.bin/xlint/lint1/gcc_init_compound_literal.exp
--- a/tests/usr.bin/xlint/lint1/gcc_init_compound_literal.exp   Sat Jun 11 11:20:40 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/gcc_init_compound_literal.exp   Sat Jun 11 11:52:13 2022 +0000
@@ -1,1 +1,1 @@
-gcc_init_compound_literal.c(41): warning: static variable guess unused [226]
+gcc_init_compound_literal.c(41): warning: static variable 'guess' unused [226]
diff -r 7a20e7f2f052 -r 609184e6877e tests/usr.bin/xlint/lint1/init.c
--- a/tests/usr.bin/xlint/lint1/init.c  Sat Jun 11 11:20:40 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/init.c  Sat Jun 11 11:52:13 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init.c,v 1.10 2021/12/22 00:45:53 rillig Exp $ */
+/*     $NetBSD: init.c,v 1.11 2022/06/11 11:52:13 rillig Exp $ */
 # 3 "init.c"
 
 /*
@@ -111,7 +111,7 @@
 /* expect+1: warning: cannot initialize extern declaration: extern_var [26] */
 extern int extern_var = 1;
 int defined_var = 1;
-/* expect+1: warning: static variable static_var unused [226] */
+/* expect+1: warning: static variable 'static_var' unused [226] */
 static int static_var = 1;
 /* expect+1: error: illegal storage class [8] */
 register int register_var = 1;
diff -r 7a20e7f2f052 -r 609184e6877e tests/usr.bin/xlint/lint1/init.exp
--- a/tests/usr.bin/xlint/lint1/init.exp        Sat Jun 11 11:20:40 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/init.exp        Sat Jun 11 11:52:13 2022 +0000
@@ -10,4 +10,4 @@
 init.c(112): warning: cannot initialize extern declaration: extern_var [26]
 init.c(117): error: illegal storage class [8]
 init.c(119): error: cannot initialize typedef: typedef_var [25]
-init.c(115): warning: static variable static_var unused [226]
+init.c(115): warning: static variable 'static_var' unused [226]
diff -r 7a20e7f2f052 -r 609184e6877e tests/usr.bin/xlint/lint1/msg_000.exp
--- a/tests/usr.bin/xlint/lint1/msg_000.exp     Sat Jun 11 11:20:40 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_000.exp     Sat Jun 11 11:52:13 2022 +0000
@@ -1,2 +1,2 @@
 msg_000.c(8): warning: empty declaration [0]
-msg_000.c(10): warning: static variable local_defined unused [226]
+msg_000.c(10): warning: static variable 'local_defined' unused [226]
diff -r 7a20e7f2f052 -r 609184e6877e tests/usr.bin/xlint/lint1/msg_001.c
--- a/tests/usr.bin/xlint/lint1/msg_001.c       Sat Jun 11 11:20:40 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_001.c       Sat Jun 11 11:52:13 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msg_001.c,v 1.6 2022/04/24 20:08:23 rillig Exp $       */
+/*     $NetBSD: msg_001.c,v 1.7 2022/06/11 11:52:13 rillig Exp $       */
 # 3 "msg_001.c"
 
 // Test for message: old style declaration; add 'int' [1]
@@ -9,10 +9,10 @@
 int new_style = 1;
 
 /* expect+2: error: old style declaration; add 'int' [1] */
-/* expect+1: warning: static variable static_old_style unused [226] */
+/* expect+1: warning: static variable 'static_old_style' unused [226] */
 static static_old_style = 1;
 
-/* expect+1: warning: static variable static_new_style unused [226] */
+/* expect+1: warning: static variable 'static_new_style' unused [226] */
 static int static_new_style = 1;
 
 /* expect+2: error: old style declaration; add 'int' [1] */
@@ -21,7 +21,7 @@
 }
 
 /* expect+4: error: old style declaration; add 'int' [1] */
-/* expect+2: warning: static function static_implicit_int unused [236] */
+/* expect+2: warning: static function 'static_implicit_int' unused [236] */
 static
 static_implicit_int(void)
 {
diff -r 7a20e7f2f052 -r 609184e6877e tests/usr.bin/xlint/lint1/msg_001.exp
--- a/tests/usr.bin/xlint/lint1/msg_001.exp     Sat Jun 11 11:20:40 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_001.exp     Sat Jun 11 11:52:13 2022 +0000
@@ -2,6 +2,6 @@
 msg_001.c(13): error: old style declaration; add 'int' [1]
 msg_001.c(20): error: old style declaration; add 'int' [1]
 msg_001.c(27): error: old style declaration; add 'int' [1]
-msg_001.c(13): warning: static variable static_old_style unused [226]
-msg_001.c(16): warning: static variable static_new_style unused [226]
-msg_001.c(26): warning: static function static_implicit_int unused [236]
+msg_001.c(13): warning: static variable 'static_old_style' unused [226]
+msg_001.c(16): warning: static variable 'static_new_style' unused [226]
+msg_001.c(26): warning: static function 'static_implicit_int' unused [236]
diff -r 7a20e7f2f052 -r 609184e6877e tests/usr.bin/xlint/lint1/msg_019.exp
--- a/tests/usr.bin/xlint/lint1/msg_019.exp     Sat Jun 11 11:20:40 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_019.exp     Sat Jun 11 11:52:13 2022 +0000
@@ -3,4 +3,4 @@
 msg_019.c(11): error: void parameter cannot have name: parameter [61]
 msg_019.c(13): error: void type for 'local_variable' [19]
 msg_019.c(11): warning: argument 'parameter' unused in function 'function' [231]
-msg_019.c(8): warning: static variable unit_variable unused [226]
+msg_019.c(8): warning: static variable 'unit_variable' unused [226]
diff -r 7a20e7f2f052 -r 609184e6877e tests/usr.bin/xlint/lint1/msg_031.exp
--- a/tests/usr.bin/xlint/lint1/msg_031.exp     Sat Jun 11 11:20:40 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_031.exp     Sat Jun 11 11:52:13 2022 +0000
@@ -1,3 +1,3 @@
 msg_031.c(20): error: '<unnamed>' has incomplete type 'incomplete struct incomplete' [31]
-msg_031.c(10): warning: struct incomplete never defined [233]
+msg_031.c(10): warning: struct 'incomplete' never defined [233]
 msg_031.c(16): error: 'incomplete_var' has incomplete type 'incomplete struct incomplete' [31]
diff -r 7a20e7f2f052 -r 609184e6877e tests/usr.bin/xlint/lint1/msg_044.c
--- a/tests/usr.bin/xlint/lint1/msg_044.c       Sat Jun 11 11:20:40 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_044.c       Sat Jun 11 11:52:13 2022 +0000
@@ -1,15 +1,15 @@
-/*     $NetBSD: msg_044.c,v 1.3 2021/08/26 19:23:25 rillig Exp $       */
+/*     $NetBSD: msg_044.c,v 1.4 2022/06/11 11:52:13 rillig Exp $       */
 # 3 "msg_044.c"
 
 // Test for message: declaration introduces new type in ANSI C: %s %s [44]
 
-/* expect+1: warning: struct tag never defined [233] */
+/* expect+1: warning: struct 'tag' never defined [233] */
 struct tag;
 
 void declaration(struct tag *);
 
 void definition(void) {
        /* expect+2: warning: declaration introduces new type in ANSI C: struct tag [44] */
-       /* expect+1: warning: struct tag never defined [233] */
+       /* expect+1: warning: struct 'tag' never defined [233] */
        struct tag;
 }
diff -r 7a20e7f2f052 -r 609184e6877e tests/usr.bin/xlint/lint1/msg_044.exp
--- a/tests/usr.bin/xlint/lint1/msg_044.exp     Sat Jun 11 11:20:40 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_044.exp     Sat Jun 11 11:52:13 2022 +0000
@@ -1,3 +1,3 @@
 msg_044.c(14): warning: declaration introduces new type in ANSI C: struct tag [44]
-msg_044.c(14): warning: struct tag never defined [233]
-msg_044.c(7): warning: struct tag never defined [233]
+msg_044.c(14): warning: struct 'tag' never defined [233]
+msg_044.c(7): warning: struct 'tag' never defined [233]
diff -r 7a20e7f2f052 -r 609184e6877e tests/usr.bin/xlint/lint1/msg_045.c
--- a/tests/usr.bin/xlint/lint1/msg_045.c       Sat Jun 11 11:20:40 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_045.c       Sat Jun 11 11:52:13 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msg_045.c,v 1.3 2022/04/08 21:29:29 rillig Exp $       */
+/*     $NetBSD: msg_045.c,v 1.4 2022/06/11 11:52:13 rillig Exp $       */
 # 3 "msg_045.c"
 
 /* Test for message: base type is really '%s %s' [45] */
@@ -14,7 +14,7 @@
        /* expect+4: warning: base type is really 'struct counter' [45] */
        /* expect+3: warning: declaration introduces new type in ANSI C: union counter [44] */
        /* expect+2: error: 'counter' has incomplete type 'incomplete union counter' [31] */
-       /* expect+1: warning: union counter never defined [234] */
+       /* expect+1: warning: union 'counter' never defined [234] */
        union counter counter;
        /* expect+1: warning: illegal member use: value [102] */
        counter.value++;
diff -r 7a20e7f2f052 -r 609184e6877e tests/usr.bin/xlint/lint1/msg_045.exp
--- a/tests/usr.bin/xlint/lint1/msg_045.exp     Sat Jun 11 11:20:40 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_045.exp     Sat Jun 11 11:52:13 2022 +0000
@@ -2,4 +2,4 @@
 msg_045.c(18): warning: declaration introduces new type in ANSI C: union counter [44]
 msg_045.c(18): error: 'counter' has incomplete type 'incomplete union counter' [31]
 msg_045.c(20): warning: illegal member use: value [102]
-msg_045.c(18): warning: union counter never defined [234]
+msg_045.c(18): warning: union 'counter' never defined [234]
diff -r 7a20e7f2f052 -r 609184e6877e tests/usr.bin/xlint/lint1/msg_046.c
--- a/tests/usr.bin/xlint/lint1/msg_046.c       Sat Jun 11 11:20:40 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_046.c       Sat Jun 11 11:52:13 2022 +0000
@@ -1,36 +1,36 @@
-/*     $NetBSD: msg_046.c,v 1.4 2021/08/16 06:49:57 rillig Exp $       */
+/*     $NetBSD: msg_046.c,v 1.5 2022/06/11 11:52:13 rillig Exp $       */
 # 3 "msg_046.c"
 
 // Test for message: %s tag '%s' redeclared as %s [46]
 
-/* expect+1: warning: struct tag1 never defined [233] */
+/* expect+1: warning: struct 'tag1' never defined [233] */
 struct tag1;
 /* expect+2: error: struct tag 'tag1' redeclared as union [46] */
-/* expect+1: warning: union tag1 never defined [234] */
+/* expect+1: warning: union 'tag1' never defined [234] */
 union tag1;
 
-/* expect+1: warning: union tag2 never defined [234] */
+/* expect+1: warning: union 'tag2' never defined [234] */
 union tag2;
 /* expect+2: error: union tag 'tag2' redeclared as enum [46] */



Home | Main Index | Thread Index | Old Index