Changeset 7dcce0a in mainline for uspace/lib/cpp/include
- Timestamp:
- 2019-01-16T18:07:45Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4248ce5
- Parents:
- cf9e949
- git-author:
- Jaroslav Jindrak <dzejrou@…> (2019-01-12 15:09:49)
- git-committer:
- jxsvoboda <5887334+jxsvoboda@…> (2019-01-16 18:07:45)
- Location:
- uspace/lib/cpp/include
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/__bits/adt/list.hpp
rcf9e949 r7dcce0a 1 1 /* 2 * Copyright (c) 201 8Jaroslav Jindrak2 * Copyright (c) 2019 Jaroslav Jindrak 3 3 * All rights reserved. 4 4 * … … 32 32 #include <__bits/adt/list_node.hpp> 33 33 #include <__bits/insert_iterator.hpp> 34 #include <cassert> 34 35 #include <cstdlib> 35 36 #include <iterator> … … 580 581 { 581 582 // TODO: implement 583 __unimplemented(); 582 584 } 583 585 … … 585 587 { 586 588 // TODO: implement 589 __unimplemented(); 587 590 } 588 591 … … 1042 1045 { 1043 1046 // TODO: implement 1047 __unimplemented(); 1044 1048 } 1045 1049 … … 1053 1057 { 1054 1058 // TODO: implement 1059 __unimplemented(); 1055 1060 } 1056 1061 … … 1064 1069 { 1065 1070 // TODO: implement 1071 __unimplemented(); 1066 1072 } 1067 1073 … … 1069 1075 { 1070 1076 // TODO: implement 1077 __unimplemented(); 1071 1078 } 1072 1079 … … 1075 1082 { 1076 1083 // TODO: implement 1084 __unimplemented(); 1077 1085 } 1078 1086 -
uspace/lib/cpp/include/__bits/complex.hpp
rcf9e949 r7dcce0a 1 1 /* 2 * Copyright (c) 201 8Jaroslav Jindrak2 * Copyright (c) 2019 Jaroslav Jindrak 3 3 * All rights reserved. 4 4 * … … 30 30 #define LIBCPP_BITS_COMPLEX 31 31 32 #include <cassert> 32 33 #include <iosfwd> 33 34 #include <sstream> … … 724 725 { 725 726 // TODO: implement 727 __unimplemented(); 728 return is; 726 729 } 727 730 … … 766 769 { 767 770 // TODO: implement 771 __unimplemented(); 768 772 return c; 769 773 } … … 779 783 { 780 784 // TODO: implement 785 __unimplemented(); 781 786 return c; 782 787 } … … 786 791 { 787 792 // TODO: implement 793 __unimplemented(); 788 794 return c; 789 795 } … … 793 799 { 794 800 // TODO: implement 801 __unimplemented(); 795 802 return complex<T>{}; 796 803 } … … 804 811 { 805 812 // TODO: implement 813 __unimplemented(); 806 814 return c; 807 815 } … … 811 819 { 812 820 // TODO: implement 821 __unimplemented(); 813 822 return c; 814 823 } … … 818 827 { 819 828 // TODO: implement 829 __unimplemented(); 820 830 return c; 821 831 } … … 825 835 { 826 836 // TODO: implement 837 __unimplemented(); 827 838 return c; 828 839 } … … 832 843 { 833 844 // TODO: implement 845 __unimplemented(); 834 846 return c; 835 847 } … … 839 851 { 840 852 // TODO: implement 853 __unimplemented(); 841 854 return c; 842 855 } … … 846 859 { 847 860 // TODO: implement 861 __unimplemented(); 848 862 return c; 849 863 } … … 853 867 { 854 868 // TODO: implement 869 __unimplemented(); 855 870 return c; 856 871 } … … 860 875 { 861 876 // TODO: implement 877 __unimplemented(); 862 878 return c; 863 879 } … … 867 883 { 868 884 // TODO: implement 885 __unimplemented(); 869 886 return c; 870 887 } … … 874 891 { 875 892 // TODO: implement 893 __unimplemented(); 876 894 return c; 877 895 } … … 881 899 { 882 900 // TODO: implement 901 __unimplemented(); 883 902 return base; 884 903 } … … 888 907 { 889 908 // TODO: implement 909 __unimplemented(); 890 910 return base; 891 911 } … … 895 915 { 896 916 // TODO: implement 917 __unimplemented(); 897 918 return complex<T>{base}; 898 919 } … … 902 923 { 903 924 // TODO: implement 925 __unimplemented(); 904 926 return c; 905 927 } … … 909 931 { 910 932 // TODO: implement 933 __unimplemented(); 911 934 return c; 912 935 } … … 916 939 { 917 940 // TODO: implement 941 __unimplemented(); 918 942 return c; 919 943 } … … 923 947 { 924 948 // TODO: implement 949 __unimplemented(); 925 950 return c; 926 951 } … … 930 955 { 931 956 // TODO: implement 957 __unimplemented(); 932 958 return c; 933 959 } -
uspace/lib/cpp/include/__bits/functional/bind.hpp
rcf9e949 r7dcce0a 1 1 /* 2 * Copyright (c) 201 8Jaroslav Jindrak2 * Copyright (c) 2019 Jaroslav Jindrak 3 3 * All rights reserved. 4 4 * … … 33 33 #include <__bits/functional/invoke.hpp> 34 34 #include <__bits/functional/reference_wrapper.hpp> 35 #include <cassert> 35 36 #include <tuple> 36 37 #include <type_traits> … … 133 134 constexpr decltype(auto) operator[](const bind_t<R, B, F, BindArgs...> b) 134 135 { 136 __unimplemented(); 135 137 return b; // TODO: bind subexpressions 136 138 } -
uspace/lib/cpp/include/__bits/io/fstream.hpp
rcf9e949 r7dcce0a 1 1 /* 2 * Copyright (c) 201 8Jaroslav Jindrak2 * Copyright (c) 2019 Jaroslav Jindrak 3 3 * All rights reserved. 4 4 * … … 30 30 #define LIBCPP_BITS_IO_FSTREAM 31 31 32 #include <cassert> 32 33 #include <cstdio> 33 34 #include <ios> … … 267 268 { 268 269 // TODO: implement 270 __unimplemented(); 269 271 return nullptr; 270 272 } … … 274 276 { 275 277 // TODO: implement 278 __unimplemented(); 276 279 return pos_type{}; 277 280 } … … 281 284 { 282 285 // TODO: implement 286 __unimplemented(); 283 287 return pos_type{}; 284 288 } -
uspace/lib/cpp/include/__bits/io/istream.hpp
rcf9e949 r7dcce0a 1 1 /* 2 * Copyright (c) 201 8Jaroslav Jindrak2 * Copyright (c) 2019 Jaroslav Jindrak 3 3 * All rights reserved. 4 4 * … … 30 30 #define LIBCPP_BITS_IO_ISTREAM 31 31 32 #include <cassert> 32 33 #include <ios> 33 34 #include <iosfwd> … … 339 340 { 340 341 // TODO: implement 342 __unimplemented(); 343 return *this; 341 344 } 342 345 … … 344 347 { 345 348 // TODO: implement 349 __unimplemented(); 350 return *this; 346 351 } 347 352 … … 349 354 { 350 355 // TODO: implement 356 __unimplemented(); 357 return *this; 351 358 } 352 359 … … 354 361 { 355 362 // TODO: implement 363 __unimplemented(); 364 return *this; 356 365 } 357 366 -
uspace/lib/cpp/include/__bits/io/ostream.hpp
rcf9e949 r7dcce0a 1 1 /* 2 * Copyright (c) 201 8Jaroslav Jindrak2 * Copyright (c) 2019 Jaroslav Jindrak 3 3 * All rights reserved. 4 4 * … … 30 30 #define LIBCPP_BITS_IO_OSTREAM 31 31 32 #include <cassert> 32 33 #include <ios> 33 34 #include <iosfwd> … … 458 459 { 459 460 // TODO: implement 461 __unimplemented(); 460 462 return pos_type{}; 461 463 } … … 464 466 { 465 467 // TODO: implement 468 __unimplemented(); 466 469 return *this; 467 470 } … … 470 473 { 471 474 // TODO: implement 475 __unimplemented(); 472 476 return *this; 473 477 } -
uspace/lib/cpp/include/__bits/new.hpp
rcf9e949 r7dcce0a 1 1 /* 2 * Copyright (c) 201 8Jaroslav Jindrak2 * Copyright (c) 2019 Jaroslav Jindrak 3 3 * All rights reserved. 4 4 * … … 30 30 #define LIBCPP_BITS_NEW 31 31 32 #include <cstddef> 32 33 #include <exception> 33 34 -
uspace/lib/cpp/include/__bits/string/string.hpp
rcf9e949 r7dcce0a 1 1 /* 2 * Copyright (c) 201 8Jaroslav Jindrak2 * Copyright (c) 2019 Jaroslav Jindrak 3 3 * All rights reserved. 4 4 * … … 32 32 #include <__bits/string/stringfwd.hpp> 33 33 #include <algorithm> 34 #include <cassert> 34 35 #include <initializer_list> 35 36 #include <iosfwd> … … 178 179 { 179 180 // TODO: implement 181 __unimplemented(); 180 182 return 0; 181 183 } … … 184 186 { 185 187 // TODO: implement 188 __unimplemented(); 186 189 return 0; 187 190 } … … 190 193 { 191 194 // TODO: implement 195 __unimplemented(); 192 196 return nullptr; 193 197 } … … 196 200 { 197 201 // TODO: implement 202 __unimplemented(); 198 203 return nullptr; 199 204 } … … 202 207 { 203 208 // TODO: implement 209 __unimplemented(); 204 210 return nullptr; 205 211 } … … 208 214 { 209 215 // TODO: implement 216 __unimplemented(); 210 217 return nullptr; 211 218 } … … 266 273 { 267 274 // TODO: implement 275 __unimplemented(); 268 276 return 0; 269 277 } … … 272 280 { 273 281 // TODO: implement 282 __unimplemented(); 274 283 return 0; 275 284 } … … 278 287 { 279 288 // TODO: implement 289 __unimplemented(); 280 290 return nullptr; 281 291 } … … 284 294 { 285 295 // TODO: implement 296 __unimplemented(); 286 297 return nullptr; 287 298 } … … 290 301 { 291 302 // TODO: implement 303 __unimplemented(); 292 304 return nullptr; 293 305 } … … 296 308 { 297 309 // TODO: implement 310 __unimplemented(); 298 311 return nullptr; 299 312 } … … 353 366 { 354 367 // TODO: This function does not exits... 368 __unimplemented(); 355 369 //return hel::wstr_lcmp(s1, s2, n); 356 370 return 0; … … 1939 1953 { 1940 1954 // TODO: implement 1955 __unimplemented(); 1941 1956 return size_t{}; 1942 1957 } -
uspace/lib/cpp/include/__bits/thread/future.hpp
rcf9e949 r7dcce0a 1 1 /* 2 * Copyright (c) 201 8Jaroslav Jindrak2 * Copyright (c) 2019 Jaroslav Jindrak 3 3 * All rights reserved. 4 4 * … … 30 30 #define LIBCPP_BITS_THREAD_FUTURE 31 31 32 #include <cassert> 32 33 #include <memory> 33 34 #include <system_error> … … 171 172 { 172 173 // TODO: implement 174 __unimplemented(); 173 175 } 174 176 … … 178 180 { 179 181 // TODO: implement 182 __unimplemented(); 180 183 } 181 184 } -
uspace/lib/cpp/include/cassert
rcf9e949 r7dcce0a 1 1 /* 2 * Copyright (c) 201 8Jaroslav Jindrak2 * Copyright (c) 2019 Jaroslav Jindrak 3 3 * All rights reserved. 4 4 * … … 31 31 32 32 33 namespace std::hel 34 { 35 extern "C" { 36 #include <assert.h> 37 } 33 extern "C" { 34 #include <assert.h> 38 35 } 39 36 40 namespace std 41 { 42 // Note: The only thing imported is assert 43 // and that is a macro. 44 } 37 // TODO: For some reason, this function isn't visible (maybe the 38 // noreturn attribute?), adding a redeclaration here for the 39 // time being. 45 40 46 /** 47 * We need to fix the assert macro because it uses 48 * a non-standard function that we have in the 49 * std::hel namespace. 50 */ 51 #undef assert 52 #define assert(expr) \ 53 do { \ 54 if (!(expr)) \ 55 std::hel::assert_abort(#expr, __FILE__, __LINE__); \ 56 } while (0) 41 extern void __helenos_assert_abort(const char *, const char *, unsigned int); 42 43 #define __unimplemented() assert(!"Not implemented!") 57 44 58 45 #endif
Note:
See TracChangeset
for help on using the changeset viewer.