| /freebsd/contrib/libcbor/test/ |
| H A D | cbor_stream_decode_test.c | 12 static void test_no_data(void** _state _CBOR_UNUSED) { in test_no_data() 17 static void test_uint8_embedded_decoding(void** _state _CBOR_UNUSED) { in test_uint8_embedded_decoding() 36 static void test_uint8_decoding(void** _state _CBOR_UNUSED) { in test_uint8_decoding() 47 static void test_uint16_decoding(void** _state _CBOR_UNUSED) { in test_uint16_decoding() 55 static void test_uint32_decoding(void** _state _CBOR_UNUSED) { in test_uint32_decoding() 64 static void test_uint64_decoding(void** _state _CBOR_UNUSED) { in test_uint64_decoding() 72 static void test_negint8_embedded_decoding(void** _state _CBOR_UNUSED) { in test_negint8_embedded_decoding() 91 static void test_negint8_decoding(void** _state _CBOR_UNUSED) { in test_negint8_decoding() 102 static void test_negint16_decoding(void** _state _CBOR_UNUSED) { in test_negint16_decoding() 110 static void test_negint32_decoding(void** _state _CBOR_UNUSED) { in test_negint32_decoding() [all …]
|
| H A D | cbor_serialize_test.c | 26 static void test_serialize_uint8_embed(void** _state _CBOR_UNUSED) { in test_serialize_uint8_embed() 35 static void test_serialize_uint8(void** _state _CBOR_UNUSED) { in test_serialize_uint8() 44 static void test_serialize_uint16(void** _state _CBOR_UNUSED) { in test_serialize_uint16() 53 static void test_serialize_uint32(void** _state _CBOR_UNUSED) { in test_serialize_uint32() 63 static void test_serialize_uint64(void** _state _CBOR_UNUSED) { in test_serialize_uint64() 75 static void test_serialize_negint8_embed(void** _state _CBOR_UNUSED) { in test_serialize_negint8_embed() 85 static void test_serialize_negint8(void** _state _CBOR_UNUSED) { in test_serialize_negint8() 95 static void test_serialize_negint16(void** _state _CBOR_UNUSED) { in test_serialize_negint16() 105 static void test_serialize_negint32(void** _state _CBOR_UNUSED) { in test_serialize_negint32() 116 static void test_serialize_negint64(void** _state _CBOR_UNUSED) { in test_serialize_negint64() [all …]
|
| H A D | copy_test.c | 14 static void test_uints(void** _state _CBOR_UNUSED) { in test_uints() 36 static void test_negints(void** _state _CBOR_UNUSED) { in test_negints() 58 static void test_def_bytestring(void** _state _CBOR_UNUSED) { in test_def_bytestring() 66 static void test_indef_bytestring(void** _state _CBOR_UNUSED) { in test_indef_bytestring() 81 static void test_def_string(void** _state _CBOR_UNUSED) { in test_def_string() 89 static void test_indef_string(void** _state _CBOR_UNUSED) { in test_indef_string() 103 static void test_def_array(void** _state _CBOR_UNUSED) { in test_def_array() 113 static void test_indef_array(void** _state _CBOR_UNUSED) { in test_indef_array() 123 static void test_def_map(void** _state _CBOR_UNUSED) { in test_def_map() 136 static void test_indef_map(void** _state _CBOR_UNUSED) { in test_indef_map() [all …]
|
| H A D | pretty_printer_test.c | 35 static void test_uint(void** _state _CBOR_UNUSED) { in test_uint() 41 static void test_negint(void** _state _CBOR_UNUSED) { in test_negint() 48 static void test_definite_bytestring(void** _state _CBOR_UNUSED) { in test_definite_bytestring() 57 static void test_indefinite_bytestring(void** _state _CBOR_UNUSED) { in test_indefinite_bytestring() 74 static void test_definite_string(void** _state _CBOR_UNUSED) { in test_definite_string() 84 static void test_indefinite_string(void** _state _CBOR_UNUSED) { in test_indefinite_string() 101 static void test_multibyte_string(void** _state _CBOR_UNUSED) { in test_multibyte_string() 112 static void test_definite_array(void** _state _CBOR_UNUSED) { in test_definite_array() 123 static void test_indefinite_array(void** _state _CBOR_UNUSED) { in test_indefinite_array() 134 static void test_definite_map(void** _state _CBOR_UNUSED) { in test_definite_map() [all …]
|
| H A D | bytestring_test.c | 136 static void test_empty_bs(void** _state _CBOR_UNUSED) { in test_empty_bs() 147 static void test_embedded_bs(void** _state _CBOR_UNUSED) { in test_embedded_bs() 160 static void test_notenough_data(void** _state _CBOR_UNUSED) { in test_notenough_data() 166 static void test_short_bs1(void** _state _CBOR_UNUSED) { in test_short_bs1() 179 static void test_short_bs2(void** _state _CBOR_UNUSED) { in test_short_bs2() 191 static void test_half_bs(void** _state _CBOR_UNUSED) { in test_half_bs() 203 static void test_int_bs(void** _state _CBOR_UNUSED) { in test_int_bs() 215 static void test_long_bs(void** _state _CBOR_UNUSED) { in test_long_bs() 229 static void test_zero_indef(void** _state _CBOR_UNUSED) { in test_zero_indef() 245 static void test_short_indef(void** _state _CBOR_UNUSED) { in test_short_indef() [all …]
|
| H A D | tag_test.c | 17 static void test_refcounting(void** _state _CBOR_UNUSED) { in test_refcounting() 30 static void test_embedded_tag(void** _state _CBOR_UNUSED) { in test_embedded_tag() 42 static void test_int8_tag(void** _state _CBOR_UNUSED) { in test_int8_tag() 54 static void test_int16_tag(void** _state _CBOR_UNUSED) { in test_int16_tag() 66 static void test_int32_tag(void** _state _CBOR_UNUSED) { in test_int32_tag() 79 static void test_int64_tag(void** _state _CBOR_UNUSED) { in test_int64_tag() 91 static void test_nested_tag(void** _state _CBOR_UNUSED) { in test_nested_tag() 105 static void test_all_tag_values_supported(void** _state _CBOR_UNUSED) { in test_all_tag_values_supported() 127 static void test_build_tag(void** _state _CBOR_UNUSED) { in test_build_tag() 137 static void test_build_tag_failure(void** _state _CBOR_UNUSED) { in test_build_tag_failure() [all …]
|
| H A D | string_test.c | 18 static void test_empty_string(void** _state _CBOR_UNUSED) { in test_empty_string() 34 static void test_short_string(void** _state _CBOR_UNUSED) { in test_short_string() 52 static void test_short_multibyte_string(void** _state _CBOR_UNUSED) { in test_short_multibyte_string() 81 static void test_int8_string(void** _state _CBOR_UNUSED) { in test_int8_string() 115 static void test_int16_string(void** _state _CBOR_UNUSED) { in test_int16_string() 148 static void test_int32_string(void** _state _CBOR_UNUSED) { in test_int32_string() 182 static void test_int64_string(void** _state _CBOR_UNUSED) { in test_int64_string() 204 static void test_short_indef_string(void** _state _CBOR_UNUSED) { in test_short_indef_string() 220 static void test_invalid_utf(void** _state _CBOR_UNUSED) { in test_invalid_utf() 236 static void test_inline_creation(void** _state _CBOR_UNUSED) { in test_inline_creation() [all …]
|
| H A D | bad_inputs_test.c | 19 static void test_1(void** _state _CBOR_UNUSED) { in test_1() 27 static void test_2(void** _state _CBOR_UNUSED) { in test_2() 35 static void test_3(void** _state _CBOR_UNUSED) { in test_3() 44 static void test_4(void** _state _CBOR_UNUSED) { in test_4() 52 static void test_5(void** _state _CBOR_UNUSED) { in test_5() 62 static void test_6(void** _state _CBOR_UNUSED) { in test_6() 74 static void test_7(void** _state _CBOR_UNUSED) { in test_7() 87 static void test_8(void** _state _CBOR_UNUSED) { in test_8() 95 static void test_9(void** _state _CBOR_UNUSED) { in test_9()
|
| H A D | uint_test.c | 23 static void test_very_short_int(void** _state _CBOR_UNUSED) { in test_very_short_int() 37 static void test_incomplete_data(void** _state _CBOR_UNUSED) { in test_incomplete_data() 43 static void test_short_int(void** _state _CBOR_UNUSED) { in test_short_int() 57 static void test_half_int(void** _state _CBOR_UNUSED) { in test_half_int() 71 static void test_int(void** _state _CBOR_UNUSED) { in test_int() 85 static void test_long_int(void** _state _CBOR_UNUSED) { in test_long_int() 99 static void test_refcounting(void** _state _CBOR_UNUSED) { in test_refcounting() 109 static void test_empty_input(void** _state _CBOR_UNUSED) { in test_empty_input() 115 static void test_inline_creation(void** _state _CBOR_UNUSED) { in test_inline_creation() 133 static void test_int_creation(void** _state _CBOR_UNUSED) { in test_int_creation()
|
| H A D | negint_encoders_test.c | 13 static void test_embedded_negint8(void** _state _CBOR_UNUSED) { in test_embedded_negint8() 18 static void test_negint8(void** _state _CBOR_UNUSED) { in test_negint8() 24 static void test_negint16(void** _state _CBOR_UNUSED) { in test_negint16() 30 static void test_negint32(void** _state _CBOR_UNUSED) { in test_negint32() 37 static void test_negint64(void** _state _CBOR_UNUSED) { in test_negint64() 48 static void test_unspecified(void** _state _CBOR_UNUSED) { in test_unspecified()
|
| H A D | uint_encoders_test.c | 13 static void test_embedded_uint8(void** _state _CBOR_UNUSED) { in test_embedded_uint8() 18 static void test_uint8(void** _state _CBOR_UNUSED) { in test_uint8() 24 static void test_uint16(void** _state _CBOR_UNUSED) { in test_uint16() 30 static void test_uint32(void** _state _CBOR_UNUSED) { in test_uint32() 37 static void test_uint64(void** _state _CBOR_UNUSED) { in test_uint64() 47 static void test_unspecified(void** _state _CBOR_UNUSED) { in test_unspecified()
|
| H A D | float_ctrl_encoders_test.c | 14 static void test_bools(void** _state _CBOR_UNUSED) { in test_bools() 21 static void test_null(void** _state _CBOR_UNUSED) { in test_null() 26 static void test_undef(void** _state _CBOR_UNUSED) { in test_undef() 31 static void test_break(void** _state _CBOR_UNUSED) { in test_break() 54 static void test_half(void** _state _CBOR_UNUSED) { in test_half() 120 static void test_half_special(void** _state _CBOR_UNUSED) { in test_half_special() 130 static void test_half_infinity(void** _state _CBOR_UNUSED) { in test_half_infinity() 140 static void test_float(void** _state _CBOR_UNUSED) { in test_float() 162 static void test_double(void** _state _CBOR_UNUSED) { in test_double()
|
| H A D | map_test.c | 25 static void test_empty_map(void** _state _CBOR_UNUSED) { in test_empty_map() 40 static void test_simple_map(void** _state _CBOR_UNUSED) { in test_simple_map() 60 static void test_indef_simple_map(void** _state _CBOR_UNUSED) { in test_indef_simple_map() 87 static void test_def_nested_map(void** _state _CBOR_UNUSED) { in test_def_nested_map() 111 static void test_streamed_key_map(void** _state _CBOR_UNUSED) { in test_streamed_key_map() 133 static void test_streamed_kv_map(void** _state _CBOR_UNUSED) { in test_streamed_kv_map() 160 static void test_streamed_streamed_kv_map(void** _state _CBOR_UNUSED) { in test_streamed_streamed_kv_map() 182 static void test_map_add_full(void** _state _CBOR_UNUSED) { in test_map_add_full() 194 static void test_map_add_too_big_to_realloc(void** _state _CBOR_UNUSED) { in test_map_add_too_big_to_realloc() 213 static void test_map_creation(void** _state _CBOR_UNUSED) { in test_map_creation() [all …]
|
| H A D | array_test.c | 17 static void test_empty_array(void** _state _CBOR_UNUSED) { in test_empty_array() 30 static void test_simple_array(void** _state _CBOR_UNUSED) { in test_simple_array() 56 static void test_nested_arrays(void** _state _CBOR_UNUSED) { in test_nested_arrays() 77 static void test_indef_arrays(void** _state _CBOR_UNUSED) { in test_indef_arrays() 97 static void test_nested_indef_arrays(void** _state _CBOR_UNUSED) { in test_nested_indef_arrays() 116 static void test_array_replace(void** _state _CBOR_UNUSED) { in test_array_replace() 150 static void test_array_push_overflow(void** _state _CBOR_UNUSED) { in test_array_push_overflow() 168 static void test_array_creation(void** _state _CBOR_UNUSED) { in test_array_creation() 176 static void test_array_push(void** _state _CBOR_UNUSED) { in test_array_push() 194 static void test_indef_array_decode(void** _state _CBOR_UNUSED) { in test_indef_array_decode()
|
| H A D | float_ctrl_test.c | 27 static void test_float2(void** _state _CBOR_UNUSED) { in test_float2() 40 static void test_float4(void** _state _CBOR_UNUSED) { in test_float4() 54 static void test_float8(void** _state _CBOR_UNUSED) { in test_float8() 69 static void test_null(void** _state _CBOR_UNUSED) { in test_null() 81 static void test_undef(void** _state _CBOR_UNUSED) { in test_undef() 93 static void test_bool(void** _state _CBOR_UNUSED) { in test_bool() 121 static void test_float_ctrl_creation(void** _state _CBOR_UNUSED) { in test_float_ctrl_creation() 136 static void test_ctrl_on_float(void** _state _CBOR_UNUSED) { in test_ctrl_on_float()
|
| H A D | callbacks_test.c | 23 static void test_default_callbacks(void** _state _CBOR_UNUSED) { in test_default_callbacks() 34 void** _state _CBOR_UNUSED) { in test_builder_byte_string_callback_append() 75 void** _state _CBOR_UNUSED) { in test_builder_byte_string_callback_append_alloc_failure() 108 void** _state _CBOR_UNUSED) { in test_builder_byte_string_callback_append_item_alloc_failure() 143 void** _state _CBOR_UNUSED) { in test_builder_byte_string_callback_append_parent_alloc_failure() 178 static void test_builder_string_callback_append(void** _state _CBOR_UNUSED) { in test_builder_string_callback_append() 217 void** _state _CBOR_UNUSED) { in test_builder_string_callback_append_alloc_failure() 250 void** _state _CBOR_UNUSED) { in test_builder_string_callback_append_item_alloc_failure() 284 void** _state _CBOR_UNUSED) { in test_builder_string_callback_append_parent_alloc_failure() 317 static void test_append_array_failure(void** _state _CBOR_UNUSED) { in test_append_array_failure() [all …]
|
| H A D | negint_test.c | 22 static void test_very_short_int(void** _state _CBOR_UNUSED) { in test_very_short_int() 36 static void test_short_int(void** _state _CBOR_UNUSED) { in test_short_int() 50 static void test_half_int(void** _state _CBOR_UNUSED) { in test_half_int() 64 static void test_int(void** _state _CBOR_UNUSED) { in test_int() 78 static void test_long_int(void** _state _CBOR_UNUSED) { in test_long_int() 92 static void test_int_creation(void** _state _CBOR_UNUSED) { in test_int_creation()
|
| H A D | array_encoders_test.c | 13 static void test_embedded_array_start(void** _state _CBOR_UNUSED) { in test_embedded_array_start() 18 static void test_array_start(void** _state _CBOR_UNUSED) { in test_array_start() 24 static void test_indef_array_start(void** _state _CBOR_UNUSED) { in test_indef_array_start() 30 static void test_indef_array_encoding(void** _state _CBOR_UNUSED) { in test_indef_array_encoding()
|
| H A D | memory_utils_test.c | 12 static void test_safe_multiply(void** _state _CBOR_UNUSED) { in test_safe_multiply() 20 static void test_safe_add(void** _state _CBOR_UNUSED) { in test_safe_add() 31 static void test_safe_signalling_add(void** _state _CBOR_UNUSED) { in test_safe_signalling_add() 39 static void test_realloc_multiple(void** _state _CBOR_UNUSED) { in test_realloc_multiple()
|
| H A D | string_encoders_test.c | 13 static void test_embedded_string_start(void** _state _CBOR_UNUSED) { in test_embedded_string_start() 18 static void test_string_start(void** _state _CBOR_UNUSED) { in test_string_start() 24 static void test_indef_string_start(void** _state _CBOR_UNUSED) { in test_indef_string_start()
|
| /freebsd/contrib/wpa/src/utils/ |
| H A D | state_machine.h | 47 if (!global || sm->machine ## _state != machine ## _ ## state) { \ 52 sm->machine ## _state = machine ## _ ## state; 65 #define SM_ENTRY_M(machine, _state, data) \ argument 66 if (!global || sm->data ## _ ## state != machine ## _ ## _state) { \ 69 #machine " entering state " #_state); \ 71 sm->data ## _ ## state = machine ## _ ## _state; 83 #define SM_ENTRY_MA(machine, _state, data) \ argument 84 if (!global || sm->data ## _ ## state != machine ## _ ## _state) { \ 87 #machine " entering state " #_state, \ 90 sm->data ## _ ## state = machine ## _ ## _state;
|
| /freebsd/contrib/lutok/ |
| H A D | test_utils.hpp | 94 lutok::state& _state; member in __anondfd28d250111::stack_balance_checker 112 _state(state_), in stack_balance_checker() 114 _old_count(_state.get_top()) in stack_balance_checker() 117 _state.push_integer(987654321); in stack_balance_checker() 127 if (!_state.is_number(-1) || _state.to_integer(-1) != 987654321) in ~stack_balance_checker() 129 _state.pop(1); in ~stack_balance_checker() 132 unsigned int new_count = _state.get_top(); in ~stack_balance_checker()
|
| /freebsd/contrib/kyua/engine/ |
| H A D | kyuafile.cpp | 116 lutok::state _state; member in __anonb2e4cfda0111::parser 190 lutok::stack_cleaner cleaner(_state); in parser() 192 _state.push_cxx_function(lua_syntax); in parser() 193 _state.set_global("syntax"); in parser() 195 *_state.new_userdata< parser* >() = this; in parser() 196 _state.set_global("_parser"); in parser() 198 _state.push_cxx_function(lua_current_kyuafile); in parser() 199 _state.set_global("current_kyuafile"); in parser() 201 *_state.new_userdata< const config::tree* >() = &user_config; in parser() 202 *_state.new_userdata< scheduler::scheduler_handle* >() = in parser() [all …]
|
| /freebsd/contrib/kyua/utils/config/ |
| H A D | parser.cpp | 61 lutok::state _state; member 98 config::redirect(_state, _tree); in syntax_callback() 146 lutok::stack_cleaner cleaner(_pimpl->_state); in parser() 148 _pimpl->_state.push_cxx_function(lua_syntax); in parser() 149 _pimpl->_state.set_global("syntax"); in parser() 150 *_pimpl->_state.new_userdata< config::parser::impl* >() = _pimpl.get(); in parser() 151 _pimpl->_state.set_global("_config_parser"); in parser() 174 lutok::do_file(_pimpl->_state, file.str(), 0, 0, 0); in parse()
|
| /freebsd/sys/dev/iwi/ |
| H A D | if_iwivar.h | 227 #define IWI_STATE_BEGIN(_sc, _state) do { \ argument 230 _sc->fw_state = _state; \ 232 DPRINTF(("enter %s state\n", iwi_fw_states[_state])); \ 235 #define IWI_STATE_END(_sc, _state) do { \ argument 236 if (_sc->fw_state == _state) \ 237 DPRINTF(("exit %s state\n", iwi_fw_states[_state])); \ 240 iwi_fw_states[_state], iwi_fw_states[_sc->fw_state])); \
|