| /NextBSD/contrib/xz/src/liblzma/lz/ |
| HD | lz_decoder.h | 60 lzma_dict *restrict dict, const uint8_t *restrict in, 104 dict_get(const lzma_dict *const dict, const uint32_t distance) in dict_get() argument 106 return dict->buf[dict->pos - distance - 1 in dict_get() 107 + (distance < dict->pos ? 0 : dict->size)]; in dict_get() 113 dict_is_empty(const lzma_dict *const dict) in dict_is_empty() argument 115 return dict->full == 0; in dict_is_empty() 121 dict_is_distance_valid(const lzma_dict *const dict, const size_t distance) in dict_is_distance_valid() argument 123 return dict->full > distance; in dict_is_distance_valid() 129 dict_repeat(lzma_dict *dict, uint32_t distance, uint32_t *len) in dict_repeat() argument 132 const size_t dict_avail = dict->limit - dict->pos; in dict_repeat() [all …]
|
| HD | lz_decoder.c | 25 lzma_dict dict; member 57 coder->dict.pos = 0; in lz_decoder_reset() 58 coder->dict.full = 0; in lz_decoder_reset() 59 coder->dict.buf[coder->dict.size - 1] = '\0'; in lz_decoder_reset() 60 coder->dict.need_reset = false; in lz_decoder_reset() 73 if (coder->dict.pos == coder->dict.size) in decode_buffer() 74 coder->dict.pos = 0; in decode_buffer() 78 const size_t dict_start = coder->dict.pos; in decode_buffer() 84 coder->dict.limit = coder->dict.pos in decode_buffer() 86 coder->dict.size - coder->dict.pos); in decode_buffer() [all …]
|
| HD | lz_encoder.h | 313 extern uint32_t lzma_mf_hc3_find(lzma_mf *dict, lzma_match *matches); 314 extern void lzma_mf_hc3_skip(lzma_mf *dict, uint32_t amount); 316 extern uint32_t lzma_mf_hc4_find(lzma_mf *dict, lzma_match *matches); 317 extern void lzma_mf_hc4_skip(lzma_mf *dict, uint32_t amount); 319 extern uint32_t lzma_mf_bt2_find(lzma_mf *dict, lzma_match *matches); 320 extern void lzma_mf_bt2_skip(lzma_mf *dict, uint32_t amount); 322 extern uint32_t lzma_mf_bt3_find(lzma_mf *dict, lzma_match *matches); 323 extern void lzma_mf_bt3_skip(lzma_mf *dict, uint32_t amount); 325 extern uint32_t lzma_mf_bt4_find(lzma_mf *dict, lzma_match *matches); 326 extern void lzma_mf_bt4_skip(lzma_mf *dict, uint32_t amount);
|
| /NextBSD/contrib/gdb/gdb/ |
| HD | dictionary.c | 113 void (*free) (struct dictionary *dict); 115 void (*add_symbol) (struct dictionary *dict, struct symbol *sym); 117 struct symbol *(*iterator_first) (const struct dictionary *dict, 121 struct symbol *(*iter_name_first) (const struct dictionary *dict, 127 int (*size) (const struct dictionary *dict); 216 #define DICT_ITERATOR_DICT(iter) (iter)->dict 228 static void add_symbol_nonexpandable (struct dictionary *dict, 231 static void free_obstack (struct dictionary *dict); 236 static struct symbol *iterator_first_hashed (const struct dictionary *dict, 241 static struct symbol *iter_name_first_hashed (const struct dictionary *dict, [all …]
|
| HD | dictionary.h | 82 extern void dict_free (struct dictionary *dict); 86 extern void dict_add_symbol (struct dictionary *dict, struct symbol *sym); 90 extern int dict_empty (struct dictionary *dict); 100 const struct dictionary *dict; member 110 extern struct symbol *dict_iterator_first (const struct dictionary *dict, 124 extern struct symbol *dict_iter_name_first (const struct dictionary *dict, 142 extern int dict_size (const struct dictionary *dict); 151 #define ALL_DICT_SYMBOLS(dict, iter, sym) \ argument 152 for ((sym) = dict_iterator_first ((dict), &(iter)); \
|
| HD | cp-support.c | 594 const struct dictionary *dict; in make_symbol_overload_list_qualified() local 606 dict = BLOCK_DICT (b); in make_symbol_overload_list_qualified() 608 for (sym = dict_iter_name_first (dict, func_name, &iter); in make_symbol_overload_list_qualified() 625 dict = BLOCK_DICT (b); in make_symbol_overload_list_qualified() 627 for (sym = dict_iter_name_first (dict, func_name, &iter); in make_symbol_overload_list_qualified() 642 dict = BLOCK_DICT (b); in make_symbol_overload_list_qualified() 644 for (sym = dict_iter_name_first (dict, func_name, &iter); in make_symbol_overload_list_qualified()
|
| /NextBSD/crypto/heimdal/base/ |
| HD | dict.c | 53 heim_dict_t dict = ptr; in dict_dealloc() local 56 for (h = dict->tab; h < &dict->tab[dict->size]; ++h) { in dict_dealloc() 64 free(dict->tab); in dict_dealloc() 114 heim_dict_t dict; in heim_dict_create() local 116 dict = _heim_alloc_object(&dict_object, sizeof(*dict)); in heim_dict_create() 118 dict->size = findprime(size); in heim_dict_create() 119 if (dict->size == 0) { in heim_dict_create() 120 heim_release(dict); in heim_dict_create() 124 dict->tab = calloc(dict->size, sizeof(dict->tab[0])); in heim_dict_create() 125 if (dict->tab == NULL) { in heim_dict_create() [all …]
|
| HD | test_base.c | 71 heim_dict_t dict; in test_dict() local 77 dict = heim_dict_create(10); in test_dict() 79 heim_dict_add_value(dict, a1, a2); in test_dict() 80 heim_dict_add_value(dict, a3, a4); in test_dict() 82 heim_dict_delete_key(dict, a3); in test_dict() 83 heim_dict_delete_key(dict, a1); in test_dict() 90 heim_release(dict); in test_dict()
|
| /NextBSD/sys/contrib/xz-embedded/linux/lib/xz/ |
| HD | xz_dec_lzma2.c | 264 struct dictionary dict; member 286 static void dict_reset(struct dictionary *dict, struct xz_buf *b) in dict_reset() argument 288 if (DEC_IS_SINGLE(dict->mode)) { in dict_reset() 289 dict->buf = b->out + b->out_pos; in dict_reset() 290 dict->end = b->out_size - b->out_pos; in dict_reset() 293 dict->start = 0; in dict_reset() 294 dict->pos = 0; in dict_reset() 295 dict->limit = 0; in dict_reset() 296 dict->full = 0; in dict_reset() 300 static void dict_limit(struct dictionary *dict, size_t out_max) in dict_limit() argument [all …]
|
| /NextBSD/contrib/netbsd-tests/lib/libprop/ |
| HD | t_basic.c | 90 prop_dictionary_t dict; in ATF_TC_BODY() local 93 dict = prop_dictionary_create(); in ATF_TC_BODY() 94 ATF_REQUIRE(dict != NULL); in ATF_TC_BODY() 100 ATF_REQUIRE_EQ(prop_dictionary_set(dict, "one", num), true); in ATF_TC_BODY() 108 ATF_REQUIRE_EQ(prop_dictionary_set(dict, "two", str), true); in ATF_TC_BODY() 121 dict_copy = prop_dictionary_copy(dict); in ATF_TC_BODY() 127 ATF_REQUIRE_EQ(prop_dictionary_set(dict, "three", arr), true); in ATF_TC_BODY() 134 ATF_REQUIRE_EQ(prop_dictionary_set(dict, "true-val", val), true); in ATF_TC_BODY() 139 ATF_REQUIRE_EQ(prop_dictionary_set(dict, "false-val", val), true); in ATF_TC_BODY() 143 ext1 = prop_dictionary_externalize(dict); in ATF_TC_BODY() [all …]
|
| /NextBSD/contrib/netbsd-tests/lib/libc/db/ |
| HD | t_db.sh | 33 dict() function 35 if [ -f /usr/share/dict/words ]; then 36 echo /usr/share/dict/words 37 elif [ -f /usr/dict/words ]; then 38 echo /usr/dict/words 45 dict() function 47 if [ -f /usr/share/dict/words ]; then 48 echo /usr/share/dict/words 71 sed 200q $(dict) >exp 73 for i in `sed 200q $(dict)`; do [all …]
|
| /NextBSD/crypto/heimdal/lib/wind/ |
| HD | stringprep.py | 63 d = dict() 64 _merge_table(d, dict(map(lambda x: [x, ['name']], name_error))) 65 _merge_table(d, dict(map(lambda x: [x, ['ldap']], ldap_error))) 66 _merge_table(d, dict(map(lambda x: [x, ['sasl']], sasl_error))) 70 d = dict() 71 _merge_table(d, dict(map(lambda x: [x, ['name']], name_map))) 72 _merge_table(d, dict(map(lambda x: [x, ['ldap']], ldap_map))) 73 _merge_table(d, dict(map(lambda x: [x, ['ldap_case']], ldap_case_map))) 74 _merge_table(d, dict(map(lambda x: [x, ['sasl']], sasl_map)))
|
| /NextBSD/contrib/amd/fsinfo/ |
| HD | fsi_dict.c | 66 dict * 69 dict *dp = CALLOC(struct dict); in new_dict() 98 dict_locate(dict *dp, char *k) in dict_locate() 109 dict_add(dict *dp, char *k, char *v) in dict_add() 124 dict_iter(dict *dp, int (*fn) (qelem *)) in dict_iter()
|
| HD | fsinfo.h | 64 extern dict *dict_of_hosts; 65 extern dict *dict_of_volnames; 66 extern dict *new_dict(void); 67 extern dict_ent *dict_locate(dict *, char *); 72 extern int dict_iter(dict *, int (*)(qelem *)); 84 extern void dict_add(dict *, char *, char *);
|
| /NextBSD/contrib/netbsd-tests/usr.bin/nbperf/ |
| HD | t_nbperf.sh | 45 $(atf_get_srcdir)/h_nbperf /usr/share/dict/web2 chm cat \ 48 $(atf_get_srcdir)/h_nbperf /usr/share/dict/web2 chm cat \ 69 $(atf_get_srcdir)/h_nbperf /usr/share/dict/web2 chm3 cat \ 72 $(atf_get_srcdir)/h_nbperf /usr/share/dict/web2 chm3 cat \ 93 $(atf_get_srcdir)/h_nbperf /usr/share/dict/web2 bdz "sort -n" \ 96 $(atf_get_srcdir)/h_nbperf /usr/share/dict/web2 bdz cat \
|
| /NextBSD/contrib/llvm/tools/lldb/source/Plugins/InstrumentationRuntime/AddressSanitizer/ |
| HD | AddressSanitizerRuntime.cpp | 201 StructuredData::Dictionary *dict = new StructuredData::Dictionary(); in RetrieveReportData() local 202 dict->AddStringItem("instrumentation_class", "AddressSanitizer"); in RetrieveReportData() 203 dict->AddStringItem("stop_type", "fatal_error"); in RetrieveReportData() 204 dict->AddIntegerItem("pc", pc); in RetrieveReportData() 209 dict->AddIntegerItem("address", address); in RetrieveReportData() 210 dict->AddIntegerItem("access_type", access_type); in RetrieveReportData() 211 dict->AddIntegerItem("access_size", access_size); in RetrieveReportData() 212 dict->AddStringItem("description", description); in RetrieveReportData() 214 return StructuredData::ObjectSP(dict); in RetrieveReportData()
|
| /NextBSD/contrib/xz/src/liblzma/lzma/ |
| HD | lzma_decoder.c | 306 lzma_dict dict = *dictptr; in lzma_decode() local 308 const size_t dict_start = dict.pos; in lzma_decode() 334 uint32_t pos_state = dict.pos & pos_mask; in lzma_decode() 342 if (no_eopm && coder->uncompressed_size < dict.limit - dict.pos) in lzma_decode() 343 dict.limit = dict.pos + (size_t)(coder->uncompressed_size); in lzma_decode() 352 pos_state = dict.pos & pos_mask; in lzma_decode() 356 if (unlikely(no_eopm && dict.pos == dict.limit)) in lzma_decode() 366 dict.pos, dict_get(&dict, 0)); in lzma_decode() 393 len = dict_get(&dict, rep0) << 1; in lzma_decode() 477 if (unlikely(dict_put(&dict, symbol))) { in lzma_decode() [all …]
|
| /NextBSD/usr.sbin/ppp/ |
| HD | pred.c | 63 u_char dict[GUESS_TABLE_SIZE]; member 77 if (state->dict[state->hash] == *source) { in compress() 80 state->dict[state->hash] = *source; in compress() 95 *dest++ = state->dict[state->hash] = *source; in SyncTable() 112 *dest = state->dict[state->hash]; /* Guess correct */ in decompress() 116 state->dict[state->hash] = *source; /* Guess wrong */ in decompress() 138 memset(state->dict, '\0', sizeof state->dict); in Pred1ResetInput() 147 memset(state->dict, '\0', sizeof state->dict); in Pred1ResetOutput()
|
| /NextBSD/lib/liblaunch/ |
| HD | liblaunch.c | 369 launch_data_dict_get_count(launch_data_t dict) in launch_data_dict_get_count() argument 371 return dict->_array_cnt / 2; in launch_data_dict_get_count() 375 launch_data_dict_insert(launch_data_t dict, launch_data_t what, const char *key) in launch_data_dict_insert() argument 382 for (i = 0; i < dict->_array_cnt; i += 2) { in launch_data_dict_insert() 383 if (!strcasecmp(key, dict->_array[i]->string)) { in launch_data_dict_insert() 384 launch_data_array_set_index(dict, thekey, i); in launch_data_dict_insert() 385 launch_data_array_set_index(dict, what, i + 1); in launch_data_dict_insert() 389 launch_data_array_set_index(dict, thekey, i); in launch_data_dict_insert() 390 launch_data_array_set_index(dict, what, i + 1); in launch_data_dict_insert() 395 launch_data_dict_lookup(launch_data_t dict, const char *key) in launch_data_dict_lookup() argument [all …]
|
| /NextBSD/cddl/contrib/opensolaris/lib/pyzfs/common/ |
| HD | allow.py | 56 self.sets = dict() 57 self.local = dict() 58 self.descend = dict() 59 self.ld = dict() 141 setperms = dict(((p, None) for p in perms if p[0] == "@")) 142 baseperms = dict(((canonicalized_perm(p), None) 148 d = dict() 204 perms_subcmd = dict( 226 perms_other = dict( 329 p = dict()
|
| HD | ioctl.c | 315 PyObject *dict, *file; in py_set_fsacl() local 320 &PyDict_Type, &dict)) in py_set_fsacl() 323 nvl = dict2nvl(dict); in py_set_fsacl() 375 PyObject *dict, *file; in py_userspace_many() local 389 dict = PyDict_New(); in py_userspace_many() 412 PyDict_SetItem(dict, pykey, pyval); in py_userspace_many() 424 Py_DECREF(dict); in py_userspace_many() 429 return (dict); in py_userspace_many()
|
| /NextBSD/usr.bin/xpc-tests/json-client/ |
| HD | xpc-json-client.c | 37 xpc_object_t arr, dict; in to_xpc() local 63 dict = xpc_dictionary_create(NULL, NULL, 0); in to_xpc() 65 xpc_dictionary_set_value(dict, key, to_xpc(val)); in to_xpc() 68 return dict; in to_xpc()
|
| /NextBSD/contrib/groff/src/roff/troff/ |
| HD | dictionary.cpp | 124 dictionary_iterator::dictionary_iterator(dictionary &d) : dict(&d), i(0) in dictionary_iterator() 130 for (; i < dict->size; i++) in get() 131 if (dict->table[i].v) { in get() 132 *sp = dict->table[i].s; in get() 133 *vp = dict->table[i].v; in get()
|
| /NextBSD/sys/boot/ficl/ |
| HD | dict.c | 297 return pDict->here - pDict->dict; in dictCellsUsed() 397 pDict->dict = ficlMalloc(nAlloc); in dictCreateHashed() 398 assert(pDict->dict); in dictCreateHashed() 446 pDict->here = pDict->dict; in dictEmpty() 548 return ((p >= (void *) &pDict->dict) in dictIncludes() 549 && (p < (void *)(&pDict->dict + pDict->size)) in dictIncludes() 857 dp->dict = ficlMalloc( dictIncrease.u * sizeof (CELL) ); in dictCheckThreshold() 858 assert(dp->dict); in dictCheckThreshold() 859 dp->here = dp->dict; in dictCheckThreshold()
|
| /NextBSD/contrib/subversion/ |
| HD | gen-make.py | 227 self.dict = {} 230 if opt in self.dict: 232 self.list[self.dict[opt]] = (opt, val) 234 self.dict[opt] = len(self.list)
|