mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 12:30:06 +00:00
treewide: fix incorrect spelling of indices in comments
Replace 'indeces' with 'indices', the most annoying of these typos were those found in elf.h which is a public header file copied to other projects.
This commit is contained in:
parent
720480934a
commit
14ef9c185b
@ -40,7 +40,7 @@
|
||||
# define RTLD_DEFAULT ((void *) 0)
|
||||
|
||||
|
||||
/* Type for namespace indeces. */
|
||||
/* Type for namespace indices. */
|
||||
typedef long int Lmid_t;
|
||||
|
||||
/* Special namespace ID values. */
|
||||
|
@ -247,7 +247,7 @@ _dl_check_map_versions (struct link_map *map, int verbose, int trace_mode)
|
||||
the maximum index here as well.
|
||||
|
||||
XXX We could avoid the loop by just taking the number of definitions
|
||||
as an upper bound of new indeces. */
|
||||
as an upper bound of new indices. */
|
||||
if (def != NULL)
|
||||
{
|
||||
ElfW(Verdef) *ent;
|
||||
|
@ -441,7 +441,7 @@ typedef struct
|
||||
#define SHT_FINI_ARRAY 15 /* Array of destructors */
|
||||
#define SHT_PREINIT_ARRAY 16 /* Array of pre-constructors */
|
||||
#define SHT_GROUP 17 /* Section group */
|
||||
#define SHT_SYMTAB_SHNDX 18 /* Extended section indeces */
|
||||
#define SHT_SYMTAB_SHNDX 18 /* Extended section indices */
|
||||
#define SHT_NUM 19 /* Number of defined types. */
|
||||
#define SHT_LOOS 0x60000000 /* Start OS-specific. */
|
||||
#define SHT_GNU_ATTRIBUTES 0x6ffffff5 /* Object attributes. */
|
||||
@ -2141,7 +2141,7 @@ enum
|
||||
#define EFA_PARISC_1_1 0x0210 /* PA-RISC 1.1 big-endian. */
|
||||
#define EFA_PARISC_2_0 0x0214 /* PA-RISC 2.0 big-endian. */
|
||||
|
||||
/* Additional section indeces. */
|
||||
/* Additional section indices. */
|
||||
|
||||
#define SHN_PARISC_ANSI_COMMON 0xff00 /* Section for tenatively declared
|
||||
symbols in ANSI C. */
|
||||
|
@ -79,8 +79,8 @@ __gconv_transliterate (struct __gconv_step *step,
|
||||
return (winbuf == winbufend
|
||||
? __GCONV_EMPTY_INPUT : __GCONV_INCOMPLETE_INPUT);
|
||||
|
||||
/* The array starting at FROM_IDX contains indeces to the string table
|
||||
in FROM_TBL. The indeces are sorted wrt to the strings. I.e., we
|
||||
/* The array starting at FROM_IDX contains indices to the string table
|
||||
in FROM_TBL. The indices are sorted wrt to the strings. I.e., we
|
||||
are doing binary search. */
|
||||
low = 0;
|
||||
high = size;
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include <gconv.h>
|
||||
#include <stdint.h>
|
||||
|
||||
/* Struct for table with indeces in UCS mapping table. */
|
||||
/* Struct for table with indices in UCS mapping table. */
|
||||
struct jisx0208_ucs_idx
|
||||
{
|
||||
uint16_t start;
|
||||
|
@ -25,7 +25,7 @@
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
/* Struct for table with indeces in mapping table. */
|
||||
/* Struct for table with indices in mapping table. */
|
||||
struct jisx0212_idx
|
||||
{
|
||||
uint16_t start;
|
||||
|
@ -2039,7 +2039,7 @@ add_to_tablewc (uint32_t ch, struct element_t *runp)
|
||||
obstack_int32_grow_fast (atwc.extrapool, curp->wcs[i]);
|
||||
|
||||
/* Now find the end of the consecutive sequence and
|
||||
add all the indeces in the indirect pool. */
|
||||
add all the indices in the indirect pool. */
|
||||
do
|
||||
{
|
||||
weightidx = output_weightwc (atwc.weightpool, atwc.collate,
|
||||
@ -2255,7 +2255,7 @@ collate_output (struct localedef_t *locale, const struct charmap_t *charmap,
|
||||
obstack_1grow_fast (&extrapool, curp->mbs[i]);
|
||||
|
||||
/* Now find the end of the consecutive sequence and
|
||||
add all the indeces in the indirect pool. */
|
||||
add all the indices in the indirect pool. */
|
||||
do
|
||||
{
|
||||
weightidx = output_weight (&weightpool, collate, curp);
|
||||
|
@ -181,7 +181,7 @@ __hsearch_r (ENTRY item, ACTION action, ENTRY **retval,
|
||||
do
|
||||
{
|
||||
/* Because SIZE is prime this guarantees to step through all
|
||||
available indeces. */
|
||||
available indices. */
|
||||
if (idx <= hval2)
|
||||
idx = htab->size + idx - hval2;
|
||||
else
|
||||
|
@ -48,7 +48,7 @@ td_thr_tsd (const td_thrhandle_t *th, const thread_key_t tk, void **data)
|
||||
if (err != TD_OK)
|
||||
return err;
|
||||
|
||||
/* Compute the indeces. */
|
||||
/* Compute the indices. */
|
||||
pthread_key_2ndlevel_size
|
||||
= DB_DESC_NELEM (th->th_ta_p->ta_field_pthread_key_data_level2_data);
|
||||
idx1st = tk / pthread_key_2ndlevel_size;
|
||||
|
@ -708,7 +708,7 @@ STRXFRM (STRING_TYPE *dest, const STRING_TYPE *src, size_t n, locale_t l)
|
||||
assert (((uintptr_t) l_data.indirect) % __alignof__ (l_data.indirect[0]) == 0);
|
||||
|
||||
/* We need the elements of the string as unsigned values since they
|
||||
are used as indeces. */
|
||||
are used as indices. */
|
||||
const USTRING_TYPE *usrc = (const USTRING_TYPE *) src;
|
||||
|
||||
/* Allocate cache for small strings on the stack and fill it with weight and
|
||||
|
Loading…
Reference in New Issue
Block a user