Searched refs:state (Results 1 - 25 of 2142) sorted by relevance

1234567891011>>

/freebsd-head/contrib/lutok/examples/
H A Dhello.cpp34 #include <lutok/state.ipp>
43 // Initializes a new Lua state. Every Lua state is independent from each
45 lutok::state state; local
47 // Loads the standard library into the Lua state. Among many other
49 state.open_base();
52 // and then proceeds to execute it within the Lua state.
53 state.get_global("print");
54 state
[all...]
H A Draii.cpp30 /// Demonstrates how RAII helps in keeping the Lua state consistent.
40 /// developer in maintaining the Lua state consistent at all times in a
50 #include <lutok/state.ipp>
58 /// \pre The top of the Lua stack in 'state' references a table.
60 /// \param state The Lua state.
63 print_table_field(lutok::state& state, const std::string& field) argument
65 assert(state.is_table(-1));
74 lutok::stack_cleaner cleaner(state);
113 lutok::state state; local
[all...]
/freebsd-head/usr.bin/getconf/
H A Dfake-gperf.awk4 state = 0;
7 /^%{$/ && state == 0 {
8 state = 1;
11 /^%}$/ && state == 1 {
12 state = 0;
15 state == 1 { print; next; }
16 /^struct/ && state == 0 {
21 /^%%$/ && state == 0 {
22 state = 2;
35 /^%%$/ && state
[all...]
/freebsd-head/sys/contrib/zstd/zlibWrapper/
H A Dgzread.c29 state.state->fd, and update state.state->eof, state.state->err, and state.state->msg as appropriate.
32 local int gz_load(state, buf, len, have)
33 gz_statep state;
392 gz_statep state; local
430 gz_statep state; local
476 gz_statep state; local
511 gz_statep state; local
575 gz_statep state; local
634 gz_statep state; local
655 gz_statep state; local
[all...]
H A Dgzlib.c77 /* Reset gzip file state */
78 local void gz_reset(state)
79 gz_statep state;
81 state.state->x.have = 0; /* no output data available */
82 if (state.state->mode == GZ_READ) { /* for reading ... */
83 state.state->eof = 0; /* not at end of file */
84 state
99 gz_statep state; local
323 gz_statep state; local
349 gz_statep state; local
376 gz_statep state; local
461 gz_statep state; local
489 gz_statep state; local
521 gz_statep state; local
539 gz_statep state; local
559 gz_statep state; local
[all...]
H A Dgzwrite.c19 /* Initialize state for writing a gzip file. Mark initialization by setting
20 state.state->size to non-zero. Return -1 on a memory allocation failure, or 0 on
22 local int gz_init(state)
23 gz_statep state;
26 z_streamp strm = &(state.state->strm);
29 state.state->in = (unsigned char*)malloc(state
256 gz_statep state; local
286 gz_statep state; local
316 gz_statep state; local
364 gz_statep state; local
390 gz_statep state; local
480 gz_statep state; local
563 gz_statep state; local
596 gz_statep state; local
637 gz_statep state; local
[all...]
/freebsd-head/contrib/kyua/utils/config/
H A Dlua_module.cpp32 #include <lutok/state.ipp>
45 /// Gets the tree singleton stored in the Lua state.
47 /// \param state The Lua state. The registry must contain a key named
50 /// \return A reference to the tree associated with the Lua state.
54 get_global_tree(lutok::state& state) argument
56 lutok::stack_cleaner cleaner(state);
58 state.push_value(lutok::registry_index);
59 state
83 get_tree_key(lutok::state& state, const int table_index, const int field_index) argument
113 new_table_for_key(lutok::state& state, const std::string& tree_key) argument
153 redirect_newindex(lutok::state& state) argument
194 redirect_index(lutok::state& state) argument
260 redirect(lutok::state& state, tree& out_tree) argument
[all...]
/freebsd-head/contrib/bearssl/src/symcipher/
H A Daes_small_enc.c30 add_round_key(unsigned *state, const uint32_t *skeys) argument
38 state[i + 0] ^= (unsigned)(k >> 24);
39 state[i + 1] ^= (unsigned)(k >> 16) & 0xFF;
40 state[i + 2] ^= (unsigned)(k >> 8) & 0xFF;
41 state[i + 3] ^= (unsigned)k & 0xFF;
46 sub_bytes(unsigned *state) argument
51 state[i] = S[state[i]];
56 shift_rows(unsigned *state) argument
60 tmp = state[
81 mix_columns(unsigned *state) argument
109 unsigned state[16]; local
[all...]
H A Dchacha20_ct.c48 uint32_t state[16]; local
53 memcpy(&state[0], CW, sizeof CW);
54 memcpy(&state[4], kw, sizeof kw);
55 state[12] = cc;
56 memcpy(&state[13], ivw, sizeof ivw);
60 state[a] += state[b]; \
61 state[d] ^= state[a]; \
62 state[
[all...]
/freebsd-head/contrib/lutok/
H A Dstack_cleaner_test.cpp37 lutok::state state; local
39 lutok::stack_cleaner cleaner(state);
40 ATF_REQUIRE_EQ(0, state.get_top());
42 ATF_REQUIRE_EQ(0, state.get_top());
49 lutok::state state; local
51 lutok::stack_cleaner cleaner(state);
52 state.push_integer(15);
53 ATF_REQUIRE_EQ(1, state
64 lutok::state state; local
87 lutok::state state; local
[all...]
H A Doperations_test.cpp36 #include "state.ipp"
49 /// \param state The Lua state.
53 hook_add(lutok::state& state) argument
55 state.push_integer(state.to_integer(-1) + state.to_integer(-2));
66 /// \param state The Lua state
70 hook_multiply(lutok::state& state) argument
83 lutok::state state; local
97 lutok::state state; local
111 lutok::state state; local
135 lutok::state state; local
156 lutok::state state; local
173 lutok::state state; local
186 lutok::state state; local
198 lutok::state state; local
212 lutok::state state; local
226 lutok::state state; local
240 lutok::state state; local
258 lutok::state state; local
271 lutok::state state; local
280 lutok::state state; local
292 lutok::state state; local
302 lutok::state state; local
317 lutok::state state; local
328 lutok::state state; local
341 lutok::state state; local
[all...]
H A Dstate_test.cpp29 #include "state.ipp"
44 // A note about the lutok::state tests.
46 // The methods of lutok::state are, in general, thin wrappers around the
53 // Lastly, for every test case that stresses a single lutok::state method, we
54 // only call that method directly. All other Lua state manipulation operations
64 /// \param state The Lua state.
69 is_available(lutok::state& state, const char* symbol) argument
71 luaL_loadstring(raw(state), (st
88 check_modules(lutok::state& state, const std::string& expected) argument
111 lutok::state state = lutok::state_c_gate::connect(raw_state); local
129 cxx_multiply_closure(lutok::state& state) argument
154 cxx_divide(lutok::state& state) argument
179 raise_long_error(lutok::state& state) argument
192 lutok::state state; local
202 lutok::state state; local
213 lutok::state state; local
223 lutok::state state; local
237 lutok::state state; local
252 lutok::state state; local
265 lutok::state state; local
284 lutok::state state; local
295 lutok::state state; local
309 lutok::state state; local
321 lutok::state state; local
335 lutok::state state; local
348 lutok::state state; local
365 lutok::state state; local
373 lutok::state state; local
386 lutok::state state; local
394 lutok::state state; local
409 lutok::state state; local
417 lutok::state state; local
430 lutok::state state; local
438 lutok::state state; local
451 lutok::state state; local
459 lutok::state state; local
476 lutok::state state; local
484 lutok::state state; local
499 lutok::state state; local
507 lutok::state state; local
525 lutok::state state; local
541 lutok::state state; local
549 lutok::state state; local
558 lutok::state state; local
569 lutok::state state; local
577 lutok::state state; local
588 lutok::state state; local
600 lutok::state state; local
614 lutok::state state; local
644 lutok::state state; local
654 lutok::state state; local
669 lutok::state state; local
679 lutok::state state; local
689 lutok::state state; local
706 lutok::state state; local
715 lutok::state state; local
729 lutok::state state; local
743 lutok::state state; local
758 lutok::state state; local
773 lutok::state state; local
787 lutok::state state; local
800 lutok::state state; local
813 lutok::state state; local
830 lutok::state state; local
845 lutok::state state; local
860 lutok::state state; local
880 lutok::state state; local
896 lutok::state state; local
915 lutok::state state; local
936 lutok::state state; local
953 lutok::state state; local
966 lutok::state state; local
990 lutok::state state; local
1018 lutok::state state; local
1030 lutok::state state; local
1042 lutok::state state; local
1053 lutok::state state; local
1065 lutok::state state; local
1082 lutok::state state; local
[all...]
H A Dc_gate.hpp30 /// Provides direct access to the C state of the Lua wrappers.
40 class state;
43 /// Gateway to the raw C state of Lua.
45 /// This class provides a mechanism to muck with the internals of the state
53 /// any other way, so you can end up corrupting the Lua state and later get
56 /// The C++ state that this class wraps.
57 state& _state;
60 state_c_gate(state&);
63 static state connect(lua_State*);
H A Ddebug_test.cpp34 #include "state.ipp"
41 lutok::state state; local
42 ATF_REQUIRE(luaL_dostring(raw(state), "\n\nfunction hello() end\n"
45 debug.get_info(state, ">S");
53 lutok::state state; local
54 ATF_REQUIRE(luaL_dostring(raw(state), "error('Hello')") == 1);
56 debug.get_stack(state, 0);
57 lua_pop(raw(state),
[all...]
/freebsd-head/sys/dev/syscons/fonts/
H A Dcursor.awk24 state == 0 && /^STARTCHAR/ {
27 state = 1
29 state >= 1 && state < 7 || state >= 7 + 16 && state < 7 + 16 + 7 {
30 state++
33 state >= 7 && state < 7 + 16 || state >
[all...]
/freebsd-head/contrib/gdb/gdb/config/i386/
H A Dnm-i386gnu.h30 #define THREAD_STATE_SET_TRACED(state) \
31 ((struct i386_thread_state *) (state))->efl |= 0x100
32 #define THREAD_STATE_CLEAR_TRACED(state) \
33 ((((struct i386_thread_state *) (state))->efl &= ~0x100), 1)
/freebsd-head/contrib/kyua/utils/fs/
H A Dlua_module.cpp42 #include <lutok/state.ipp>
57 /// \param state The Lua state.
63 /// \throw std::runtime_error If the module's state has been corrupted.
65 qualify_path(lutok::state& state, const fs::path& path) argument
67 lutok::stack_cleaner cleaner(state);
72 state.get_global("_fs_start_dir");
73 if (!state.is_string(-1))
75 "state corrupte
92 to_path(lutok::state& state, const int index) argument
109 lua_fs_basename(lutok::state& state) argument
129 lua_fs_dirname(lutok::state& state) argument
149 lua_fs_exists(lutok::state& state) argument
173 files_iterator(lutok::state& state) argument
201 files_gc(lutok::state& state) argument
228 lua_fs_files(lutok::state& state) argument
266 lua_fs_is_absolute(lutok::state& state) argument
288 lua_fs_join(lutok::state& state) argument
[all...]
H A Dlua_module_test.cpp33 #include <lutok/state.hpp>
46 lutok::state state; local
47 stack_balance_checker checker(state);
48 fs::open_fs(state);
49 lutok::do_string(state, "return fs.basename", 0, 1, 0);
50 ATF_REQUIRE(state.is_function(-1));
51 lutok::do_string(state, "return fs.dirname", 0, 1, 0);
52 ATF_REQUIRE(state.is_function(-1));
53 lutok::do_string(state, "retur
62 lutok::state state; local
75 lutok::state state; local
90 lutok::state state; local
103 lutok::state state; local
118 lutok::state state; local
141 lutok::state state; local
156 lutok::state state; local
190 lutok::state state; local
212 lutok::state state; local
236 lutok::state state; local
261 lutok::state state; local
274 lutok::state state; local
285 lutok::state state; local
301 lutok::state state; local
316 lutok::state state; local
328 lutok::state state; local
[all...]
/freebsd-head/contrib/libarchive/libarchive/
H A Darchive_write_add_filter_compress.c149 struct private_data *state; local
155 state = (struct private_data *)calloc(1, sizeof(*state));
156 if (state == NULL) {
171 state->compressed_buffer_size = bs;
172 state->compressed = malloc(state->compressed_buffer_size);
174 if (state->compressed == NULL) {
177 free(state);
185 state
229 struct private_data *state = f->data; local
248 struct private_data *state = f->data; local
314 struct private_data *state = f->data; local
335 struct private_data *state = (struct private_data *)f->data; local
423 struct private_data *state = (struct private_data *)f->data; local
442 struct private_data *state = (struct private_data *)f->data; local
[all...]
/freebsd-head/sys/contrib/zlib/
H A Dgzlib.c77 /* Reset gzip file state */
78 local void gz_reset(state)
79 gz_statep state;
81 state->x.have = 0; /* no output data available */
82 if (state->mode == GZ_READ) { /* for reading ... */
83 state->eof = 0; /* not at end of file */
84 state->past = 0; /* have not read past end yet */
85 state->how = LOOK; /* look for gzip header */
87 state->seek = 0; /* no seek request pending */
88 gz_error(state, Z_O
99 gz_statep state; local
323 gz_statep state; local
349 gz_statep state; local
376 gz_statep state; local
461 gz_statep state; local
489 gz_statep state; local
521 gz_statep state; local
539 gz_statep state; local
559 gz_statep state; local
[all...]
H A Dgzwrite.c17 /* Initialize state for writing a gzip file. Mark initialization by setting
18 state->size to non-zero. Return -1 on a memory allocation failure, or 0 on
20 local int gz_init(state)
21 gz_statep state;
24 z_streamp strm = &(state->strm);
27 state->in = (unsigned char *)malloc(state->want << 1);
28 if (state->in == NULL) {
29 gz_error(state, Z_MEM_ERROR, "out of memory");
33 /* only need output buffer and deflate state i
254 gz_statep state; local
284 gz_statep state; local
313 gz_statep state; local
361 gz_statep state; local
387 gz_statep state; local
477 gz_statep state; local
560 gz_statep state; local
593 gz_statep state; local
634 gz_statep state; local
[all...]
H A Dgzread.c21 state->fd, and update state->eof, state->err, and state->msg as appropriate.
24 local int gz_load(state, buf, len, have)
25 gz_statep state;
38 ret = read(state->fd, buf + *have, get);
44 gz_error(state, Z_ERRNO, zstrerror());
48 state->eof = 1;
59 local int gz_avail(state)
383 gz_statep state; local
421 gz_statep state; local
455 gz_statep state; local
490 gz_statep state; local
554 gz_statep state; local
613 gz_statep state; local
634 gz_statep state; local
[all...]
/freebsd-head/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_data_sprom_subr.c53 static int bhnd_sprom_opcode_reset(bhnd_sprom_opcode_state *state);
55 static int bhnd_sprom_opcode_set_type(bhnd_sprom_opcode_state *state,
58 static int bhnd_sprom_opcode_set_var(bhnd_sprom_opcode_state *state,
60 static int bhnd_sprom_opcode_clear_var(bhnd_sprom_opcode_state *state);
62 static int bhnd_sprom_opcode_flush_bind(bhnd_sprom_opcode_state *state);
64 static int bhnd_sprom_opcode_read_opval32(bhnd_sprom_opcode_state *state,
67 static int bhnd_sprom_opcode_step(bhnd_sprom_opcode_state *state,
75 * Initialize SPROM opcode evaluation state.
77 * @param state The opcode state t
86 bhnd_sprom_opcode_init(bhnd_sprom_opcode_state *state, const struct bhnd_sprom_layout *layout) argument
161 bhnd_sprom_opcode_reset(bhnd_sprom_opcode_state *state) argument
181 bhnd_sprom_opcode_fini(bhnd_sprom_opcode_state *state) argument
238 bhnd_sprom_opcode_index_find(bhnd_sprom_opcode_state *state, const char *name) argument
267 bhnd_sprom_opcode_index_next(bhnd_sprom_opcode_state *state, bhnd_sprom_opcode_idx_entry *prev) argument
303 bhnd_sprom_opcode_init_entry(bhnd_sprom_opcode_state *state, bhnd_sprom_opcode_idx_entry *entry) argument
347 bhnd_sprom_opcode_seek(bhnd_sprom_opcode_state *state, bhnd_sprom_opcode_idx_entry *entry) argument
385 bhnd_sprom_opcode_set_revs(bhnd_sprom_opcode_state *state, uint8_t start, uint8_t end) argument
422 bhnd_sprom_opcode_set_mask(bhnd_sprom_opcode_state *state, uint32_t mask) argument
444 bhnd_sprom_opcode_set_shift(bhnd_sprom_opcode_state *state, int8_t shift) argument
478 bhnd_sprom_opcode_set_bind(bhnd_sprom_opcode_state *state, uint8_t count, uint8_t skip_in, bool skip_in_negative, uint8_t skip_out) argument
558 bhnd_sprom_opcode_flush_bind(bhnd_sprom_opcode_state *state) argument
599 bhnd_sprom_opcode_set_type(bhnd_sprom_opcode_state *state, bhnd_nvram_type type) argument
660 bhnd_sprom_opcode_clear_var(bhnd_sprom_opcode_state *state) argument
690 bhnd_sprom_opcode_set_nelem(bhnd_sprom_opcode_state *state, uint8_t nelem) argument
745 bhnd_sprom_opcode_set_var(bhnd_sprom_opcode_state *state, size_t vid) argument
786 bhnd_sprom_opcode_end_var(bhnd_sprom_opcode_state *state) argument
808 bhnd_sprom_opcode_apply_scale(bhnd_sprom_opcode_state *state, uint32_t *value) argument
842 bhnd_sprom_opcode_read_opval32(bhnd_sprom_opcode_state *state, uint8_t type, uint32_t *opval) argument
897 bhnd_sprom_opcode_matches_layout_rev(bhnd_sprom_opcode_state *state) argument
917 bhnd_sprom_opcode_rewrite_opcode(bhnd_sprom_opcode_state *state, uint8_t *opcode) argument
1001 bhnd_sprom_opcode_step(bhnd_sprom_opcode_state *state, uint8_t *opcode) argument
1281 bhnd_sprom_opcode_eval_var(bhnd_sprom_opcode_state *state, bhnd_sprom_opcode_idx_entry *entry) argument
1318 bhnd_sprom_opcode_next_var(bhnd_sprom_opcode_state *state) argument
1356 bhnd_sprom_opcode_next_binding(bhnd_sprom_opcode_state *state) argument
[all...]
/freebsd-head/sys/contrib/octeon-sdk/
H A Dcvmx-coremask.c67 * This structure defines the private state maintained by coremask module.
82 } state = { variable in typeref:struct:__anon6384
104 cvmx_spinlock_lock(&state.lock);
108 if (state.s[i].coremask == 0) {
110 state.s[i].coremask = coremask;
113 if (state.s[i].coremask == coremask) {
115 target = state.s[i].exit + 1; /* wrap-around at 32b */
117 state.s[i].checkin |= cvmx_coremask_core(cvmx_get_core_num());
118 if (state.s[i].checkin == coremask) {
119 state
[all...]
/freebsd-head/lib/libthr/thread/
H A Dthr_once.c59 if (atomic_cmpset_rel_int(&once_control->state, ONCE_IN_PROGRESS,
62 atomic_store_rel_int(&once_control->state, ONCE_NEVER_DONE);
63 _thr_umtx_wake(&once_control->state, INT_MAX, 0);
70 int state; local
75 state = once_control->state;
76 if (state == ONCE_DONE) {
80 if (state == ONCE_NEVER_DONE) {
81 if (atomic_cmpset_int(&once_control->state, state,
[all...]

Completed in 111 milliseconds

1234567891011>>