add trailing newlines
parent
dfc867bd48
commit
b66c684add
|
@ -33,4 +33,4 @@ Additionally some code from the libc++ project has been used as a reference;
|
|||
libc++ is a part of the LLVM project.
|
||||
|
||||
Additional thanks to Dale Weiler aka graphitemaster (reference code in the
|
||||
Neothyne project) and cppreference.com.
|
||||
Neothyne project) and cppreference.com.
|
||||
|
|
|
@ -39,4 +39,4 @@ systems that implement POSIX API will also work (if they don't, bug reports
|
|||
are welcome).
|
||||
|
||||
Windows is supported at least with the MinGW (gcc) and Clang compilers. MS
|
||||
Visual Studio is currently unsupported.
|
||||
Visual Studio is currently unsupported.
|
||||
|
|
|
@ -83,4 +83,4 @@ int main() {
|
|||
auto s = appender<String>();
|
||||
format(s, "hello %s", "world");
|
||||
writeln(s.get());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,4 +19,4 @@ int main(int argc, char **argv) {
|
|||
if (argc < 1) return 1;
|
||||
list_dirs(argv[1]);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,4 +24,4 @@ int main() {
|
|||
/* generate string ABCDEF */
|
||||
String s(map(range(6), [](int v) -> char { return v + 65; }));
|
||||
writeln(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -85,4 +85,4 @@ int main() {
|
|||
|
||||
writeln("=== program end ===");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,4 +19,4 @@ int main() {
|
|||
print_result(x);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,4 +34,4 @@ int main() {
|
|||
writefln("-- str beg --\n%s\n-- str end --", ts2);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -629,4 +629,4 @@ FilterRange<R, detail::FilterPred<R, P>> filter(R range, P pred) {
|
|||
|
||||
} /* namespace ostd */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -131,4 +131,4 @@ inline bool operator>=(const Array<T, N> &x, const Array<T, N> &y) {
|
|||
|
||||
} /* namespace ostd */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -955,4 +955,4 @@ using AtomicUintFast64 = Atomic<UintFast64>;
|
|||
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -8,4 +8,4 @@
|
|||
|
||||
#include "ostd/internal/mutex.hh"
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -191,4 +191,4 @@ public:
|
|||
|
||||
} /* namespace ostd */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -550,4 +550,4 @@ inline bool directory_change(ConstCharRange path) {
|
|||
|
||||
} /* namespace ostd */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -897,4 +897,4 @@ Ptrdiff format(R &&writer, ConstCharRange fmt, const A &...args) {
|
|||
|
||||
} /* namespace ostd */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -944,4 +944,4 @@ template<typename F> using FunctionMakeDefaultConstructible
|
|||
|
||||
} /* namespace ostd */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -50,4 +50,4 @@ PointerRange<const T> citer(std::initializer_list<T> init) {
|
|||
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -651,4 +651,4 @@ public:
|
|||
|
||||
} /* namespace ostd */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -189,4 +189,4 @@ private:
|
|||
|
||||
} /* namespace ostd */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -273,4 +273,4 @@ namespace detail {
|
|||
|
||||
} /* namespace ostd */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -12,4 +12,4 @@
|
|||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -194,4 +194,4 @@ inline void writefln(ConstCharRange fmt, const A &...args) {
|
|||
|
||||
} /* namespace ostd */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -177,4 +177,4 @@ template<
|
|||
|
||||
} /* namespace ostd */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -177,4 +177,4 @@ template<
|
|||
|
||||
} /* namespace ostd */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -419,4 +419,4 @@ inline constexpr Maybe<Decay<T>> make_maybe(T &&v) {
|
|||
|
||||
} /* namespace ostd */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -1072,4 +1072,4 @@ constexpr int UsesAllocatorConstructor
|
|||
|
||||
} /* namespace ostd */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -8,4 +8,4 @@
|
|||
|
||||
#include "ostd/internal/mutex.hh"
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -17,4 +17,4 @@ inline void operator delete[](void *, void *) {}
|
|||
#include <new>
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -143,4 +143,4 @@ inline uint64_t endian_swap64(uint64_t x) {
|
|||
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -1277,4 +1277,4 @@ template<typename T> using RangeOf = decltype(iter(declval<T>()));
|
|||
|
||||
} /* namespace ostd */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -148,4 +148,4 @@ template<
|
|||
|
||||
} /* namespace ostd */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -233,4 +233,4 @@ inline StreamRange<T> Stream::iter() {
|
|||
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -852,4 +852,4 @@ String to_string(std::initializer_list<T> init) {
|
|||
|
||||
} /* namespace ostd */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -186,4 +186,4 @@ private:
|
|||
|
||||
} /* namespace ostd */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -552,4 +552,4 @@ constexpr bool UsesAllocator<Tuple<T...>, A> = true;
|
|||
|
||||
} /* namespace ostd */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -1158,4 +1158,4 @@ using UnderlyingType = typename detail::UnderlyingTypeBase<T>::Type;
|
|||
|
||||
} /* namespace ostd */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -92,4 +92,4 @@ namespace detail {
|
|||
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -383,4 +383,4 @@ namespace detail {
|
|||
|
||||
} /* namespace ostd */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -389,4 +389,4 @@ using Vec4i = Vec4<int>;
|
|||
|
||||
} /* namespace ostd */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -463,4 +463,4 @@ inline bool operator>=(const Vector<T, A> &x, const Vector<T, A> &y) {
|
|||
|
||||
} /* namespace ostd */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -71,4 +71,4 @@ for fname in listdir(TESTDIR):
|
|||
|
||||
print "\n%(blue)s%(bold)stesting done:%(end)s" % colors
|
||||
print "%(green)sSUCCESS: " % colors + str(nsuccess) + colors["end"]
|
||||
print "%(red)sFAILURE: " % colors + str(nfailed) + colors["end"]
|
||||
print "%(red)sFAILURE: " % colors + str(nfailed) + colors["end"]
|
||||
|
|
|
@ -25,4 +25,4 @@ void operator delete(void *p) noexcept {
|
|||
|
||||
void operator delete[](void *p) noexcept {
|
||||
free(p);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,4 +41,4 @@ int main() {
|
|||
assert(to_string(z) == "{2, 4, 8, 16, 32}");
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -87,4 +87,4 @@ int main() {
|
|||
assert(to_string(st) == "{5, 10}");
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -90,4 +90,4 @@ int main() {
|
|||
assert(to_string(w) == "{5, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 3, 2, 1}");
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue