Home
last modified time | relevance | path

Searched refs:peek (Results 1 – 25 of 95) sorted by relevance

1234

/openbsd/gnu/llvm/llvm/lib/CodeGen/MIRParser/
H A DMILexer.cpp105 if (C.peek() != '/' || C.peek(1) != '*') in skipMachineOperandComment()
108 while (C.peek() != '*' || C.peek(1) != '/') in skipMachineOperandComment()
141 if (isxdigit(C.peek(1)) && isxdigit(C.peek(2))) { in unescapeQuotedString()
287 if (!isalpha(C.peek()) && C.peek() != '_') in maybeLexIdentifier()
450 if (C.peek() != '%' && C.peek() != '$') in maybeLexRegister()
554 if ((C.peek() == 'e' || C.peek() == 'E') && in lexFloatingPointLiteral()
556 ((C.peek(1) == '-' || C.peek(1) == '+') && isdigit(C.peek(2))))) { in lexFloatingPointLiteral()
566 if (C.peek() != '0' || (C.peek(1) != 'x' && C.peek(1) != 'X')) in maybeLexHexadecimalLiteral()
588 if (!isdigit(C.peek()) && (C.peek() != '-' || !isdigit(C.peek(1)))) in maybeLexNumericalLiteral()
618 if (isdigit(C.peek()) || !isIdentifierChar(C.peek())) { in maybeLexExclaim()
[all …]
/openbsd/usr.bin/awk/
H A Dlex.c105 static int peek(void) in peek() function
249 if (peek() == '&') { in yylex()
254 if (peek() == '|') { in yylex()
259 if (peek() == '=') { in yylex()
269 if (peek() == '=') { in yylex()
275 if (peek() == '=') { in yylex()
281 if (peek() == '=') { in yylex()
289 if (peek() == '+') { in yylex()
296 if (peek() == '-') { in yylex()
317 if (peek() == '=') { in yylex()
[all …]
/openbsd/gnu/usr.bin/perl/dist/Thread-Queue/t/
H A D03_peek.t32 is($q->peek(3), 4, 'Peek at queue');
33 is($q->peek(-3), 9, 'Negative peek');
35 my $nada = $q->peek(20);
36 ok(! defined($nada), 'Big peek');
37 $nada = $q->peek(-20);
38 ok(! defined($nada), 'Big negative peek');
40 my $ary = $q->peek(-1);
H A D04_errs.t33 eval { $q->peek(undef); };
35 eval { $q->peek(3.3); };
37 eval { $q->peek('foo'); };
/openbsd/lib/libcurses/
H A Dfifo_defs.h49 #define peek sp->_fifopeek macro
80 (peek >= FIFO_SIZE-1) \
81 ? peek = 0 \
82 : peek++; \
85 #define cooked_key_in_fifo() ((head >= 0) && (peek != head))
86 #define raw_key_in_fifo() ((head >= 0) && (peek != tail))
/openbsd/gnu/lib/libiberty/src/
H A Dcp-demangle.c986 if (peek == 'G' || peek == 'T') in d_encoding()
1024 if (peek == '\0' || peek == 'E') in d_encoding()
1216 char peek; in d_unqualified_name() local
1230 else if (peek == 'C' || peek == 'D') in d_unqualified_name()
1258 char peek; in d_number() local
1710 char peek; in cplus_demangle_type() local
1730 if (peek == 'r' || peek == 'V' || peek == 'K') in cplus_demangle_type()
1880 char peek; in d_cv_qualifiers() local
1883 while (peek == 'r' || peek == 'V' || peek == 'K') in d_cv_qualifiers()
1969 if (peek == '\0' || peek == 'E') in d_bare_function_type()
[all …]
/openbsd/gnu/usr.bin/perl/dist/threads-shared/t/
H A Dobject.t68 sub peek
105 ok($jar->peek()->{'type'} eq $C1, 'Still have cookie');
110 ok($jar->peek()->{'type'} eq $C1, 'Still have cookie in thread');
114 ok($jar->peek()->{'type'} eq $C2, 'Added cookie in thread');
118 ok($jar->peek()->{'type'} eq $C2, 'Still have added cookie after thread');
122 ok($jar->peek()->{'type'} eq $C1, 'Cookie still in jar');
130 ok($jar->peek()->{'type'} eq $C3, 'New cookie in jar');
137 ok($jar->peek()->{'type'} eq $C3, 'Still have cookie in jar');
141 ok($jar->peek()->{'type'} eq $C3, 'Still have cookie in jar');
143 ok($jar->peek()->{'type'} eq $C3, 'Still have cookie in jar');
/openbsd/gnu/llvm/clang/lib/AST/Interp/
H A DInterpStack.h46 auto *Ptr = &peek<T>(); in pop()
59 auto *Ptr = &peek<T>(); in discard()
65 template <typename T> T &peek() const { in peek() function
66 return *reinterpret_cast<T *>(peek(aligned_size<T>())); in peek()
70 void *top() const { return Chunk ? peek(0) : nullptr; } in top()
92 void *peek(size_t Size) const;
/openbsd/lib/libcurses/base/
H A Dlib_getch.c212 int ch = (peek >= 0) ? sp->_fifo[peek] : ERR; in fifo_peek()
213 TR(TRACE_IEVENT, ("peeking at %d", peek)); in fifo_peek()
226 if (peek == head) { in fifo_pull()
228 peek = head; in fifo_pull()
358 head = peek = tail; in fifo_push()
375 tail = peek = 0; in fifo_clear()
753 peek = head; in kgetch()
772 if (peek == tail) { in kgetch()
775 head = peek; in kgetch()
791 peek = head; /* Restart interpreting later */ in kgetch()
[all …]
H A Dlib_ungetch.c57 T(("head = %d, tail = %d, peek = %d", head, tail, peek)); in NCURSES_EXPORT()
74 peek = tail; /* no raw keys */ in safe_ungetch()
/openbsd/gnu/lib/libstdc++/libstdc++/testsuite/27_io/
H A Distream_unformatted.cc63 VERIFY( is_04.peek() == ':' ); in test01()
80 VERIFY( is_04.peek() == ' ' ); in test01()
87 VERIFY( is_04.peek() == ' ' ); in test01()
94 VERIFY( is_04.peek() == 'j' ); in test01()
98 VERIFY( is_04.peek() == 'j' ); in test01()
105 VERIFY( is_04.peek() == traits_type::eof() ); in test01()
118 VERIFY( is_04.peek() == '|' ); in test01()
127 VERIFY( is_04.peek() == 'e' ); in test01()
478 while (infile.peek() == '\n') in test07()
549 if (istr.peek() != 'b') in test10()
H A Distream_extractor_char.cc66 std::istream::int_type int1 = is_02.peek(); // should be ' ' in test01()
72 int1 = is_02.peek(); // should be ' ' in test01()
89 int1 = is_02.peek(); // should be ' ' in test01()
103 int1 = is_02.peek(); // should be ' ' in test01()
H A Distream_extractor_other.cc124 VERIFY( is_04.peek() == ctraits_type::eof() ); // as failed in test01()
137 VERIFY( is_04.peek() == ctraits_type::eof() ); in test01()
/openbsd/gnu/llvm/lld/ELF/
H A DScriptParser.cpp701 while (!errorCount() && peek() != ")" && peek() != "EXCLUDE_FILE" && in readInputSectionsList()
831 StringRef value = peek(); in readSectionDirective()
910 if (peek() != ":") in readOutputSectionDescription()
945 if (peek() != "(") in readOutputSectionDescription()
954 } else if (peek() == "(") { in readOutputSectionDescription()
982 if (peek() == "=" || peek().startswith("=")) { in readOutputSectionDescription()
1020 StringRef name = next(), eq = peek(); in readProvideHidden()
1041 const StringRef op = peek(); in readAssignment()
1177 StringRef op1 = peek(); in readExpr1()
1190 StringRef op2 = peek(); in readExpr1()
[all …]
H A DScriptLexer.h28 StringRef peek();
/openbsd/usr.sbin/btrace/
H A Dbt_parse.y790 peek(void) in peek() function
848 if ((c == '/' && peek() == '/') || in skip()
850 peek() == '!')) { in skip()
861 if (c == '/' && peek() == '*') { in skip()
892 if (peek() == '=') { in yylex()
898 if (peek() == '=') { in yylex()
904 if (peek() == '=') { in yylex()
910 if (peek() == '&') { in yylex()
916 if (peek() == '|') { in yylex()
922 while (isspace(peek())) { in yylex()
[all …]
/openbsd/gnu/usr.bin/perl/cpan/Test-Simple/t/Test2/modules/API/
H A DStack.t11 ok(!$stack->peek, "Nothing to peek at");
53 is($stack->peek, $hub, "got the hub");
/openbsd/lib/libssl/
H A Dtls_content.c138 int peek) in tls_content_read_internal() argument
146 if (!peek) { in tls_content_read_internal()
/openbsd/gnu/lib/libreadline/
H A Dhistexpand.c1383 int peek = string[i + 1]; local
1385 if (peek == string[i] && peek != '$')
1387 if (peek == '<' && string[i + 2] == '-')
1394 if ((peek == '&' && (string[i] == '>' || string[i] == '<')) ||
1395 ((peek == '>') && (string[i] == '&')) ||
1396 ((peek == '(') && (string[i] == '$')))
/openbsd/usr.bin/rpcgen/
H A Drpc_parse.c130 peek(&tok);
216 peek(&tok);
479 peek(&tok);
605 peek(&tok);
H A Drpc_scan.h105 void peek(token *);
/openbsd/gnu/llvm/clang/lib/AST/
H A DCommentParser.cpp72 char peek() const { in peek() function in clang::comments::TextTokenRetokenizer
123 if (isWhitespace(peek())) in consumeWhitespace()
164 const char C = peek(); in lexWord()
198 const char C = peek(); in lexDelimitedSeq()
207 C = peek(); in lexDelimitedSeq()
/openbsd/gnu/usr.bin/gcc/gcc/cp/
H A Dspew.c744 int peek; in yylex() local
747 peek = nth_token (1)->yychar; in yylex()
748 yychr = frob_id (yychr, peek, &nth_token (0)->yylval.ttype); in yylex()
863 frob_id (yyc, peek, idp) in frob_id() argument
865 int peek;
871 if (peek == SCOPE)
877 else if (peek == '<')
/openbsd/gnu/lib/libstdc++/libstdc++/testsuite/27_io/istream_extractor_arith/
H A D02.cc57 char c = is.peek(); in test02()
/openbsd/gnu/usr.bin/perl/cpan/Test-Simple/lib/Test2/API/
H A DStack.pm51 sub peek { subroutine

1234