summaryrefslogtreecommitdiffstats
path: root/source3/python
ModeNameSize
-rw-r--r--README889logstatsplain
d---------examples68logstatsplain
-rwxr-xr-xgprinterdata941logstatsplain
-rwxr-xr-xgtdbtool772logstatsplain
-rwxr-xr-xgtkdictbrowser.py7283logstatsplain
-rw-r--r--py_common.c6249logstatsplain
-rw-r--r--py_common.h2192logstatsplain
-rw-r--r--py_conv.c4644logstatsplain
-rw-r--r--py_conv.h1416logstatsplain
-rw-r--r--py_lsa.c10986logstatsplain
-rw-r--r--py_lsa.h1157logstatsplain
-rw-r--r--py_ntsec.c6100logstatsplain
-rw-r--r--py_samr.c16005logstatsplain
-rw-r--r--py_samr.h2363logstatsplain
-rw-r--r--py_samr_conv.c3019logstatsplain
-rw-r--r--py_smb.c13315logstatsplain
-rw-r--r--py_smb.h1105logstatsplain
-rw-r--r--py_spoolss.c14622logstatsplain
-rw-r--r--py_spoolss.h7472logstatsplain
-rw-r--r--py_spoolss_common.c1149logstatsplain
-rw-r--r--py_spoolss_drivers.c9009logstatsplain
-rw-r--r--py_spoolss_drivers_conv.c6476logstatsplain
-rw-r--r--py_spoolss_forms.c5751logstatsplain
-rw-r--r--py_spoolss_forms_conv.c2649logstatsplain
-rw-r--r--py_spoolss_jobs.c8804logstatsplain
-rw-r--r--py_spoolss_jobs_conv.c3824logstatsplain
-rw-r--r--py_spoolss_ports.c3149logstatsplain
-rw-r--r--py_spoolss_ports_conv.c1730logstatsplain
-rw-r--r--py_spoolss_printerdata.c10265logstatsplain
-rw-r--r--py_spoolss_printers.c10238logstatsplain
-rw-r--r--py_spoolss_printers_conv.c11687logstatsplain
-rw-r--r--py_srvsvc.c5674logstatsplain
-rw-r--r--py_srvsvc.h1023logstatsplain
-rw-r--r--py_srvsvc_conv.c1495logstatsplain
-rw-r--r--py_tdb.c14501logstatsplain
-rw-r--r--py_tdb.h1094logstatsplain
-rw-r--r--py_tdbpack.c19183logstatsplain
-rw-r--r--py_winbind.c18970logstatsplain
-rw-r--r--py_winbind.h1043logstatsplain
-rw-r--r--py_winbind_conv.c1653logstatsplain
-rw-r--r--py_winreg.c2010logstatsplain
-rw-r--r--py_winreg.h897logstatsplain
d---------samba81logstatsplain
-rwxr-xr-xsetup.py7877logstatsplain
1, ""); static_assert(decltype(f(c))::value == 2, ""); static_assert(decltype(f(0))::value == 3, ""); } } namespace test_uniform_initialization { struct test { static const int zero {}; static const int one {1}; }; static_assert(test::zero == 0, ""); static_assert(test::one == 1, ""); } namespace test_lambdas { void test1() { auto lambda1 = [](){}; auto lambda2 = lambda1; lambda1(); lambda2(); } int test2() { auto a = [](int i, int j){ return i + j; }(1, 2); auto b = []() -> int { return '0'; }(); auto c = [=](){ return a + b; }(); auto d = [&](){ return c; }(); auto e = [a, &b](int x) mutable { const auto identity = [](int y){ return y; }; for (auto i = 0; i < a; ++i) a += b--; return x + identity(a + b); }(0); return a + b + c + d + e; } int test3() { const auto nullary = [](){ return 0; }; const auto unary = [](int x){ return x; }; using nullary_t = decltype(nullary); using unary_t = decltype(unary); const auto higher1st = [](nullary_t f){ return f(); }; const auto higher2nd = [unary](nullary_t f1){ return [unary, f1](unary_t f2){ return f2(unary(f1())); }; }; return higher1st(nullary) + higher2nd(nullary)(unary); } } namespace test_variadic_templates { template <int...> struct sum; template <int N0, int... N1toN> struct sum<N0, N1toN...> { static constexpr auto value = N0 + sum<N1toN...>::value; }; template <> struct sum<> { static constexpr auto value = 0; }; static_assert(sum<>::value == 0, ""); static_assert(sum<1>::value == 1, ""); static_assert(sum<23>::value == 23, ""); static_assert(sum<1, 2>::value == 3, ""); static_assert(sum<5, 5, 11>::value == 21, ""); static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); } // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function // because of this. namespace test_template_alias_sfinae { struct foo {}; template<typename T> using member = typename T::member_type; template<typename T> void func(...) {} template<typename T> void func(member<T>*) {} void test(); void test() { func<foo>(0); } } } // namespace cxx11 #endif // __cplusplus >= 201103L ]]) dnl Tests for new features in C++14 m4_define([_AX_CXX_COMPILE_STDCXX_testbody_new_in_14], [[ // If the compiler admits that it is not ready for C++14, why torture it? // Hopefully, this will speed up the test. #ifndef __cplusplus #error "This is not a C++ compiler" #elif __cplusplus < 201402L #error "This is not a C++14 compiler" #else namespace cxx14 { namespace test_polymorphic_lambdas { int test() { const auto lambda = [](auto&&... args){ const auto istiny = [](auto x){ return (sizeof(x) == 1UL) ? 1 : 0; }; const int aretiny[] = { istiny(args)... }; return aretiny[0]; }; return lambda(1, 1L, 1.0f, '1'); } } namespace test_binary_literals { constexpr auto ivii = 0b0000000000101010; static_assert(ivii == 42, "wrong value"); } namespace test_generalized_constexpr { template < typename CharT > constexpr unsigned long strlen_c(const CharT *const s) noexcept { auto length = 0UL; for (auto p = s; *p; ++p) ++length; return length; } static_assert(strlen_c("") == 0UL, ""); static_assert(strlen_c("x") == 1UL, ""); static_assert(strlen_c("test") == 4UL, ""); static_assert(strlen_c("another\0test") == 7UL, ""); } namespace test_lambda_init_capture { int test() { auto x = 0; const auto lambda1 = [a = x](int b){ return a + b; }; const auto lambda2 = [a = lambda1(x)](){ return a; }; return lambda2(); } } namespace test_digit_seperators { constexpr auto ten_million = 100'000'000; static_assert(ten_million == 100000000, ""); } namespace test_return_type_deduction { auto f(int& x) { return x; } decltype(auto) g(int& x) { return x; }