| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
before); refactoring (#10242)
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
Those are useful in generic code, and `proc write*[T](s: Stream, x: T)` was already public.
|
|
|
|
| |
powers of two when needed. This prevents the selector to allocate large amounts of memory at startup on systems with a high RLIMIT_NOFILE setting (#10194)
|
|
|
|
|
|
|
|
| |
table (#10182)
* add compiler/unittest_light.nim for easy diffing: assertEquals and mismatch
* fixup
* add alignTable, parseTableCells
|
| |
|
|\
| |
| | |
fix leftover comment from #9766
|
| | |
|
|\ \
| | |
| | | |
Fix libssl order. Newest one is 1.1
|
| | | |
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
which leaked implementation detail (#10070)
* add `isNamedTuple`; make $(1, 2) be (1, 2) instead of leaking implementation detail (Field0: 1, Field1: 2)
fixes this: #8670 (comment) /cc @alehander42 @Vindaar @mratsim
* Note: isNamedTuple is useful in other places, eg #10010 (comment)
* move isNamedTuple to helpers.nim to avoid exposing new symbol to system.nim
* remove workaround in tests/vm/tissues.nim failing test now that #10218 was makes it work
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* fixes #8794 : `Error: undeclared field: 'foo'` should show type (+ where type is defined) (hard to guess in generic code)
* fixes #9270: `--listFullPaths` not honored by `declared in foo.nim` messages
* fixes #9767: VM stacktrace doesn't honor --excessiveStackTrace:on
* fixes #9768: VM stacktrace misses column info, can lead to ambiguous or harder to read stacktraces
* refactors some col+1 code to col + ColOffset (self documents code)
* make getProcHeader show declared info location also for types and all routine kinds (including macros,templates) instead of just (rather arbitrarily) for iterator,proc,func,method
* --listFullPaths now is honored in more places
* fix typo system/except.nim => lib/system/excpt.nim
* remove substr(foo, 0) hack in compiler/vm.nim which seems old and not applicable anymore
|
|/ |
|
| |
|
|
|
|
| |
(#10183)
|
|
|
|
|
|
|
| |
Darwin has long deprecated the wait union, but their macros still assume
it unless you define _POSIX_C_SOURCE. This trips up C++ compilers.
This commit duplicates the behavior of WEXITSTATUS when _POSIX_C_SOURCE
is defined.
|
|
|
|
|
|
| |
* [nimpretty] fix #10211; fix #10199
* address comments
* un-document --backup and set its default to false
|
|
|
|
|
|
| |
* Don't use deprecated pragma syntax
* Remove pure pragma, since it's a noop now
|
| |
|
|
|
| |
thanks @timotheecour for spotting this
|
|
|
|
|
|
|
|
| |
* fix #10082
* added test
|
| |
|
|
|
|
|
|
| |
* add custom pragma support for var and let symbols
* updated changelog for custom pragmas on var and let symbols
* add oldast switch for backwards compatibility
|
|
|
|
|
|
|
| |
According to POSIX, system() shall returns the termination status in the
format specified by waitpid(), which means WEXITSTATUS should be used to
retrieve the exit code portably.
This fixes execShellCmd on Haiku.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* removed from `compiler`:
* lists (deprecated 2 years ago)
* removed from `lib` (all deprecated 3 years ago):
* ssl
* matchers
* httpserver
* removed from `lib/deprecated`:
* unsigned
* actors (and three accompanying tests)
* parseurl
* moved to `lib/deprecated`:
* securehash (the reason for not directly removing - it was deprecated (only) one year ago)
|
| |
|
| |
|
|
|
| |
Forgot to add an item, breaking change
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ODBC Errors were presented to the users as a sequence of characters.
I.e.:
>test_oracle.exe
Error: ['H', 'Y', '0', '0', '0', '\x00', '\x00', ...]
test_oracle.nim(15) test_oracle
test_oracle.nim(8) test_oracle
db_odbc.nim(534) open
db_odbc.nim(168) dbError
Error: unhandled exception: ODBC Error [DbError]
This patch fix the string decoding, creating a real string:
>test_oracle.exe
Error: HY000 [Oracle][ODBC][Ora]ORA-12541: TNS:no listener
test_oracle.nim(15) test_oracle
test_oracle.nim(8) test_oracle
db_odbc.nim(534) open
db_odbc.nim(168) dbError
Error: unhandled exception: ODBC Error [DbError]
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
prevents certain bugs, plus other fixes (#10089)
* [testament] --verboseMegatest flag to make megatest compilation verbose
* replace "tests" by testsDir
* megatest's nimcache is now in same dir as other tests to avoid clobbering (eg when running tests from multiple Nim repos)
|
|
|
|
| |
* document that toInt, toBiggestInt round towards 0 and add runnableExamples
* minor doc fixes
|
| |
|
|
|
|
|
| |
* system: fix nimGC_getStackBottom doc
* system/helpers: avoid leaking docs to system
|
| |
|
| |
|
|
|
| |
Change 'ableit' to 'albeit'.
|
|
|
|
|
| |
* fix bug in doAssertRaises when exception==Exception
* add testcase for doAssertRaises
|
| |
|
|
|
|
|
|
|
|
| |
* as instructed in #2353, provides a short description why
there are no specialized procs for seq[Rune]
* adds several examples to better explain what some functions do
* small fixes (double backticks, add missing dots, etc.)
* use `rune` instead of "unicode characer"
|
| |
|
| |
|
| |
|
|
|
|
| |
(these tests are also covered by the other CIs)
|