/device/google/contexthub/firmware/lib/libm/ |
D | wf_pow.c | 34 struct exception exc; 41 exc.type = DOMAIN; 42 exc.name = "powf"; 43 exc.err = 0; 44 exc.arg1 = (double)x; 45 exc.arg2 = (double)y; 46 exc.retval = 1.0; 48 _LIB_VERSION == _POSIX_) exc.retval = 1.0; 49 else if (!matherr(&exc)) { 52 if (exc.err != 0) [all …]
|
D | wf_exp.c | 44 struct exception exc; 56 exc.type = OVERFLOW; 57 exc.name = "expf"; 58 exc.err = 0; 59 exc.arg1 = exc.arg2 = (double)x; 61 exc.retval = HUGE; 63 exc.retval = HUGE_VAL; 66 else if (!matherr(&exc)) { 69 if (exc.err != 0) 70 errno = exc.err; [all …]
|
D | wf_fmod.c | 34 struct exception exc; 39 exc.type = DOMAIN; 40 exc.name = "fmodf"; 41 exc.err = 0; 42 exc.arg1 = (double)x; 43 exc.arg2 = (double)y; 45 exc.retval = x; 47 exc.retval = 0.0/0.0; 50 else if (!matherr(&exc)) { 53 if (exc.err != 0) [all …]
|
D | wf_asin.c | 36 struct exception exc; 41 exc.type = DOMAIN; 42 exc.name = "asinf"; 43 exc.err = 0; 44 exc.arg1 = exc.arg2 = (double)x; 45 exc.retval = nan(""); 48 else if (!matherr(&exc)) { 51 if (exc.err != 0) 52 errno = exc.err; 53 return (float)exc.retval;
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_pep352.py | 73 exc = getattr(__builtin__, exc_name) 81 self.assertTrue(issubclass(exc, superclasses[-1][1]), 82 "%s is not a subclass of %s" % (exc.__name__, 85 self.verify_instance_interface(exc()) 90 last_exc = exc 108 exc = Exception(arg) 109 results = ([len(exc.args), 1], [exc.args[0], arg], [exc.message, arg], 110 [str(exc), str(arg)], [unicode(exc), unicode(arg)], 111 [repr(exc), exc.__class__.__name__ + repr(exc.args)], 112 [exc[0], arg]) [all …]
|
D | test_codeccallbacks.py | 10 def handle(self, exc): argument 14 realpos = len(exc.object) + realpos 17 if realpos <= exc.start: 18 self.pos = len(exc.object) 83 def xmlcharnamereplace(exc): argument 84 if not isinstance(exc, UnicodeEncodeError): 85 raise TypeError("don't know how to handle %r" % exc) 87 for c in exc.object[exc.start:exc.end]: 92 return (u"".join(l), exc.end) 114 def uninamereplace(exc): argument [all …]
|
D | test_multibytecodec_support.py | 73 def xmlcharnamereplace(exc): argument 74 if not isinstance(exc, UnicodeEncodeError): 75 raise TypeError("don't know how to handle %r" % exc) 77 for c in exc.object[exc.start:exc.end]: 82 return (u"".join(l), exc.end) 95 def myreplace(exc): argument 96 return (ret, exc.end) 104 def myreplace(exc): argument 105 return (u'x', long(exc.end)) 110 def myreplace(exc): argument [all …]
|
D | test_exceptions.py | 26 def raise_catch(self, exc, excname): argument 28 raise exc, "spam" 29 except exc, err: 32 raise exc("spam") 33 except exc, err: 36 self.assertEqual(exc.__name__, excname) 164 exc, err, tb = sys.exc_info() 176 exc, err, tb = sys.exc_info() 280 for exc, args, expected in exceptionList: 282 raise exc(*args) [all …]
|
D | test_sys.py | 62 except ValueError, exc: 76 def clear_check(exc): argument 79 self.assertTrue(value is exc) 93 except ValueError, exc: 94 clear_check(exc) 103 except ValueError, exc: 109 self.assertTrue(value1 is exc) 114 clear_check(exc) 122 except SystemExit, exc: 123 self.assertEqual(exc.code, 0) [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | contextlib.py | 37 except StopIteration, exc: 41 return exc is not value 107 exc = (None, None, None) 116 exc = sys.exc_info() 121 if exit(*exc): 122 exc = (None, None, None) 124 exc = sys.exc_info() 125 if exc != (None, None, None): 129 raise exc[0], exc[1], exc[2]
|
D | runpy.py | 126 except ImportError as exc: 127 if main_name in str(exc): 154 except ImportError as exc: 155 msg = "%s: %s" % (sys.executable, str(exc))
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/ |
D | fix_raise.py | 41 exc = results["exc"].clone() 42 if exc.type == token.STRING: 53 if is_tuple(exc): 54 while is_tuple(exc): 57 exc = exc.children[1].children[0].clone() 58 exc.prefix = u" " 62 new = pytree.Node(syms.raise_stmt, [Name(u"raise"), exc]) 77 e = exc 82 e = Call(exc, args) 89 [Name(u"raise"), Call(exc, args)],
|
D | fix_throw.py | 29 exc = results["exc"].clone() 30 if exc.type is token.STRING: 52 e = Call(exc, args) 56 throw_args.replace(Call(exc, args))
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/ |
D | codecs.c | 442 static void wrong_exception_type(PyObject *exc) in wrong_exception_type() argument 444 PyObject *type = PyObject_GetAttrString(exc, "__class__"); in wrong_exception_type() 461 PyObject *PyCodec_StrictErrors(PyObject *exc) in PyCodec_StrictErrors() argument 463 if (PyExceptionInstance_Check(exc)) in PyCodec_StrictErrors() 464 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_StrictErrors() 472 PyObject *PyCodec_IgnoreErrors(PyObject *exc) in PyCodec_IgnoreErrors() argument 475 if (PyObject_IsInstance(exc, PyExc_UnicodeEncodeError)) { in PyCodec_IgnoreErrors() 476 if (PyUnicodeEncodeError_GetEnd(exc, &end)) in PyCodec_IgnoreErrors() 479 else if (PyObject_IsInstance(exc, PyExc_UnicodeDecodeError)) { in PyCodec_IgnoreErrors() 480 if (PyUnicodeDecodeError_GetEnd(exc, &end)) in PyCodec_IgnoreErrors() [all …]
|
D | errors.c | 85 PyErr_GivenExceptionMatches(PyObject *err, PyObject *exc) in PyErr_GivenExceptionMatches() argument 87 if (err == NULL || exc == NULL) { in PyErr_GivenExceptionMatches() 91 if (PyTuple_Check(exc)) { in PyErr_GivenExceptionMatches() 93 n = PyTuple_Size(exc); in PyErr_GivenExceptionMatches() 97 err, PyTuple_GET_ITEM(exc, i))) in PyErr_GivenExceptionMatches() 108 if (PyExceptionClass_Check(err) && PyExceptionClass_Check(exc)) { in PyErr_GivenExceptionMatches() 119 res = PyObject_IsSubclass(err, exc); in PyErr_GivenExceptionMatches() 130 return err == exc; in PyErr_GivenExceptionMatches() 135 PyErr_ExceptionMatches(PyObject *exc) in PyErr_ExceptionMatches() argument 137 return PyErr_GivenExceptionMatches(PyErr_Occurred(), exc); in PyErr_ExceptionMatches() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/ |
D | codecs.c | 442 static void wrong_exception_type(PyObject *exc) in wrong_exception_type() argument 444 PyObject *type = PyObject_GetAttrString(exc, "__class__"); in wrong_exception_type() 461 PyObject *PyCodec_StrictErrors(PyObject *exc) in PyCodec_StrictErrors() argument 463 if (PyExceptionInstance_Check(exc)) in PyCodec_StrictErrors() 464 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_StrictErrors() 472 PyObject *PyCodec_IgnoreErrors(PyObject *exc) in PyCodec_IgnoreErrors() argument 475 if (PyObject_IsInstance(exc, PyExc_UnicodeEncodeError)) { in PyCodec_IgnoreErrors() 476 if (PyUnicodeEncodeError_GetEnd(exc, &end)) in PyCodec_IgnoreErrors() 479 else if (PyObject_IsInstance(exc, PyExc_UnicodeDecodeError)) { in PyCodec_IgnoreErrors() 480 if (PyUnicodeDecodeError_GetEnd(exc, &end)) in PyCodec_IgnoreErrors() [all …]
|
D | errors.c | 85 PyErr_GivenExceptionMatches(PyObject *err, PyObject *exc) in PyErr_GivenExceptionMatches() argument 87 if (err == NULL || exc == NULL) { in PyErr_GivenExceptionMatches() 91 if (PyTuple_Check(exc)) { in PyErr_GivenExceptionMatches() 93 n = PyTuple_Size(exc); in PyErr_GivenExceptionMatches() 97 err, PyTuple_GET_ITEM(exc, i))) in PyErr_GivenExceptionMatches() 108 if (PyExceptionClass_Check(err) && PyExceptionClass_Check(exc)) { in PyErr_GivenExceptionMatches() 117 res = PyObject_IsSubclass(err, exc); in PyErr_GivenExceptionMatches() 128 return err == exc; in PyErr_GivenExceptionMatches() 133 PyErr_ExceptionMatches(PyObject *exc) in PyErr_ExceptionMatches() argument 135 return PyErr_GivenExceptionMatches(PyErr_Occurred(), exc); in PyErr_ExceptionMatches() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/ |
D | codecs.h | 150 PyAPI_FUNC(PyObject *) PyCodec_StrictErrors(PyObject *exc); 153 PyAPI_FUNC(PyObject *) PyCodec_IgnoreErrors(PyObject *exc); 156 PyAPI_FUNC(PyObject *) PyCodec_ReplaceErrors(PyObject *exc); 159 PyAPI_FUNC(PyObject *) PyCodec_XMLCharRefReplaceErrors(PyObject *exc); 162 PyAPI_FUNC(PyObject *) PyCodec_BackslashReplaceErrors(PyObject *exc);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/ |
D | codecs.h | 150 PyAPI_FUNC(PyObject *) PyCodec_StrictErrors(PyObject *exc); 153 PyAPI_FUNC(PyObject *) PyCodec_IgnoreErrors(PyObject *exc); 156 PyAPI_FUNC(PyObject *) PyCodec_ReplaceErrors(PyObject *exc); 159 PyAPI_FUNC(PyObject *) PyCodec_XMLCharRefReplaceErrors(PyObject *exc); 162 PyAPI_FUNC(PyObject *) PyCodec_BackslashReplaceErrors(PyObject *exc);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/ |
D | spawn.py | 70 except OSError, exc: 73 "command '%s' failed: %s" % (cmd[0], exc[-1]) 89 except OSError, exc: 92 "command '%s' failed: %s" % (cmd[0], exc[-1]) 123 except OSError, exc: 125 if exc.errno == errno.EINTR: 128 "command '%s' failed: %s" % (cmd[0], exc[-1])
|
D | dir_util.py | 73 except OSError, exc: 74 if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 76 "could not create '%s': %s" % (head, exc.args[-1])) 200 except (IOError, OSError), exc: 202 exc, "error removing %s: " % directory))
|
D | util.py | 290 def grok_environment_error (exc, prefix="error: "): argument 299 if hasattr(exc, 'filename') and hasattr(exc, 'strerror'): 300 if exc.filename: 301 error = prefix + "%s: %s" % (exc.filename, exc.strerror) 305 error = prefix + "%s" % exc.strerror 307 error = prefix + str(exc[-1])
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/ |
D | exceptions.c | 1356 PyUnicodeEncodeError_GetEncoding(PyObject *exc) in PyUnicodeEncodeError_GetEncoding() argument 1358 return get_string(((PyUnicodeErrorObject *)exc)->encoding, "encoding"); in PyUnicodeEncodeError_GetEncoding() 1362 PyUnicodeDecodeError_GetEncoding(PyObject *exc) in PyUnicodeDecodeError_GetEncoding() argument 1364 return get_string(((PyUnicodeErrorObject *)exc)->encoding, "encoding"); in PyUnicodeDecodeError_GetEncoding() 1368 PyUnicodeEncodeError_GetObject(PyObject *exc) in PyUnicodeEncodeError_GetObject() argument 1370 return get_unicode(((PyUnicodeErrorObject *)exc)->object, "object"); in PyUnicodeEncodeError_GetObject() 1374 PyUnicodeDecodeError_GetObject(PyObject *exc) in PyUnicodeDecodeError_GetObject() argument 1376 return get_string(((PyUnicodeErrorObject *)exc)->object, "object"); in PyUnicodeDecodeError_GetObject() 1380 PyUnicodeTranslateError_GetObject(PyObject *exc) in PyUnicodeTranslateError_GetObject() argument 1382 return get_unicode(((PyUnicodeErrorObject *)exc)->object, "object"); in PyUnicodeTranslateError_GetObject() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/ |
D | exceptions.c | 1352 PyUnicodeEncodeError_GetEncoding(PyObject *exc) in PyUnicodeEncodeError_GetEncoding() argument 1354 return get_string(((PyUnicodeErrorObject *)exc)->encoding, "encoding"); in PyUnicodeEncodeError_GetEncoding() 1358 PyUnicodeDecodeError_GetEncoding(PyObject *exc) in PyUnicodeDecodeError_GetEncoding() argument 1360 return get_string(((PyUnicodeErrorObject *)exc)->encoding, "encoding"); in PyUnicodeDecodeError_GetEncoding() 1364 PyUnicodeEncodeError_GetObject(PyObject *exc) in PyUnicodeEncodeError_GetObject() argument 1366 return get_unicode(((PyUnicodeErrorObject *)exc)->object, "object"); in PyUnicodeEncodeError_GetObject() 1370 PyUnicodeDecodeError_GetObject(PyObject *exc) in PyUnicodeDecodeError_GetObject() argument 1372 return get_string(((PyUnicodeErrorObject *)exc)->object, "object"); in PyUnicodeDecodeError_GetObject() 1376 PyUnicodeTranslateError_GetObject(PyObject *exc) in PyUnicodeTranslateError_GetObject() argument 1378 return get_unicode(((PyUnicodeErrorObject *)exc)->object, "object"); in PyUnicodeTranslateError_GetObject() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/freeze/ |
D | checkextensions_win32.py | 119 for exc in exclude: 120 if exc in module.sourceFiles: 121 modules.sourceFiles.remove(exc)
|