Home
last modified time | relevance | path

Searched full:wc (Results 1 – 25 of 618) sorted by relevance

12345678910>>...25

/third_party/libuv/test/
Dtest-condvar.c45 void worker_config_init(worker_config* wc, in worker_config_init() argument
50 memset(wc, 0, sizeof(*wc)); in worker_config_init()
53 wc->signal_cond = signal_f; in worker_config_init()
54 wc->wait_cond = wait_f; in worker_config_init()
55 wc->use_broadcast = use_broadcast; in worker_config_init()
58 ASSERT(0 == uv_sem_init(&wc->sem_waiting, 0)); in worker_config_init()
59 ASSERT(0 == uv_sem_init(&wc->sem_signaled, 0)); in worker_config_init()
60 ASSERT(0 == uv_cond_init(&wc->cond)); in worker_config_init()
61 ASSERT(0 == uv_mutex_init(&wc->mutex)); in worker_config_init()
64 void worker_config_destroy(worker_config* wc) { in worker_config_destroy() argument
[all …]
Dtest-barrier.c49 worker_config wc; in TEST_IMPL() local
51 memset(&wc, 0, sizeof(wc)); in TEST_IMPL()
53 ASSERT(0 == uv_barrier_init(&wc.barrier, 2)); in TEST_IMPL()
54 ASSERT(0 == uv_thread_create(&thread, worker, &wc)); in TEST_IMPL()
57 wc.main_barrier_wait_rval = uv_barrier_wait(&wc.barrier); in TEST_IMPL()
60 uv_barrier_destroy(&wc.barrier); in TEST_IMPL()
62 ASSERT(1 == (wc.main_barrier_wait_rval ^ wc.worker_barrier_wait_rval)); in TEST_IMPL()
70 worker_config wc; in TEST_IMPL() local
72 memset(&wc, 0, sizeof(wc)); in TEST_IMPL()
73 wc.delay = 100; in TEST_IMPL()
[all …]
Dtest-semaphore.c52 worker_config wc; in TEST_IMPL() local
54 memset(&wc, 0, sizeof(wc)); in TEST_IMPL()
56 ASSERT(0 == uv_sem_init(&wc.sem, 0)); in TEST_IMPL()
57 ASSERT(0 == uv_mutex_init(&wc.mutex)); in TEST_IMPL()
58 ASSERT(0 == uv_thread_create(&thread, worker, &wc)); in TEST_IMPL()
61 uv_mutex_lock(&wc.mutex); in TEST_IMPL()
62 ASSERT(wc.posted == 1); in TEST_IMPL()
63 uv_sem_wait(&wc.sem); /* should not block */ in TEST_IMPL()
64 uv_mutex_unlock(&wc.mutex); /* ergo, it should be ok to unlock after wait */ in TEST_IMPL()
67 uv_mutex_destroy(&wc.mutex); in TEST_IMPL()
[all …]
/third_party/ffmpeg/libavformat/
Dwvdec.c80 WVContext *wc = ctx->priv_data; in wv_read_block_header() local
86 wc->pos = avio_tell(pb); in wv_read_block_header()
89 if (wc->apetag_start && wc->pos >= wc->apetag_start) in wv_read_block_header()
92 ret = avio_read(pb, wc->block_header, WV_HEADER_SIZE); in wv_read_block_header()
96 ret = ff_wv_parse_header(&wc->header, wc->block_header); in wv_read_block_header()
102 if (wc->header.version < 0x402 || wc->header.version > 0x410) { in wv_read_block_header()
104 wc->header.version); in wv_read_block_header()
110 if (!wc->header.samples) in wv_read_block_header()
113 flags = wc->header.flags; in wv_read_block_header()
119 wc->multichannel = !(wc->header.initial && wc->header.final); in wv_read_block_header()
[all …]
Dwebm_chunk.c52 WebMChunkContext *wc = s->priv_data; in webm_chunk_init() local
63 if (!wc->header_filename) { in webm_chunk_init()
68 wc->prev_pts = AV_NOPTS_VALUE; in webm_chunk_init()
74 ret = avformat_alloc_output_context2(&wc->avf, oformat, NULL, NULL); in webm_chunk_init()
77 oc = wc->avf; in webm_chunk_init()
79 ff_format_set_url(oc, wc->header_filename); in webm_chunk_init()
80 wc->header_filename = NULL; in webm_chunk_init()
105 if (wc->http_method) in webm_chunk_init()
106 if ((ret = av_dict_set(&dict, "method", wc->http_method, 0)) < 0) in webm_chunk_init()
116 wc->chunk_duration, 0)) < 0 || in webm_chunk_init()
[all …]
/third_party/musl/src/multibyte/
Dwcrtomb.c6 size_t wcrtomb(char *restrict s, wchar_t wc, mbstate_t *restrict st) in wcrtomb() argument
9 if ((unsigned)wc < 0x80) { in wcrtomb()
10 *s = wc; in wcrtomb()
13 if (!IS_CODEUNIT(wc)) { in wcrtomb()
17 *s = wc; in wcrtomb()
19 } else if ((unsigned)wc < 0x800) { in wcrtomb()
20 *s++ = 0xc0 | (wc>>6); in wcrtomb()
21 *s = 0x80 | (wc&0x3f); in wcrtomb()
23 } else if ((unsigned)wc < 0xd800 || (unsigned)wc-0xe000 < 0x2000) { in wcrtomb()
24 *s++ = 0xe0 | (wc>>12); in wcrtomb()
[all …]
/third_party/musl/porting/liteos_a/kernel/src/multibyte/
Dwcrtomb.c6 size_t wcrtomb(char *restrict s, wchar_t wc, mbstate_t *restrict st) in wcrtomb() argument
9 if ((unsigned)wc < 0x80) { in wcrtomb()
10 *s = wc; in wcrtomb()
13 if (!IS_CODEUNIT(wc)) { in wcrtomb()
17 *s = wc; in wcrtomb()
19 } else if ((unsigned)wc < 0x800) { in wcrtomb()
20 *s++ = 0xc0 | (wc>>6); in wcrtomb()
21 *s = 0x80 | (wc&0x3f); in wcrtomb()
23 } else if ((unsigned)wc < 0xd800 || (unsigned)wc-0xe000 < 0x2000) { in wcrtomb()
24 *s++ = 0xe0 | (wc>>12); in wcrtomb()
[all …]
/third_party/musl/porting/uniproton/kernel/src/multibyte/
Dwcrtomb.c6 size_t wcrtomb(char *restrict s, wchar_t wc, mbstate_t *restrict st) in wcrtomb() argument
9 if ((unsigned)wc < 0x80) { in wcrtomb()
10 *s = wc; in wcrtomb()
13 if (!IS_CODEUNIT(wc)) { in wcrtomb()
17 *s = wc; in wcrtomb()
19 } else if ((unsigned)wc < 0x800) { in wcrtomb()
20 *s++ = 0xc0 | (wc>>6); in wcrtomb()
21 *s = 0x80 | (wc&0x3f); in wcrtomb()
23 } else if ((unsigned)wc < 0xd800 || (unsigned)wc-0xe000 < 0x2000) { in wcrtomb()
24 *s++ = 0xe0 | (wc>>12); in wcrtomb()
[all …]
/third_party/musl/porting/liteos_m/kernel/src/multibyte/
Dwcrtomb.c6 size_t wcrtomb(char *restrict s, wchar_t wc, mbstate_t *restrict st) in wcrtomb() argument
9 if ((unsigned)wc < 0x80) { in wcrtomb()
10 *s = wc; in wcrtomb()
13 if (!IS_CODEUNIT(wc)) { in wcrtomb()
17 *s = wc; in wcrtomb()
19 } else if ((unsigned)wc < 0x800) { in wcrtomb()
20 *s++ = 0xc0 | (wc>>6); in wcrtomb()
21 *s = 0x80 | (wc&0x3f); in wcrtomb()
23 } else if ((unsigned)wc < 0xd800 || (unsigned)wc-0xe000 < 0x2000) { in wcrtomb()
24 *s++ = 0xe0 | (wc>>12); in wcrtomb()
[all …]
/third_party/musl/libc-test/src/functional/
Dmbc.c28 wchar_t wc, wcs[32]; in main() local
46 T(mbrtowc(&wc, "\x80", 1, &st), -1, "failed to catch error"); in main()
47 T(mbrtowc(&wc, "\xc0", 1, &st), -1, "failed to catch illegal initial"); in main()
49 T(mbrtowc(&wc, "\xc0\x80", 2, &st), -1, "aliasing nul"); in main()
50 T(mbrtowc(&wc, "\xc0\xaf", 2, &st), -1, "aliasing slash"); in main()
51 T(mbrtowc(&wc, "\xe0\x80\xaf", 3, &st), -1, "aliasing slash"); in main()
52 T(mbrtowc(&wc, "\xf0\x80\x80\xaf", 4, &st), -1, "aliasing slash"); in main()
53 T(mbrtowc(&wc, "\xf8\x80\x80\x80\xaf", 5, &st), -1, "aliasing slash"); in main()
54 T(mbrtowc(&wc, "\xfc\x80\x80\x80\x80\xaf", 6, &st), -1, "aliasing slash"); in main()
55 T(mbrtowc(&wc, "\xe0\x82\x80", 3, &st), -1, "aliasing U+0080"); in main()
[all …]
/third_party/mesa3d/src/glx/windows/
Dwindowsgl.c79 WNDCLASSEX wc; in windows_create_context() local
80 wc.cbSize = sizeof(WNDCLASSEX); in windows_create_context()
81 wc.style = CS_HREDRAW | CS_VREDRAW; in windows_create_context()
82 wc.lpfnWndProc = DefWindowProc; in windows_create_context()
83 wc.cbClsExtra = 0; in windows_create_context()
84 wc.cbWndExtra = 0; in windows_create_context()
85 wc.hInstance = GetModuleHandle(NULL); in windows_create_context()
86 wc.hIcon = 0; in windows_create_context()
87 wc.hCursor = 0; in windows_create_context()
88 wc.hbrBackground = (HBRUSH) GetStockObject(WHITE_BRUSH); in windows_create_context()
[all …]
/third_party/musl/src/ctype/
Dwcwidth.c11 int wcwidth(wchar_t wc) in wcwidth() argument
13 if (wc < 0xffU) in wcwidth()
14 return (wc+1 & 0x7f) >= 0x21 ? 1 : wc ? -1 : 0; in wcwidth()
15 if ((wc & 0xfffeffffU) < 0xfffe) { in wcwidth()
16 if ((table[table[wc>>8]*32+((wc&255)>>3)]>>(wc&7))&1) in wcwidth()
18 if ((wtable[wtable[wc>>8]*32+((wc&255)>>3)]>>(wc&7))&1) in wcwidth()
22 if ((wc & 0xfffe) == 0xfffe) in wcwidth()
24 if (wc-0x20000U < 0x20000) in wcwidth()
26 if (wc == 0xe0001 || wc-0xe0020U < 0x5f || wc-0xe0100U < 0xef) in wcwidth()
Diswctype.c17 int iswctype(wint_t wc, wctype_t type) in iswctype() argument
21 return iswalnum(wc); in iswctype()
23 return iswalpha(wc); in iswctype()
25 return iswblank(wc); in iswctype()
27 return iswcntrl(wc); in iswctype()
29 return iswdigit(wc); in iswctype()
31 return iswgraph(wc); in iswctype()
33 return iswlower(wc); in iswctype()
35 return iswprint(wc); in iswctype()
37 return iswpunct(wc); in iswctype()
[all …]
Diswprint.c10 int iswprint(wint_t wc) in iswprint() argument
12 if (wc < 0xffU) in iswprint()
13 return (wc+1 & 0x7f) >= 0x21; in iswprint()
14 if (wc < 0x2028U || wc-0x202aU < 0xd800-0x202a || wc-0xe000U < 0xfff9-0xe000) in iswprint()
16 if (wc-0xfffcU > 0x10ffff-0xfffc || (wc&0xfffe)==0xfffe) in iswprint()
/third_party/toybox/tests/
Dwc.test14 testing "wc" "wc >/dev/null && echo yes" "yes\n" "" ""
15 testing "empty file" "wc" " 0 0 0\n" "" ""
16 testing "standard input" "wc" " 1 3 5\n" "" "a b\nc"
17 testing "standard input -c" "wc -c" "5\n" "" "a b\nc"
18 testing "standard input -cl" "wc -cl" " 1 5\n" "" "a b\nc"
19 testing "-c" "wc -c file1" "26 file1\n" "" ""
20 testing "-l" "wc -l file1" "4 file1\n" "" ""
21 testing "-w" "wc -w file1" "5 file1\n" "" ""
22 testing "one file" "wc file1" "4 5 26 file1\n" "" ""
23 testing "multiple files" "wc input - file1" \
[all …]
Difconfig.test6 # Commands used: grep, grep -i, ip link, ip tuntap, wc -l
45 "ifconfig dummy0 down && ifconfig | grep dummy | wc -l" \
51 "ifconfig dummy0 up && ifconfig dummy0 | grep dummy | wc -l" \
58 "ifconfig dummy0 10.240.240.240 && ifconfig dummy0 | grep 10\.240\.240\.240 | wc -l" \
65 "ifconfig dummy0 netmask 255.255.240.0 && ifconfig dummy0 | grep 255\.255\.240\.0 | wc -l" \
72 "ifconfig dummy0 broadcast 10.240.240.255 && ifconfig dummy0 | grep 10\.240\.240\.255 | wc -l" \
79 "ifconfig dummy0 default && ifconfig dummy0 | grep 10\.240\.240\.240 | wc -l" \
86 "ifconfig dummy0 mtu 1269 && ifconfig dummy0 | grep 1269 | wc -l" \
93 "ifconfig dummy0 add ::2 2>&1 | grep No\ buffer\ space\ available | wc -l" \
100 "ifconfig dummy0 mtu 2000 && ifconfig dummy0 | grep 2000 | wc -l" \
[all …]
/third_party/curl/lib/
Dwildcard.c41 CURLcode Curl_wildcard_init(struct WildcardData *wc) in Curl_wildcard_init() argument
43 Curl_llist_init(&wc->filelist, fileinfo_dtor); in Curl_wildcard_init()
44 wc->state = CURLWC_INIT; in Curl_wildcard_init()
49 void Curl_wildcard_dtor(struct WildcardData *wc) in Curl_wildcard_dtor() argument
51 if(!wc) in Curl_wildcard_dtor()
54 if(wc->dtor) { in Curl_wildcard_dtor()
55 wc->dtor(wc->protdata); in Curl_wildcard_dtor()
56 wc->dtor = ZERO_NULL; in Curl_wildcard_dtor()
57 wc->protdata = NULL; in Curl_wildcard_dtor()
59 DEBUGASSERT(wc->protdata == NULL); in Curl_wildcard_dtor()
[all …]
/third_party/boost/libs/spirit/classic/test/
Descape_char_parser_tests.cpp133 wchar_t wc; in main() local
134 BOOST_TEST(parse(L"a", wcep[assign_a(wc)]).hit); in main()
135 BOOST_TEST(wc == L'a'); in main()
136 BOOST_TEST(parse(L"\\b", wcep[assign_a(wc)]).full); in main()
137 BOOST_TEST(wc == L'\b'); in main()
138 BOOST_TEST(parse(L"\\t", wcep[assign_a(wc)]).full); in main()
139 BOOST_TEST(wc == L'\t'); in main()
140 BOOST_TEST(parse(L"\\n", wcep[assign_a(wc)]).full); in main()
141 BOOST_TEST(wc == L'\n'); in main()
142 BOOST_TEST(parse(L"\\f", wcep[assign_a(wc)]).full); in main()
[all …]
/third_party/libsnd/src/
Dwindows.c51 psf->file.path.wc [0] = 0 ; in sf_wchar_open()
70 wcsncpy (psf->file.path.wc, wpath, ARRAY_LEN (psf->file.path.wc)) ; in copy_filename()
71 psf->file.path.wc [ARRAY_LEN (psf->file.path.wc) - 1] = 0 ; in copy_filename()
77 wcsncpy (psf->file.name.wc, cwcptr, ARRAY_LEN (psf->file.name.wc)) ; in copy_filename()
78 psf->file.name.wc [ARRAY_LEN (psf->file.name.wc) - 1] = 0 ; in copy_filename()
81 wcsncpy (psf->file.dir.wc, wpath, ARRAY_LEN (psf->file.dir.wc)) ; in copy_filename()
82 psf->file.dir.wc [ARRAY_LEN (psf->file.dir.wc) - 1] = 0 ; in copy_filename()
84 if ((wcptr = wcsrchr (psf->file.dir.wc, '/')) || (wcptr = wcsrchr (psf->file.dir.wc, '\\'))) in copy_filename()
87 psf->file.dir.wc [0] = 0 ; in copy_filename()
/third_party/flutter/skia/third_party/externals/sdl/test/
Dtestnativew32.c46 WNDCLASS wc; in CreateWindowNative() local
48 wc.style = 0; in CreateWindowNative()
49 wc.lpfnWndProc = WndProc; in CreateWindowNative()
50 wc.cbClsExtra = 0; in CreateWindowNative()
51 wc.cbWndExtra = 0; in CreateWindowNative()
52 wc.hInstance = GetModuleHandle(NULL); in CreateWindowNative()
53 wc.hIcon = LoadIcon(NULL, IDI_APPLICATION); in CreateWindowNative()
54 wc.hCursor = LoadCursor(NULL, IDC_ARROW); in CreateWindowNative()
55 wc.hbrBackground = (HBRUSH) (COLOR_WINDOW + 1); in CreateWindowNative()
56 wc.lpszMenuName = NULL; in CreateWindowNative()
[all …]
/third_party/mesa3d/src/gallium/targets/graw-gdi/
Dgraw_gdi.c69 WNDCLASSEX wc; in graw_create_window_and_screen() local
86 memset(&wc, 0, sizeof wc); in graw_create_window_and_screen()
87 wc.cbSize = sizeof wc; in graw_create_window_and_screen()
88 wc.style = CS_OWNDC | CS_HREDRAW | CS_VREDRAW; in graw_create_window_and_screen()
89 wc.lpfnWndProc = window_proc; in graw_create_window_and_screen()
90 wc.lpszClassName = TEXT("graw-gdi"); in graw_create_window_and_screen()
91 wc.hInstance = GetModuleHandle(NULL); in graw_create_window_and_screen()
92 wc.hIcon = LoadIcon(NULL, IDI_APPLICATION); in graw_create_window_and_screen()
93 wc.hCursor = LoadCursor(NULL, IDC_ARROW); in graw_create_window_and_screen()
94 wc.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1); in graw_create_window_and_screen()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/multibyte/
Dmbsnrtowcs.c33 wchar_t wc[ARRY_MAX]; in mbsnrtowcs_0100() local
34 memset(wc, 0, sizeof(wc)); in mbsnrtowcs_0100()
36 size_t result = mbsnrtowcs(wc, &test, 2, ARRY_MAX, NULL); in mbsnrtowcs_0100()
39 EXPECT_EQ("mbsnrtowcs_0100", wc[0], L'm'); in mbsnrtowcs_0100()
40 EXPECT_EQ("mbsnrtowcs_0100", wc[1], L'u'); in mbsnrtowcs_0100()
52 wchar_t wc[ARRY_MAX]; in mbsnrtowcs_0200() local
53 memset(wc, 0, sizeof(wc)); in mbsnrtowcs_0200()
54 size_t result = mbsnrtowcs(wc, &test, 11, ARRY_MAX, NULL); in mbsnrtowcs_0200()
/third_party/musl/libc-test/src/functionalext/supplement/locale/
Dwcsxfrm.c23 wchar_t *wc = L"ABCD"; in wcsxfrm_0100() local
25 size_t result = wcsxfrm(src, wc, 5); in wcsxfrm_0100()
26 if (result != wcslen(wc)) { in wcsxfrm_0100()
27 t_error("%s wcsxfrm get result is %d are not %d\n", __func__, result, wcslen(wc)); in wcsxfrm_0100()
29 if (wcscmp(src, wc) != 0) { in wcsxfrm_0100()
30 t_error("%s wcsxfrm get is %ls are not %ls\n", __func__, src, wc); in wcsxfrm_0100()
36 wchar_t *wc = L"\u00e5\ue011"; in wcsxfrm_0200() local
38 size_t result = wcsxfrm(src, wc, 1); in wcsxfrm_0200()
39 if (result != wcslen(wc)) { in wcsxfrm_0200()
40 t_error("%s wcsxfrm get result is %d are not %d\n", __func__, result, wcslen(wc)); in wcsxfrm_0200()
/third_party/musl/libc-test/src/regression/
Dfgetwc-buffering.c20 wint_t wc; in main() local
21 wc = fgetwc(stdin); in main()
22 A(wc == 'x'); in main()
26 wc = fgetwc(stdin); in main()
27 if (wc != 0x800) in main()
28 t_error("wanted 0x800, got 0x%x\n", (unsigned)wc); in main()
31 wc = fgetwc(stdin); in main()
32 if (wc != WEOF) in main()
33 t_error("wanted WEOF, got 0x%x\n", (unsigned)wc); in main()
/third_party/toybox/lib/
Dlinestack.c92 int (*escout)(FILE *out, int cols, int wc)) in crunch_str() argument
96 unsigned wc; in crunch_str() local
99 if ((bytes = utf8towc(&wc, end, 4))>0 && (col = wcwidth(wc))>=0) { in crunch_str()
100 if (!escmore || wc>255 || !strchr(escmore, wc)) { in crunch_str()
110 wc = *end; in crunch_str()
115 if ((col = escout(out, col, wc))<0) break; in crunch_str()
125 int crunch_escape(FILE *out, int cols, int wc) in crunch_escape() argument
130 if (wc<' ') rc = sprintf(buf, "^%c", '@'+wc); in crunch_escape()
131 else if (wc<256) rc = sprintf(buf, "<%02X>", wc); in crunch_escape()
132 else rc = sprintf(buf, "U+%04X", wc); in crunch_escape()
[all …]

12345678910>>...25