Home
last modified time | relevance | path

Searched refs:mlp (Results 1 – 25 of 85) sorted by relevance

1234

/netbsd-src/external/gpl2/gettext/dist/gettext-tools/src/
H A Dmessage.c242 message_list_ty *mlp; in message_list_alloc() local
244 mlp = (message_list_ty *) xmalloc (sizeof (message_list_ty)); in message_list_alloc()
245 mlp->nitems = 0; in message_list_alloc()
246 mlp->nitems_max = 0; in message_list_alloc()
247 mlp->item = NULL; in message_list_alloc()
248 if ((mlp->use_hashtable = use_hashtable)) in message_list_alloc()
249 hash_init (&mlp->htable, 10); in message_list_alloc()
250 return mlp; in message_list_alloc()
255 message_list_free (message_list_ty *mlp, int keep_messages) in message_list_free() argument
260 for (j = 0; j < mlp->nitems; ++j) in message_list_free()
[all …]
H A Dwrite-catalog.c84 message_list_ty *mlp = mdlp->item[k]->messages; in msgdomain_list_print() local
86 if (!(mlp->nitems == 0 in msgdomain_list_print()
87 || (mlp->nitems == 1 && is_header (mlp->item[0])))) in msgdomain_list_print()
118 message_list_ty *mlp = mdlp->item[k]->messages; in msgdomain_list_print() local
121 for (j = 0; j < mlp->nitems; j++) in msgdomain_list_print()
123 message_ty *mp = mlp->item[j]; in msgdomain_list_print()
152 message_list_ty *mlp = mdlp->item[k]->messages; in msgdomain_list_print() local
155 for (j = 0; j < mlp->nitems; j++) in msgdomain_list_print()
157 message_ty *mp = mlp->item[j]; in msgdomain_list_print()
244 message_list_ty *mlp = mdlp->item[k]->messages; in msgdomain_list_sort_by_msgid() local
[all …]
H A Dwrite-resources.c59 message_list_ty *mlp; member
83 message_list_ty *mlp = l->mlp; in execute_writing_input() local
86 for (j = 0; j < mlp->nitems; j++) in execute_writing_input()
88 message_ty *mp = mlp->item[j]; in execute_writing_input()
112 msgdomain_write_csharp_resources (message_list_ty *mlp, in msgdomain_write_csharp_resources() argument
118 if (mlp->nitems != 0) in msgdomain_write_csharp_resources()
126 for (j = 0; j < mlp->nitems; j++) in msgdomain_write_csharp_resources()
127 if (mlp->item[j]->msgctxt != NULL) in msgdomain_write_csharp_resources()
145 for (j = 0; j < mlp->nitems; j++) in msgdomain_write_csharp_resources()
146 if (mlp->item[j]->msgid_plural != NULL) in msgdomain_write_csharp_resources()
[all …]
H A Dwrite-tcl.c111 write_msg (FILE *output_file, message_list_ty *mlp, const char *locale_name) in write_msg() argument
119 for (j = 0; j < mlp->nitems; j++) in write_msg()
121 message_ty *mp = mlp->item[j]; in write_msg()
138 msgdomain_write_tcl (message_list_ty *mlp, const char *canon_encoding, in msgdomain_write_tcl() argument
143 if (mlp->nitems == 0) in msgdomain_write_tcl()
152 for (j = 0; j < mlp->nitems; j++) in msgdomain_write_tcl()
153 if (mlp->item[j]->msgctxt != NULL) in msgdomain_write_tcl()
171 for (j = 0; j < mlp->nitems; j++) in msgdomain_write_tcl()
172 if (mlp->item[j]->msgid_plural != NULL) in msgdomain_write_tcl()
185 iconv_message_list (mlp, canon_encoding, po_charset_utf8, NULL); in msgdomain_write_tcl()
[all …]
H A Dmsgl-iconv.c172 iconv_message_list (message_list_ty *mlp, in iconv_message_list() argument
181 if (mlp->nitems == 0) in iconv_message_list()
185 for (j = 0; j < mlp->nitems; j++) in iconv_message_list()
186 if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) in iconv_message_list()
188 const char *header = mlp->item[j]->msgstr; in iconv_message_list()
251 mlp->item[j]->msgstr = new_header; in iconv_message_list()
252 mlp->item[j]->msgstr_len = len1 + len2 + len3 + 1; in iconv_message_list()
258 if (is_ascii_message_list (mlp)) in iconv_message_list()
294 for (j = 0; j < mlp->nitems; j++) in iconv_message_list()
296 message_ty *mp = mlp->item[j]; in iconv_message_list()
[all …]
H A Dwrite-java.c148 compute_hashsize (message_list_ty *mlp, bool *collisionp) in compute_hashsize() argument
154 unsigned int n = mlp->nitems; in compute_hashsize()
163 hashcodes[j] = string_hashcode (mlp->item[j]->msgid); in compute_hashsize()
293 compute_table_items (message_list_ty *mlp, unsigned int hashsize) in compute_table_items() argument
295 unsigned int n = mlp->nitems; in compute_table_items()
306 unsigned int hashcode = string_hashcode (mlp->item[j]->msgid); in compute_table_items()
323 arr[j].mp = mlp->item[j]; in compute_table_items()
671 write_java_code (FILE *stream, const char *class_name, message_list_ty *mlp, in write_java_code() argument
693 for (j = 0; j < mlp->nitems; j++) in write_java_code()
694 if (mlp->item[j]->msgid_plural != NULL) in write_java_code()
[all …]
H A Dmessage.h209 message_list_free (message_list_ty *mlp, int keep_messages);
211 message_list_append (message_list_ty *mlp, message_ty *mp);
213 message_list_prepend (message_list_ty *mlp, message_ty *mp);
215 message_list_insert_at (message_list_ty *mlp, size_t n, message_ty *mp);
217 message_list_delete_nth (message_list_ty *mlp, size_t n);
220 message_list_remove_if_not (message_list_ty *mlp,
225 message_list_msgids_changed (message_list_ty *mlp);
227 message_list_search (message_list_ty *mlp,
230 message_list_search_fuzzy (message_list_ty *mlp,
252 message_list_ty *mlp);
H A Dwrite-qt.c396 write_qm (FILE *output_file, message_list_ty *mlp) in write_qm() argument
411 for (j = 0; j < mlp->nitems; j++) in write_qm()
413 message_ty *mp = mlp->item[j]; in write_qm()
478 for (j = 0; j < mlp->nitems; j++) in write_qm()
480 message_ty *mp = mlp->item[j]; in write_qm()
499 for (j = 0; j < mlp->nitems; j++) in write_qm()
501 message_ty *mp = mlp->item[j]; in write_qm()
651 msgdomain_write_qt (message_list_ty *mlp, const char *canon_encoding, in msgdomain_write_qt() argument
657 if (mlp->nitems != 0) in msgdomain_write_qt()
665 for (j = 0; j < mlp->nitems; j++) in msgdomain_write_qt()
[all …]
H A Dmsgl-cat.c137 message_list_ty *mlp = mdlp->item[k]->messages; in catenate_msgdomain_list() local
140 if (mlp->nitems > 0) in catenate_msgdomain_list()
142 for (j = 0; j < mlp->nitems; j++) in catenate_msgdomain_list()
143 if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) in catenate_msgdomain_list()
145 const char *header = mlp->item[j]->msgstr; in catenate_msgdomain_list()
198 if (is_ascii_message_list (mlp)) in catenate_msgdomain_list()
232 message_list_ty *mlp = mdlp->item[k]->messages; in catenate_msgdomain_list() local
235 for (j = 0; j < mlp->nitems; j++) in catenate_msgdomain_list()
236 if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) in catenate_msgdomain_list()
238 const char *header = mlp->item[j]->msgstr; in catenate_msgdomain_list()
[all …]
H A Dwrite-properties.c237 write_properties (FILE *fp, message_list_ty *mlp, const char *canon_encoding, in write_properties() argument
244 iconv_message_list (mlp, canon_encoding, po_charset_utf8, NULL); in write_properties()
245 for (j = 0; j < mlp->nitems; ++j) in write_properties()
247 message_ty *mp = mlp->item[j]; in write_properties()
259 for (j = 0; j < mlp->nitems; ++j) in write_properties()
261 const message_ty *mp = mlp->item[j]; in write_properties()
280 message_list_ty *mlp; in msgdomain_list_print_properties() local
283 mlp = mdlp->item[0]->messages; in msgdomain_list_print_properties()
285 mlp = message_list_alloc (false); in msgdomain_list_print_properties()
286 write_properties (fp, mlp, mdlp->encoding, page_width, debug); in msgdomain_list_print_properties()
H A Dread-tcl.c137 message_list_ty *mlp = mdlp->item[k]->messages; in msgdomain_read_tcl() local
140 for (j = 0; j < mlp->nitems; j++) in msgdomain_read_tcl()
141 if (is_header (mlp->item[j])) in msgdomain_read_tcl()
146 message_ty *header = mlp->item[j]; in msgdomain_read_tcl()
150 mlp->item[i] = mlp->item[i - 1]; in msgdomain_read_tcl()
151 mlp->item[0] = header; in msgdomain_read_tcl()
H A Dx-perl.c758 static void interpolate_keywords (message_list_ty *mlp, const char *string,
760 static token_ty *x_perl_lex (message_list_ty *mlp);
762 static bool extract_balanced (message_list_ty *mlp,
851 extract_triple_quotelike (message_list_ty *mlp, token_ty *tp, int delim, in extract_triple_quotelike() argument
860 interpolate_keywords (mlp, string, line_number); in extract_triple_quotelike()
877 interpolate_keywords (mlp, string, line_number); in extract_triple_quotelike()
1277 extract_variable (message_list_ty *mlp, token_ty *tp, int first) in extract_variable() argument
1373 if (extract_balanced (mlp, token_type_rbrace, true, false, in extract_variable()
1375 1, arglist_parser_alloc (mlp, NULL))) in extract_variable()
1525 token_ty *t1 = x_perl_lex (mlp); in extract_variable()
[all …]
H A Dmsgl-fsearch.c203 message_fuzzy_index_alloc (const message_list_ty *mlp, in message_fuzzy_index_alloc() argument
208 size_t count = mlp->nitems; in message_fuzzy_index_alloc()
212 findex->messages = mlp->item; in message_fuzzy_index_alloc()
220 message_ty *mp = mlp->item[j]; in message_fuzzy_index_alloc()
308 message_ty *mp = mlp->item[j]; in message_fuzzy_index_alloc()
323 message_list_ty *mlp = findex->short_messages[l]; in message_fuzzy_index_alloc() local
325 if (mlp->nitems < mlp->nitems_max) in message_fuzzy_index_alloc()
327 mlp->nitems_max = mlp->nitems; in message_fuzzy_index_alloc()
328 mlp->item = in message_fuzzy_index_alloc()
330 xrealloc (mlp->item, mlp->nitems_max * sizeof (message_ty *)); in message_fuzzy_index_alloc()
[all …]
H A Dwrite-stringtable.c268 write_stringtable (FILE *fp, message_list_ty *mlp, const char *canon_encoding, in write_stringtable() argument
275 iconv_message_list (mlp, canon_encoding, po_charset_utf8, NULL); in write_stringtable()
278 if (!is_ascii_message_list (mlp)) in write_stringtable()
283 for (j = 0; j < mlp->nitems; ++j) in write_stringtable()
285 const message_ty *mp = mlp->item[j]; in write_stringtable()
304 message_list_ty *mlp; in msgdomain_list_print_stringtable() local
307 mlp = mdlp->item[0]->messages; in msgdomain_list_print_stringtable()
309 mlp = message_list_alloc (false); in msgdomain_list_print_stringtable()
310 write_stringtable (fp, mlp, mdlp->encoding, page_width, debug); in msgdomain_list_print_stringtable()
H A Dmsgl-charset.c61 const message_list_ty *mlp = mdlp->item[k]->messages; in compare_po_locale_charsets() local
63 for (j = 0; j < mlp->nitems; j++) in compare_po_locale_charsets()
64 if (mlp->item[j]->msgstr == NULL in compare_po_locale_charsets()
65 && mlp->item[j]->msgid[0] == '\0' && !mlp->item[j]->obsolete) in compare_po_locale_charsets()
67 const char *header = mlp->item[j]->msgstr; in compare_po_locale_charsets()
H A Dmsgfmt.c105 message_list_ty *mlp; member
526 message_list_remove_if_not (domain->mlp, is_nonobsolete); in main()
534 check_message_list (domain->mlp, in main()
555 if (msgdomain_write_java (domain->mlp, canon_encoding, in main()
562 if (msgdomain_write_csharp (domain->mlp, canon_encoding, in main()
569 if (msgdomain_write_csharp_resources (domain->mlp, canon_encoding, in main()
576 if (msgdomain_write_tcl (domain->mlp, canon_encoding, in main()
582 if (msgdomain_write_qt (domain->mlp, canon_encoding, in main()
588 if (msgdomain_write_mo (domain->mlp, domain->domain_name, in main()
594 message_list_free (domain->mlp, 0); in main()
[all …]
H A Dwrite-csharp.c477 …_csharp_code (FILE *stream, const char *culture_name, const char *class_name, message_list_ty *mlp) in write_csharp_code() argument
513 for (j = 0; j < mlp->nitems; j++) in write_csharp_code()
514 if (mlp->item[j]->msgid_plural != NULL) in write_csharp_code()
530 for (j = 0; j < mlp->nitems; j++) in write_csharp_code()
533 write_csharp_string (stream, mlp->item[j]->msgid); in write_csharp_code()
535 write_csharp_msgstr (stream, mlp->item[j]); in write_csharp_code()
545 for (j = 0; j < mlp->nitems; j++) in write_csharp_code()
546 if (mlp->item[j]->msgid_plural != NULL) in write_csharp_code()
549 write_csharp_string (stream, mlp->item[j]->msgid); in write_csharp_code()
551 write_csharp_string (stream, mlp->item[j]->msgid_plural); in write_csharp_code()
[all …]
H A Dmsgunfmt.c112 static void read_one_file (message_list_ty *mlp, const char *filename);
379 message_list_ty *mlp; in main() local
381 mlp = message_list_alloc (false); in main()
385 read_one_file (mlp, argv[optind]); in main()
389 read_one_file (mlp, "-"); in main()
392 result->item[0]->messages = mlp; in main()
528 read_one_file (message_list_ty *mlp, const char *filename) in read_one_file() argument
531 read_resources_file (mlp, filename); in read_one_file()
533 read_mo_file (mlp, filename); in read_one_file()
H A Dmsgmerge.c656 message_list_ty *mlp = compendiums->item[i]; in definitions_init_findex() local
659 for (j = 0; j < mlp->nitems; j++) in definitions_init_findex()
660 message_list_append (all_compendium, mlp->item[j]); in definitions_init_findex()
679 definitions_set_current_list (definitions_ty *definitions, message_list_ty *mlp) in definitions_set_current_list() argument
681 definitions->lists->item[0] = mlp; in definitions_set_current_list()
1394 message_list_ty *mlp = ref->item[k]->messages; in merge() local
1396 for (j = 0; j < mlp->nitems; j++) in merge()
1397 if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) in merge()
1399 const char *header = mlp->item[j]->msgstr; in merge()
1440 message_list_ty *mlp = def->item[k]->messages; in merge() local
[all …]
H A Dx-awk.c689 extract_parenthesized (message_list_ty *mlp, in extract_parenthesized() argument
759 if (extract_parenthesized (mlp, inner_context, next_context_iter, in extract_parenthesized()
760 arglist_parser_alloc (mlp, in extract_parenthesized()
793 remember_a_message (mlp, NULL, token.string, inner_context, &pos, in extract_parenthesized()
812 remember_a_message (mlp, NULL, token.string, inner_context, &pos, in extract_parenthesized()
861 message_list_ty *mlp = mdlp->item[0]->messages; in extract_awk() local
879 while (!extract_parenthesized (mlp, null_context, null_context_list_iterator, in extract_awk()
880 arglist_parser_alloc (mlp, NULL))) in extract_awk()
/netbsd-src/external/bsd/am-utils/dist/amd/
H A Drestart.c128 mntlist *ml, *mlp; in restart() local
134 for (mlp = ml = read_mtab("restart", mnttab_file_name); in restart()
135 mlp; in restart()
136 mlp = mlp->mnext) { in restart()
137 mntent_t *me = mlp->mnt; in restart()
187 mntlist *ml, *mlp; in restart_automounter_nodes() local
197 for (mlp = ml = read_mtab("restart", mnttab_file_name); in restart_automounter_nodes()
198 mlp; in restart_automounter_nodes()
199 mlp = mlp->mnext) { in restart_automounter_nodes()
200 mntent_t *me = mlp->mnt; in restart_automounter_nodes()
/netbsd-src/usr.sbin/mountd/
H A Dmountd.c800 struct mountlist *mlp; in xdr_mlist() local
805 mlp = mlhead; in xdr_mlist()
806 while (mlp) { in xdr_mlist()
809 strp = &mlp->ml_host[0]; in xdr_mlist()
812 strp = &mlp->ml_dirp[0]; in xdr_mlist()
815 mlp = mlp->ml_next; in xdr_mlist()
2145 struct mountlist *mlp, **mlpp; in get_mountlist() local
2161 mlp = emalloc(sizeof(*mlp)); in get_mountlist()
2162 (void)strncpy(mlp->ml_host, host, RPCMNT_NAMELEN); in get_mountlist()
2163 mlp->ml_host[RPCMNT_NAMELEN] = '\0'; in get_mountlist()
[all …]
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/libgettextpo/
H A Dgettext-po.c63 message_list_ty *mlp; member
304 message_list_ty *mlp; in po_file_domain_header() local
309 mlp = msgdomain_list_sublist (file->mdlp, domain, false); in po_file_domain_header()
310 if (mlp != NULL) in po_file_domain_header()
311 for (j = 0; j < mlp->nitems; j++) in po_file_domain_header()
312 if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) in po_file_domain_header()
314 const char *header = mlp->item[j]->msgstr; in po_file_domain_header()
460 iterator->mlp = msgdomain_list_sublist (file->mdlp, domain, false); in po_message_iterator()
483 if (iterator->mlp != NULL && iterator->index < iterator->mlp->nitems) in po_next_message()
484 return (po_message_t) iterator->mlp->item[iterator->index++]; in po_next_message()
[all …]
/netbsd-src/external/cddl/osnet/dist/tools/ctf/cvt/
H A Dst_parse.c853 offsize(char *cp, mlist_t *mlp) in offsize() argument
865 mlp->ml_offset = offset; in offsize()
866 mlp->ml_size = size; in offsize()
891 mlist_t *mlp, **prev; in soudef() local
917 mlp = xcalloc(sizeof (*mlp)); in soudef()
918 *prev = mlp; in soudef()
920 mlp->ml_name = w; in soudef()
955 cp = offsize(cp, mlp); in soudef()
959 if (mlp->ml_size != itdp->t_intr->intr_nbits) { in soudef()
961 "from %s", mlp->ml_size, tdesc_name(itdp)); in soudef()
[all …]
/netbsd-src/external/bsd/openldap/dist/contrib/slapd-modules/samba4/
H A Dvernum.c102 Modifications *ml, **mlp; in vernum_op_modify() local
123 for ( mlp = &op->orm_modlist; *mlp != NULL; mlp = &(*mlp)->sml_next ) in vernum_op_modify()
139 *mlp = ml; in vernum_op_modify()
140 mlp = &ml->sml_next; in vernum_op_modify()
154 *mlp = ml; in vernum_op_modify()

1234