Searched refs:enforce (Results 1 - 25 of 89) sorted by relevance

1234

/netbsd-current/crypto/external/bsd/openssl.old/dist/test/ossl_shim/
H A Dasync_bio.h36 void AsyncBioEnforceWriteQuota(BIO *bio, bool enforce);
H A Dasync_bio.cc177 void AsyncBioEnforceWriteQuota(BIO *bio, bool enforce) { argument
182 a->enforce_write_quota = enforce;
/netbsd-current/external/gpl3/gcc.old/dist/libphobos/src/std/regex/internal/
H A Dparser.d165 enforce(str.length >= maxDigit,"incomplete escape sequence");
179 enforce(val <= 0x10FFFF, "invalid codepoint");
293 enforce(ir.length < maxCompiledLength,
300 enforce(ir.length < maxCompiledLength,
365 enforce(groupStack.top <= maxGroupNumber, "limit on number of submatches is exceeded");
376 enforce(groupStack.top <= maxGroupNumber, "limit on submatches is exceeded");
394 enforce(lookaroundNest <= maxLookaroundDepth,
485 enforce(ir.length + len < maxCompiledLength, "maximum compiled pattern length is exceeded");
539 enforce(ir[fix].code == IR.Option, "no matching ')'");
542 enforce(i
[all...]
/netbsd-current/external/gpl3/gcc.old/dist/libphobos/src/std/internal/
H A Dcstring.d25 import std.exception : enforce;
28 { enforce(setenv(name.tempCString(), value.tempCString(), 1) != -1); }
34 import std.exception : enforce;
37 { enforce(SetEnvironmentVariableW(name.tempCStringW(), value.tempCStringW())); }
/netbsd-current/external/gpl3/gcc/dist/libphobos/src/std/regex/internal/
H A Dparser.d212 enforce(ir.length < maxCompiledLength,
219 enforce(ir.length < maxCompiledLength,
284 enforce(groupStack.top <= maxGroupNumber, "limit on number of submatches is exceeded");
295 enforce(groupStack.top <= maxGroupNumber, "limit on submatches is exceeded");
313 enforce(lookaroundNest <= maxLookaroundDepth,
404 enforce(ir.length + len < maxCompiledLength, "maximum compiled pattern length is exceeded");
458 enforce(ir[fix].code == IR.Option, "no matching ')'");
461 enforce(ir[fix].code == IR.OrStart, "no matching ')'");
651 enforce(!empty, "Unexpected end of pattern");
673 enforce(fron
[all...]
/netbsd-current/external/gpl3/gcc.old/dist/libphobos/src/std/container/
H A Darray.d259 import std.exception : enforce;
829 enforce(!empty);
883 enforce(r._outer._data is _data && r._a <= length);
900 enforce(r._outer._data is _data && r._a <= length);
925 enforce(_data);
927 enforce(offset <= length);
942 enforce(r._outer._data is _data);
945 enforce(offset <= length);
956 enforce(r._outer._data is _data);
978 enforce(
[all...]
H A Dslist.d58 import std.exception : enforce;
120 enforce(n);
485 enforce(!r._head);
488 enforce(r._head);
519 enforce(!r.empty);
549 enforce(!r._head);
583 enforce(_first);
H A Dbinaryheap.d71 import std.exception : enforce;
248 enforce(!empty, "Cannot call front on an empty heap.");
292 enforce(length < _store.length,
316 enforce(!empty, "Cannot call removeFront on an empty heap.");
/netbsd-current/external/gpl3/gcc/dist/libphobos/src/std/container/
H A Darray.d394 import std.exception : enforce;
989 enforce(!empty);
1043 enforce(r._outer._data is _data && r._a <= length);
1061 enforce(r._outer._data is _data && r._a <= length);
1087 enforce(_data);
1089 enforce(offset <= length);
1106 enforce(r._outer._data is _data);
1109 enforce(offset <= length);
1120 enforce(r._outer._data is _data);
1142 enforce(
[all...]
H A Dslist.d59 import std.exception : enforce;
122 enforce(n);
523 enforce(!r._head);
526 enforce(r._head);
555 enforce(!r.empty);
580 enforce(!r._head);
614 enforce(_first);
H A Dbinaryheap.d71 import std.exception : enforce;
250 enforce(!empty, "Cannot call front on an empty heap.");
294 enforce(length < _store.length,
318 enforce(!empty, "Cannot call removeFront on an empty heap.");
/netbsd-current/external/gpl3/gcc/dist/libphobos/src/std/
H A Dzip.d115 import std.exception : enforce;
355 enforce!ZipException(_compressedSize == 0, "Can't change compression method for a compressed element");
619 enforce!ZipException(comment.length <= 0xFFFF, "archive comment longer than 65535");
627 enforce!ZipException(to!ulong(archiveSize) + localFileHeaderLength + de.name.length
789 enforce!ZipException(data.length <= uint.max - 2, "zip files bigger than 4 GB are unsupported");
819 enforce!ZipException(eocdOffset + zip64EndOfCentralDirLength <= _data.length,
823 enforce!ZipException(_data[i .. i + 4] == zip64EndOfCentralDirSignature,
827 enforce!ZipException(eocd64Size + i - 12 <= data.length,
838 enforce!ZipException(numEntriesUlong <= uint.max,
841 enforce!ZipExceptio
[all...]
H A Dutf.d422 enforce(stride(s, i) == codeLength!char(c),
425 enforce(stride(RandomCU!char(s), i) == codeLength!char(c),
430 enforce(stride(refRandom, i) == codeLength!char(c),
432 enforce(refRandom.length == randLen,
437 enforce(stride(s) == codeLength!char(c),
440 enforce(stride(InputCU!char(s)) == codeLength!char(c),
445 enforce(stride(refBidir) == codeLength!char(c),
447 enforce(refBidir.length == bidirLen,
532 enforce(stride(s, i) == codeLength!wchar(c),
535 enforce(strid
[all...]
H A Dstdio.d415 import std.exception : enforce;
419 enforce(file.isOpen, "ByRecord: File must be open");
429 enforce(line.empty, text("Leftover characters in record: `",
503 import std.exception : enforce;
506 _p = cast(Impl*) enforce(malloc(Impl.sizeof), "Out of memory");
645 import std.exception : enforce;
676 _p = cast(Impl*) enforce(malloc(Impl.sizeof), "Out of memory");
745 import std.exception : enforce, errnoEnforce;
748 enforce(isOpen, "Attempting to reopen() an unopened file");
938 import std.exception : enforce;
[all...]
H A Dexception.d20 $(LREF enforce)
56 // use enforce like assert
58 enforce(a > 2, "a needs to be higher than 2.");
60 // enforce can throw a custom exception
61 enforce!ConvException(a > 2, "a needs to be higher than 2.");
63 // enforce will return it's input
65 auto memory = enforce(malloc(size), "malloc failed")[0 .. size];
164 assertNotThrown!StringException(enforce!StringException(true, "Error!"));
167 assertNotThrown(enforce!StringException(true, "Error!"));
170 enforce!StringExceptio
[all...]
/netbsd-current/external/gpl3/gcc/dist/libphobos/src/std/internal/
H A Dcstring.d25 import std.exception : enforce;
28 { enforce(setenv(name.tempCString(), value.tempCString(), 1) != -1); }
34 import std.exception : enforce;
37 { enforce(SetEnvironmentVariableW(name.tempCStringW(), value.tempCStringW())); }
H A Dmemory.d18 Mnemonic for `enforce!OutOfMemoryError(malloc(size))` that (unlike malloc)
/netbsd-current/external/gpl3/gcc.old/dist/libphobos/src/std/experimental/allocator/building_blocks/
H A Dscoped_allocator.d217 auto foo = alloc.make!int(1).enforce;
218 auto bar = alloc.make!int(2).enforce;
/netbsd-current/external/gpl3/gcc.old/dist/libphobos/src/std/
H A Dutf.d350 enforce(stride(s, i) == codeLength!char(c),
353 enforce(stride(RandomCU!char(s), i) == codeLength!char(c),
358 enforce(stride(refRandom, i) == codeLength!char(c),
360 enforce(refRandom.length == randLen,
365 enforce(stride(s) == codeLength!char(c),
368 enforce(stride(InputCU!char(s)) == codeLength!char(c),
373 enforce(stride(refBidir) == codeLength!char(c),
375 enforce(refBidir.length == bidirLen,
458 enforce(stride(s, i) == codeLength!wchar(c),
461 enforce(strid
[all...]
H A Dstdio.d290 import std.exception : enforce;
294 enforce(file.isOpen, "ByRecord: File must be open");
304 enforce(line.empty, text("Leftover characters in record: `",
375 import std.exception : enforce;
378 _p = cast(Impl*) enforce(malloc(Impl.sizeof), "Out of memory");
510 import std.exception : enforce, errnoEnforce;
513 enforce(isOpen, "Attempting to reopen() an unopened file");
703 import std.exception : enforce;
705 enforce(_p && _p.handle, "Calling eof() against an unopened file.");
838 import std.exception : enforce, errnoEnforc
[all...]
/netbsd-current/external/gpl3/gcc.old/dist/libphobos/src/std/windows/
H A Dregistry.d92 enforce(false, new Win32Exception(message)));
103 enforce(false, new Win32Exception(message, code)));
148 enforce(false, new RegistryException(message, code)));
159 enforce(false, new RegistryException(message)));
547 enforce(type == reqType,
610 enforce(type == REG_VALUE_TYPE.REG_MULTI_SZ,
612 enforce(type == reqType,
643 enforce(type == reqType,
679 enforce(type == reqType,
712 enforce(typ
[all...]
/netbsd-current/external/gpl3/gcc/dist/libphobos/src/std/windows/
H A Dregistry.d92 enforce(false, new Win32Exception(message)));
103 enforce(false, new Win32Exception(message, code)));
148 enforce(false, new RegistryException(message, code)));
159 enforce(false, new RegistryException(message)));
547 enforce(type == reqType,
610 enforce(type == REG_VALUE_TYPE.REG_MULTI_SZ,
612 enforce(type == reqType,
643 enforce(type == reqType,
679 enforce(type == reqType,
712 enforce(typ
[all...]
/netbsd-current/external/gpl3/gcc/dist/libphobos/src/std/net/
H A Dcurl.d805 import std.exception : enforce;
810 enforce!CurlException(t[0].length > minDomainNameLength,
814 enforce!CurlException(!t[1].empty,
1028 import std.exception : enforce;
1097 enforce(statusLine.code / 100 == 2, new HTTPStatusException(statusLine.code,
1228 import std.exception : enforce;
1237 enforce!CurlException(scheme !is null,
1241 enforce!CurlException(strInfo[0] != size_t.max,
1334 import std.exception : enforce;
1335 enforce!CurlExceptio
[all...]
/netbsd-current/sys/external/mit/xen-include-public/dist/xen/include/public/xsm/
H A Dflask_op.h192 struct xen_flask_setenforce enforce; member in union:xen_flask_op::__anon9163
/netbsd-current/external/gpl3/gcc/dist/libphobos/src/std/datetime/
H A Dtimezone.d394 import std.exception : enforce;
400 enforce(st.hour == hour,
414 enforce(st.dstInEffect == dstInEffect, msg("1"));
415 enforce(st.utcOffset == offset, msg("2"));
416 enforce((st + dur!"minutes"(1)).utcOffset == offset, msg("3"));
470 import std.exception : enforce;
471 enforce((utc + offset).hour == local.hour, msg("1"));
472 enforce((utc + offset + dur!"minutes"(1)).hour == local.hour, msg("2"));
971 import std.exception : enforce;
989 enforce(s
[all...]

Completed in 153 milliseconds

1234