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

1234567891011>>

/haiku/src/apps/serialconnect/libvterm/src/
H A Dpen.c36 static void lookup_colour_ansi(const VTermState *state, long index, VTermColor *col) argument
39 *col = state->colors[index];
43 static void lookup_colour_palette(const VTermState *state, long index, VTermColor *col) argument
47 lookup_colour_ansi(state, index, col);
67 static int lookup_colour(const VTermState *state, int palette, const long args[], int argcount, VTermColor *col, int *index) argument
84 lookup_colour_palette(state, argcount ? CSI_ARG_OR(args[0], -1) : -1, col);
96 static void setpenattr(VTermState *state, VTermAttr attr, VTermValueType type, VTermValue *val) argument
105 if(state->callbacks && state->callbacks->setpenattr)
106 (*state
109 setpenattr_bool(VTermState *state, VTermAttr attr, int boolean) argument
115 setpenattr_int(VTermState *state, VTermAttr attr, int number) argument
121 setpenattr_col(VTermState *state, VTermAttr attr, VTermColor color) argument
127 set_pen_col_ansi(VTermState *state, VTermAttr attr, long col) argument
136 vterm_state_newpen(VTermState *state) argument
147 vterm_state_resetpen(VTermState *state) argument
163 vterm_state_savepen(VTermState *state, int save) argument
183 vterm_state_get_default_colors(const VTermState *state, VTermColor *default_fg, VTermColor *default_bg) argument
189 vterm_state_get_palette_color(const VTermState *state, int index, VTermColor *col) argument
194 vterm_state_set_default_colors(VTermState *state, const VTermColor *default_fg, const VTermColor *default_bg) argument
200 vterm_state_set_palette_color(VTermState *state, int index, const VTermColor *col) argument
206 vterm_state_set_bold_highbright(VTermState *state, int bold_is_highbright) argument
211 vterm_state_setpen(VTermState *state, const long args[], int argcount) argument
373 vterm_state_getpen(VTermState *state, long args[], int argcount) argument
424 vterm_state_get_penattr(const VTermState *state, VTermAttr attr, VTermValue *val) argument
[all...]
H A Dstate.c20 static void putglyph(VTermState *state, const uint32_t chars[], int width, VTermPos pos) argument
25 .protected_cell = state->protected_cell,
26 .dwl = state->lineinfo[pos.row].doublewidth,
27 .dhl = state->lineinfo[pos.row].doubleheight,
30 if(state->callbacks && state->callbacks->putglyph)
31 if((*state->callbacks->putglyph)(&info, pos, state->cbdata))
37 static void updatecursor(VTermState *state, VTermPos *oldpos, int cancel_phantom) argument
39 if(state
50 erase(VTermState *state, VTermRect rect, int selective) argument
59 VTermState *state = vterm_allocator_malloc(vt, sizeof(VTermState)); local
73 vterm_state_free(VTermState *state) argument
81 scroll(VTermState *state, VTermRect rect, int downward, int rightward) argument
109 linefeed(VTermState *state) argument
125 grow_combine_buffer(VTermState *state) argument
138 set_col_tabstop(VTermState *state, int col) argument
144 clear_col_tabstop(VTermState *state, int col) argument
150 is_col_tabstop(VTermState *state, int col) argument
156 tab(VTermState *state, int count, int direction) argument
177 set_lineinfo(VTermState *state, int row, int force, int dwl, int dhl) argument
203 VTermState *state = user; local
353 VTermState *state = user; local
437 output_mouse(VTermState *state, int code, int pressed, int modifiers, int col, int row) argument
488 VTermState *state = data; local
527 settermprop_bool(VTermState *state, VTermProp prop, int v) argument
533 settermprop_int(VTermState *state, VTermProp prop, int v) argument
539 settermprop_string(VTermState *state, VTermProp prop, const char *str, size_t len) argument
550 savecursor(VTermState *state, int save) argument
577 VTermState *state = user; local
716 set_mode(VTermState *state, int num, int val) argument
733 set_dec_mode(VTermState *state, int num, int val) argument
834 request_dec_mode(VTermState *state, int num) argument
905 VTermState *state = user; local
1437 VTermState *state = user; local
1459 request_status_string(VTermState *state, const char *command, size_t cmdlen) argument
1511 VTermState *state = user; local
1523 VTermState *state = user; local
1606 VTermState *state; local
1629 vterm_state_reset(VTermState *state, int hard) argument
1695 vterm_state_get_cursorpos(const VTermState *state, VTermPos *cursorpos) argument
1700 vterm_state_set_callbacks(VTermState *state, const VTermStateCallbacks *callbacks, void *user) argument
1715 vterm_state_set_termprop(VTermState *state, VTermProp prop, VTermValue *val) argument
1757 vterm_state_get_lineinfo(const VTermState *state, int row) argument
[all...]
H A Dvterm_internal.h58 #define SCROLLREGION_BOTTOM(state) ((state)->scrollregion_bottom > -1 ? (state)->scrollregion_bottom : (state)->rows)
60 #define SCROLLREGION_LEFT(state) ((state)->mode.leftrightmargin ? (state)->scrollregion_left : 0)
62 #define SCROLLREGION_RIGHT(state) ((state)->mode.leftrightmargin && (state)
160 VTermState *state; member in struct:VTerm
[all...]
/haiku/src/tests/system/libroot/posix/
H A Dsigsetjmp_test.c12 jump_to_top_level(jmp_buf *state, int value) argument
14 siglongjmp(*state, value);
21 jmp_buf state; local
24 if ((value = sigsetjmp(state, 1)) != 0) {
28 jump_to_top_level(&state, 42);
H A Dsetjmp_test.c14 jmp_buf state; local
17 if ((value = setjmp(state)) != 0) {
21 longjmp(state, 42);
H A Dgnulib-test-mbrtowc.c31 mbstate_t state; local
45 memset (&state, '\0', sizeof (mbstate_t));
47 ret = mbrtowc (&wc, "x", 0, &state);
52 assert (mbsinit (&state));
58 memset (&state, '\0', sizeof (mbstate_t));
60 ret = mbrtowc (&wc, "", 1, &state);
63 assert (mbsinit (&state));
64 ret = mbrtowc (NULL, "", 1, &state);
66 assert (mbsinit (&state));
75 memset (&state, '\
[all...]
H A Dgnulib-test-mbsnrtowcs.c33 mbstate_t state; local
48 memset(&state, '\0', sizeof(mbstate_t));
51 ret = mbsnrtowcs(NULL, &src, 1, 0, &state);
53 assert(mbsinit (&state));
56 ret = mbsnrtowcs(NULL, &src, 1, 1, &state);
58 assert(mbsinit (&state));
62 ret = mbsnrtowcs(&wc, &src, 1, 0, &state);
65 assert(mbsinit (&state));
69 ret = mbsnrtowcs(&wc, &src, 1, 1, &state);
72 assert(mbsinit (&state));
[all...]
H A Dgnulib-test-mbsrtowcs.c32 mbstate_t state; local
45 memset(&state, '\0', sizeof(mbstate_t));
54 ret = mbrtowc(&wc, input, 1, &state);
57 assert(mbsinit (&state));
61 ret = mbrtowc(&wc, input + 1, 1, &state);
64 assert(mbsinit (&state));
68 temp_state = state;
72 assert(mbsinit (&state));
75 ret = mbsrtowcs(buf, &src, BUFSIZE, &state);
85 assert(mbsinit (&state));
[all...]
/haiku/src/kits/debugger/dwarf/
H A DLineNumberProgram.cpp73 LineNumberProgram::GetInitialState(State& state) const
78 _SetToInitial(state);
79 state.dataReader.SetTo(fProgram, fProgramSize, fAddressSize, fIsBigEndian);
84 LineNumberProgram::GetNextRow(State& state) const
86 if (state.isSequenceEnd)
87 _SetToInitial(state);
89 DataReader& dataReader = state.dataReader;
97 state.address += (adjustedOpcode / fLineRange)
99 state.line += adjustedOpcode % fLineRange + fLineBase;
100 state
[all...]
H A DDwarfFileLoadingState.cpp17 state(DWARF_FILE_LOADING_STATE_INITIAL)
/haiku/src/kits/debugger/model/
H A DReturnValueInfo.cpp21 ReturnValueInfo::ReturnValueInfo(target_addr_t address, CpuState* state) argument
25 fState(state)
27 state->AcquireReference();
39 ReturnValueInfo::SetTo(target_addr_t address, CpuState* state) argument
46 fState = state;
/haiku/src/system/libroot/os/arch/m68k/
H A Dcompatibility.c15 int _kset_cpu_state_(int cpuNum, int state);
40 _kset_cpu_state_(int cpuNum, int state) argument
42 return state ? B_OK : B_ERROR;
/haiku/src/system/libroot/os/arch/ppc/
H A Dcompatibility.c15 int _kset_cpu_state_(int cpuNum, int state);
40 _kset_cpu_state_(int cpuNum, int state) argument
42 return state ? B_OK : B_ERROR;
/haiku/src/libs/iconv/
H A Dhz.h27 * The state is 1 in GB mode, 0 in ASCII mode.
33 state_t state = conv->istate; local
42 if (state == 0) {
45 conv->istate = state;
49 state = 1;
63 state = 0;
74 if (state == 0) {
76 conv->istate = state;
86 conv->istate = state;
91 conv->istate = state;
98 state_t state = conv->ostate; local
149 state_t state = conv->ostate; local
[all...]
H A Diso2022_jp.h30 * The state can be one of the following values.
39 state_t state = conv->istate; local
49 state = STATE_ASCII;
56 state = STATE_JISX0201ROMAN;
67 state = STATE_JISX0208;
79 switch (state) {
86 conv->istate = state;
96 conv->istate = state;
108 conv->istate = state;
116 conv->istate = state;
123 state_t state = conv->ostate; local
197 state_t state = conv->ostate; local
[all...]
H A Diso2022_jp3.h30 * The state is composed of one of the following values
40 * In the ISO-2022-JP-3 to UCS-4 direction, the state also holds the last
54 state_t state = conv->istate; local
64 state = STATE_ASCII;
71 state = STATE_JISX0201ROMAN;
78 state = STATE_JISX0201KATAKANA;
89 state = STATE_JISX0208;
99 state = STATE_JISX02131;
106 state = STATE_JISX02132;
119 switch (state) {
266 state_t state = conv->ostate; local
496 state_t state = conv->ostate; local
[all...]
H A Dutf7.h57 * The state is structured as follows:
71 state_t state = conv->istate; local
73 if (state & 3)
80 /* Here (state & 3) == 0 */
87 conv->istate = state;
95 conv->istate = state;
99 state = 1;
110 state_t base64state = state;
136 state = 0;
181 conv->istate = state;
208 state_t state = conv->ostate; local
323 state_t state = conv->ostate; local
[all...]
/haiku/src/tools/hvif2png/
H A Dhvif2png.cpp69 h2p_close_state(h2p_state* state) argument
71 if (state->hvif_buffer.buffer != NULL)
72 free(state->hvif_buffer.buffer);
74 if (state->in != NULL) {
75 if (state->in != stdin)
76 fclose(state->in);
77 state->in = NULL;
80 if (state->out != NULL) {
81 if (state->out != stdout)
82 fclose(state
93 h2p_open_streams(h2p_state* state) argument
324 h2p_state state; local
[all...]
/haiku/src/apps/terminal/
H A DTerminalLine.h22 uint32 state; member in struct:Attributes
28 Attributes() : state(0), foreground(0), background(0), underline(0), underlineStyle(0) {}
32 state = 0;
39 inline bool IsWidth() const { return (state & A_WIDTH) == A_WIDTH; }
40 inline bool IsBold() const { return (state & BOLD) == BOLD; }
41 inline bool IsUnder() const { return (state & UNDERLINE) == UNDERLINE; }
42 inline bool IsInverse() const { return (state & INVERSE) == INVERSE; }
43 inline bool IsMouse() const { return (state & MOUSE) == MOUSE; }
44 inline bool IsForeSet() const { return (state & FORESET) == FORESET; }
45 inline bool IsBackSet() const { return (state
[all...]
/haiku/src/kits/debugger/debug_info/
H A DDwarfImageDebugInfoLoadingState.cpp26 return fState.state == DWARF_FILE_LOADING_STATE_USER_INPUT_NEEDED;
H A DImageDebugLoadingStateHandler.h21 SpecificImageDebugInfoLoadingState* state)
25 SpecificImageDebugInfoLoadingState* state,
H A DImageDebugInfoLoadingState.cpp34 SpecificImageDebugInfoLoadingState* state)
36 fSpecificInfoLoadingState.SetTo(state, true);
33 SetSpecificDebugInfoLoadingState( SpecificImageDebugInfoLoadingState* state) argument
/haiku/src/kits/debugger/jobs/
H A DGetCPUStateJob.cpp44 CpuState* state; local
45 status_t error = fDebuggerInterface->GetCpuState(fThread->ID(), state);
48 BReference<CpuState> reference(state, true);
53 fThread->SetCpuState(state);
/haiku/src/system/libroot/posix/pthread/
H A Dpthread_once.cpp22 STATIC_ASSERT(((pthread_once_t)ONCE_FLAG_INIT).state == ((pthread_once_t)PTHREAD_ONCE_INIT).state);
23 STATIC_ASSERT(((pthread_once_t)PTHREAD_ONCE_INIT).state == STATE_UNINITIALIZED);
36 // reset the control state to uninitialized
37 int32 value = atomic_get_and_set((int32*)&onceControl->state,
53 // The state goes through at most four states:
54 // STATE_UNINITIALIZED: The initial uninitialized state.
66 int32 value = atomic_test_and_set((int32*)&onceControl->state,
78 value = atomic_get_and_set((int32*)&onceControl->state,
94 value = atomic_test_and_set((int32*)&onceControl->state,
[all...]
/haiku/src/libs/compat/openbsd_wlan/crypto/
H A Darc4.c24 u_int8_t t = ctx->state[x]; \
25 ctx->state[x] = ctx->state[y]; \
26 ctx->state[y] = t; \
37 ctx->state[i] = i;
39 y = (key[x] + ctx->state[i] + y) & (RC4STATE - 1);
54 ctx->y = (ctx->state[ctx->x] + ctx->y) & (RC4STATE - 1);
56 dst[i] = src[i] ^ ctx->state[
57 (ctx->state[ctx->x] + ctx->state[ct
[all...]

Completed in 256 milliseconds

1234567891011>>