/external/libxml2/ |
D | list.c | 40 xmlLinkPtr sentinel; member 104 … for(lk = l->sentinel->next;lk != l->sentinel && l->linkCompare(lk->data, data) <0 ;lk = lk->next); in xmlListLowerSearch() 124 … for(lk = l->sentinel->prev;lk != l->sentinel && l->linkCompare(lk->data, data) >0 ;lk = lk->prev); in xmlListHigherSearch() 144 if (lk == l->sentinel) in xmlListLinkSearch() 169 if (lk == l->sentinel) in xmlListLinkReverseSearch() 200 if (NULL ==(l->sentinel = (xmlLinkPtr )xmlMalloc(sizeof(xmlLink)))) { in xmlListCreate() 206 l->sentinel->next = l->sentinel; in xmlListCreate() 207 l->sentinel->prev = l->sentinel; in xmlListCreate() 208 l->sentinel->data = NULL; in xmlListCreate() 339 xmlFree(l->sentinel); in xmlListDelete() [all …]
|
/external/clang/test/SemaObjC/ |
D | method-sentinel-attr.m | 8 - (void) foo1 : (int)x, ... ATTR; // expected-note {{method has been explicitly marked sentinel her… 9 - (void) foo3 : (int)x __attribute__ ((__sentinel__)) ; // expected-warning {{'sentinel' attribute … 10 …tribute__ ((__sentinel__(1))); // expected-note {{method has been explicitly marked sentinel here}} 11 …tribute__ ((__sentinel__(5))); // expected-note {{method has been explicitly marked sentinel here}} 12 …tribute__ ((__sentinel__(0))); // expected-note {{method has been explicitly marked sentinel here}} 14 - (void) foo9 : (int)x, ... __attribute__ ((__sentinel__(-1))); // expected-error {{'sentinel' par… 17 - (void) foo12 : (int)x, ... ATTR; // expected-note {{method has been explicitly marked sentinel he… 20 - (id) foo13 : (id)firstObj, ... __attribute__((sentinel(0,1))); argument 21 - (id) foo14 : (id)firstObj : (Class)secondObj, ... __attribute__((sentinel(0,1))); argument 22 - (id) foo15 : (id*)firstObj, ... __attribute__((sentinel(0,1))); argument [all …]
|
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/ |
D | rcssmin.c | 30 const rchar *sentinel; member 188 && source < ctx->sentinel && target < ctx->tsentinel in copy_match() 220 && source < ctx->sentinel && target < ctx->tsentinel in copy_imatch() 248 copy(const rchar *source, const rchar *sentinel, rchar **target_, in copy() argument 253 while (source < sentinel && target < ctx->tsentinel) in copy() 258 return (source == sentinel); in copy() 275 if (source < ctx->sentinel && !(target < ctx->tsentinel)) { \ 301 if (source < ctx->sentinel && target < ctx->tsentinel) { in copy_escape() 310 if (ctx->sentinel - source > 5) in copy_escape() 313 hsentinel = ctx->sentinel; in copy_escape() [all …]
|
/external/clang/test/Sema/ |
D | sentinel-attribute.c | 6 int x __attribute__((sentinel)); //expected-warning{{'sentinel' attribute only applies to functions… 8 void f1(int a, ...) __attribute__ ((sentinel)); // expected-note {{function has been explicitly mar… 9 void f2(int a, ...) __attribute__ ((sentinel(1))); 11 void f3(int a, ...) __attribute__ ((sentinel("hello"))); //expected-error{{'sentinel' attribute req… 12 void f4(int a, ...) __attribute__ ((sentinel(1, 2, 3))); //expected-error{{'sentinel' attribute tak… 13 void f4(int a, ...) __attribute__ ((sentinel(-1))); //expected-error{{parameter 1 less than zero}} 14 void f4(int a, ...) __attribute__ ((sentinel(0, 2))); // expected-error{{parameter 2 not 0 or 1}} 16 void f5(int a) __attribute__ ((sentinel)); //expected-warning{{'sentinel' attribute only supported …
|
/external/python/cpython3/Lib/unittest/test/testmock/ |
D | testsentinel.py | 2 from unittest.mock import sentinel, DEFAULT 8 self.assertEqual(sentinel.whatever, sentinel.whatever, 10 self.assertNotEqual(sentinel.whatever, sentinel.whateverelse, 15 self.assertEqual(str(sentinel.whatever), 'sentinel.whatever', 20 self.assertIs(DEFAULT, sentinel.DEFAULT) 24 self.assertRaises(AttributeError, lambda: sentinel.__bases__)
|
D | testwith.py | 5 from unittest.mock import MagicMock, Mock, patch, sentinel, mock_open, call 9 something = sentinel.Something 10 something_else = sentinel.SomethingElse 17 with patch('%s.something' % __name__, sentinel.Something2): 18 self.assertEqual(something, sentinel.Something2, "unpatched") 19 self.assertEqual(something, sentinel.Something) 24 with patch('%s.something' % __name__, sentinel.Something2): 25 self.assertEqual(something, sentinel.Something2, "unpatched") 31 self.assertEqual(something, sentinel.Something) 39 self.assertEqual(something, sentinel.Something) [all …]
|
D | testpatch.py | 13 NonCallableMock, CallableMixin, sentinel, 40 something = sentinel.Something 41 something_else = sentinel.SomethingElse 96 attribute = sentinel.Original 98 @patch.object(Something, 'attribute', sentinel.Patched) 100 self.assertEqual(Something.attribute, sentinel.Patched, "unpatched") 103 self.assertEqual(Something.attribute, sentinel.Original, 109 attribute = sentinel.Original 116 self.assertEqual(Something.attribute, sentinel.Original, 122 attribute = sentinel.Original [all …]
|
D | testmock.py | 9 call, DEFAULT, patch, sentinel, 149 mock = Mock(side_effect=sentinel.SideEffect) 150 self.assertEqual(mock.side_effect, sentinel.SideEffect, 155 mock = Mock(side_effect=side_effect, return_value=sentinel.RETURN) 156 self.assertEqual(mock(), sentinel.RETURN) 206 mock(sentinel.Something, something=sentinel.SomethingElse) 209 mock.side_effect = sentinel.SideEffect 231 self.assertEqual(mock.side_effect, sentinel.SideEffect, 264 ret_val = mock(sentinel.Arg) 267 self.assertEqual(mock.call_args, ((sentinel.Arg,), {}), [all …]
|
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/ |
D | rjsmin.c | 94 *sentinel = source + length; in rjsmin() local 99 while (source < sentinel) { in rjsmin() 119 while (source < sentinel) { in rjsmin() 130 if (source < sentinel) { in rjsmin() 133 if (c == U('\r') && source < sentinel in rjsmin() 147 if (!(source < sentinel)) { in rjsmin() 192 while (source < sentinel) { in rjsmin() 202 if (source < sentinel) { in rjsmin() 210 while (source < sentinel) { in rjsmin() 217 if (source < sentinel) { in rjsmin() [all …]
|
/external/valgrind/none/tests/s390x/ |
D | clst.stdout.exp | 1 comparing: lower123 with lowerabc sentinel = 0 6 comparing: higher234 with higher123 sentinel = 0 11 comparing: equal with equal sentinel = 0 16 comparing: equal with equallong sentinel = 0 21 comparing: equallong with equal sentinel = 0 26 comparing: lower1 with lower2 sentinel = 119 (w)
|
D | clst.c | 28 clst(const char *str1, const char *str2, int sentinel) in clst() argument 32 printf("comparing: %s with %s sentinel = %d", str1, str2, sentinel); in clst() 33 if (isprint(sentinel)) in clst() 34 printf(" (%c)", sentinel); in clst() 36 res = do_clst(str1, str2, sentinel); in clst()
|
/external/clang/test/FixIt/ |
D | fixit-objc.m | 60 void sentinel(int x, ...) __attribute__((sentinel)); // expected-note{{function has been explicitly… function 63 - (void)sentinel:(int)x, ... __attribute__((sentinel)); // expected-note{{method has been explicitl… argument 67 sentinel(1, 2, 3); // expected-warning{{missing sentinel in function call}} 68 [a sentinel:1, 2, 3]; // expected-warning{{missing sentinel in method dispatch}}
|
/external/clang/test/SemaCXX/ |
D | attr-sentinel.cpp | 3 void f(int, ...) __attribute__((sentinel)); 12 S(int,...) __attribute__((sentinel)); // expected-note {{marked sentinel}} 13 void a(int,...) __attribute__((sentinel)); // expected-note {{marked sentinel}} 14 void* operator new(size_t,...) __attribute__((sentinel)); // expected-note {{marked sentinel}} 15 void operator()(int,...) __attribute__((sentinel)); // expected-note {{marked sentinel}}
|
/external/python/cpython3/Lib/multiprocessing/ |
D | popen_forkserver.py | 51 self.sentinel, w = forkserver.connect_to_new_process(self._fds) 52 util.Finalize(self, os.close, (self.sentinel,)) 55 self.pid = forkserver.read_unsigned(self.sentinel) 61 if not wait([self.sentinel], timeout): 64 self.returncode = forkserver.read_unsigned(self.sentinel)
|
/external/tensorflow/tensorflow/contrib/learn/python/learn/ops/ |
D | seq2seq_ops.py | 60 def seq2seq_inputs(x, y, input_length, output_length, sentinel=None, name=None): argument 79 if not sentinel: 83 sentinel = array_ops.zeros(sentinel_shape) 84 sentinel.set_shape(y[0].get_shape()) 85 in_y = [sentinel] + y 86 out_y = y + [sentinel]
|
/external/protobuf/js/binary/ |
D | reader_test.js | 603 var sentinel = 123456789; 606 writer.writeInt32(1, sentinel); 613 writer.writeInt32(2, sentinel); 619 writer.writeInt32(3, sentinel); 625 writer.writeInt32(4, sentinel); 630 writer.writeInt32(5, sentinel); 640 writer.writeInt32(6, sentinel); 654 assertEquals(sentinel, reader.readInt32()); 659 assertEquals(sentinel, reader.readInt32()); 664 assertEquals(sentinel, reader.readInt32()); [all …]
|
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/ |
D | RubyRepeatedField.java | 352 SentinelOuterClass.Sentinel sentinel = SentinelOuterClass.Sentinel.getDefaultInstance(); in defaultValue() local 356 value = sentinel.getDefaultInt32(); in defaultValue() 359 value = sentinel.getDefaultInt64(); in defaultValue() 362 value = sentinel.getDefaultUnit32(); in defaultValue() 365 value = sentinel.getDefaultUint64(); in defaultValue() 368 value = sentinel.getDefaultFloat(); in defaultValue() 371 value = sentinel.getDefaultDouble(); in defaultValue() 374 value = sentinel.getDefaultBool(); in defaultValue() 377 value = sentinel.getDefaultBytes(); in defaultValue() 380 value = sentinel.getDefaultString(); in defaultValue()
|
/external/clang/test/Analysis/ |
D | variadic-method-types.m | 45 + (id)arrayWithObjects:(id)firstObj, ... __attribute__((sentinel(0,1))); argument 46 - (id)initWithObjects:(id)firstObj, ... __attribute__((sentinel(0,1))); argument 51 + (id)dictionaryWithObjectsAndKeys:(id)firstObject, ... __attribute__((sentinel(0,1))); argument 52 - (id)initWithObjectsAndKeys:(id)firstObject, ... __attribute__((sentinel(0,1))); argument 57 + (id)setWithObjects:(id)firstObj, ... __attribute__((sentinel(0,1))); argument 58 - (id)initWithObjects:(id)firstObj, ... __attribute__((sentinel(0,1))); argument 63 + (id)orderedSetWithObjects:(id)firstObj, ... __attribute__((sentinel(0,1))); argument 64 - (id)initWithObjects:(id)firstObj, ... __attribute__((sentinel(0,1))); argument
|
/external/python/cpython3/Lib/ |
D | heapq.py | 470 sentinel = object() 472 result = min(it, default=sentinel) 474 result = min(it, default=sentinel, key=key) 475 return [] if result is sentinel else [result] 533 sentinel = object() 535 result = max(it, default=sentinel) 537 result = max(it, default=sentinel, key=key) 538 return [] if result is sentinel else [result]
|
/external/droiddriver/src/io/appium/droiddriver/scroll/ |
D | StaticSentinelStrategy.java | 52 UiElement sentinel = getSentinel(driver, containerFinder, direction); in scroll() local 53 UiElement container = sentinel.getParent(); in scroll() 57 if (visibleBounds.contains(sentinel.getBounds())) { in scroll()
|
/external/python/cpython3/Doc/c-api/ |
D | iterator.rst | 10 method. The second works with a callable object and a sentinel value, calling 12 sentinel value is returned. 45 .. c:function:: PyObject* PyCallIter_New(PyObject *callable, PyObject *sentinel) 50 *sentinel*, the iteration will be terminated.
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_mutex_lock/ |
D | s-c2.c | 236 testdata_t sentinel; in main() local 248 sentinel.next = NULL; in main() 249 sentinel.id = 0; in main() 250 cur = &sentinel; in main() 370 cur = &sentinel; in main()
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/fork/ |
D | s-c1.c | 122 mes_t sentinel; in main() local 129 m_cur = &sentinel; in main() 171 m_cur = &sentinel; in main() 352 ret = parse_measure(&sentinel); in main() 362 while (sentinel.next != NULL) { in main() 363 m_cur = sentinel.next; in main() 369 sentinel.next = m_cur->next; in main()
|
/external/python/cpython2/Doc/c-api/ |
D | iterator.rst | 10 method. The second works with a callable object and a sentinel value, calling 12 sentinel value is returned. 55 .. c:function:: PyObject* PyCallIter_New(PyObject *callable, PyObject *sentinel) 60 *sentinel*, the iteration will be terminated.
|
/external/tinyxml/ |
D | tinyxml.cpp | 1520 sentinel.next = &sentinel; in TiXmlAttributeSet() 1521 sentinel.prev = &sentinel; in TiXmlAttributeSet() 1527 assert( sentinel.next == &sentinel ); in ~TiXmlAttributeSet() 1528 assert( sentinel.prev == &sentinel ); in ~TiXmlAttributeSet() 1536 addMe->next = &sentinel; in Add() 1537 addMe->prev = sentinel.prev; in Add() 1539 sentinel.prev->next = addMe; in Add() 1540 sentinel.prev = addMe; in Add() 1547 for( node = sentinel.next; node != &sentinel; node = node->next ) in Remove() 1565 for( node = sentinel.next; node != &sentinel; node = node->next ) in Find() [all …]
|