Home | History | Annotate | Download | only in intl

Lines Matching refs:domain

772 		      struct loaded_domain *domain,
784 domain->codeset_cntr =
787 domain->conv = (__gconv_t) -1;
790 domain->conv = (iconv_t) -1;
793 domain->conv_tab = NULL;
848 if (__gconv_open (outcharset, charset, &domain->conv,
851 domain->conv = (__gconv_t) -1;
868 domain->conv = iconv_open (outcharset, charset);
874 domain->conv = iconv_open (outcharset, charset);
889 _nl_free_domain_conv (struct loaded_domain *domain)
891 if (domain->conv_tab != NULL && domain->conv_tab != (char **) -1)
892 free (domain->conv_tab);
895 if (domain->conv != (__gconv_t) -1)
896 __gconv_close (domain->conv);
899 if (domain->conv != (iconv_t) -1)
900 iconv_close (domain->conv);
921 struct loaded_domain *domain;
1021 domain = (struct loaded_domain *) malloc (sizeof (struct loaded_domain));
1022 if (domain == NULL)
1024 domain_file->data = domain;
1026 domain->data = (char *) data;
1027 domain->use_mmap = use_mmap;
1028 domain->mmap_size = size;
1029 domain->must_swap = data->magic != _MAGIC;
1030 domain->malloced = NULL;
1033 revision = W (domain->must_swap, data->revision);
1039 domain->nstrings = W (domain->must_swap, data->nstrings);
1040 domain->orig_tab = (const struct string_desc *)
1041 ((char *) data + W (domain->must_swap, data->orig_tab_offset));
1042 domain->trans_tab = (const struct string_desc *)
1043 ((char *) data + W (domain->must_swap, data->trans_tab_offset));
1044 domain->hash_size = W (domain->must_swap, data->hash_tab_size);
1045 domain->hash_tab =
1046 (domain->hash_size > 2
1048 ((char *) data + W (domain->must_swap, data->hash_tab_offset))
1050 domain->must_swap_hash_tab = domain->must_swap;
1056 domain->n_sysdep_strings = 0;
1057 domain->orig_sysdep_tab = NULL;
1058 domain->trans_sysdep_tab = NULL;
1065 if (domain->hash_tab == NULL)
1070 W (domain->must_swap, data->n_sysdep_strings);
1088 W (domain->must_swap, data->n_sysdep_segments);
1091 + W (domain->must_swap, data->sysdep_segments_offset));
1098 + W (domain->must_swap, sysdep_segments[i].offset);
1100 W (domain->must_swap, sysdep_segments[i].length);
1113 + W (domain->must_swap, data->orig_sysdep_tab_offset));
1116 + W (domain->must_swap, data->trans_sysdep_tab_offset));
1123 memneed = domain->hash_size * sizeof (nls_uint32);
1134 + W (domain->must_swap,
1141 if (W (domain->must_swap, p->sysdepref) != SEGMENTS_END)
1146 need += W (domain->must_swap, p->segsize);
1148 sysdepref = W (domain->must_swap, p->sysdepref);
1192 domain->malloced = mem;
1200 mem += domain->hash_size * sizeof (nls_uint32);
1213 + W (domain->must_swap,
1220 if (W (domain->must_swap, p->sysdepref)
1227 W (domain->must_swap, p->sysdepref);
1251 + W (domain->must_swap,
1257 + W (domain->must_swap, sysdep_string->offset);
1271 if (W (domain->must_swap, p->sysdepref)
1276 W (domain->must_swap, p->segsize);
1286 W (domain->must_swap, p->segsize);
1288 W (domain->must_swap, p->sysdepref);
1318 for (i = 0; i < domain->hash_size; i++)
1320 W (domain->must_swap_hash_tab, domain->hash_tab[i]);
1325 nls_uint32 idx = hash_val % domain->hash_size;
1327 1 + (hash_val % (domain->hash_size - 2));
1334 inmem_hash_tab[idx] = 1 + domain->nstrings + i;
1338 if (idx >= domain->hash_size - incr)
1339 idx -= domain->hash_size - incr;
1345 domain->n_sysdep_strings = n_inmem_sysdep_strings;
1346 domain->orig_sysdep_tab = inmem_orig_sysdep_tab;
1347 domain->trans_sysdep_tab = inmem_trans_sysdep_tab;
1349 domain->hash_tab = inmem_hash_tab;
1350 domain->must_swap_hash_tab = 0;
1354 domain->n_sysdep_strings = 0;
1355 domain->orig_sysdep_tab = NULL;
1356 domain->trans_sysdep_tab = NULL;
1363 domain->n_sysdep_strings = 0;
1364 domain->orig_sysdep_tab = NULL;
1365 domain->trans_sysdep_tab = NULL;
1375 free (domain->malloced);
1382 free (domain);
1388 the file is encoded with (found in the header entry) to the domain's
1390 nullentry = _nl_init_domain_conv (domain_file, domain, domainbinding);
1393 EXTRACT_PLURAL_EXPRESSION (nullentry, &domain->plural, &domain->nplurals);
1400 _nl_unload_domain (struct loaded_domain *domain)
1402 if (domain->plural != &__gettext_germanic_plural)
1403 __gettext_free_exp (domain->plural);
1405 _nl_free_domain_conv (domain);
1407 free (domain->malloced);
1410 if (domain->use_mmap)
1411 munmap ((void *) domain->data, domain->mmap_size);
1414 free ((void *) domain->data);
1416 free (domain);