Miran
f7ce4e8705
System cleanup, part 1 ( #13069 )
...
* system.nim: mark what every .pop does
* system.nim: un-nest when statements
2020-01-10 10:14:02 +01:00
Andreas Rumpf
3a39ab83ac
fixes an asyncftpclient bug; refs #13096 [backport]
2020-01-10 09:42:21 +01:00
narimiran
e9e114058c
[backport] system/io.nim fix wrong documentation comment [ci skip]
2020-01-10 08:53:44 +01:00
Timothee Cour
4cd86c0842
typetraits: fixes #6454 ; genericParams; added lenTuple; added tuple type get ( #13064 )
2020-01-10 08:51:37 +01:00
Araq
fcd2f305ad
fixes #13070
2020-01-10 08:32:30 +01:00
Araq
033da35de1
fixes #13072 ; no test case because it will be added later with more exception handling related bugfixes
2020-01-10 08:32:30 +01:00
Tomohiro
a33b72af49
Fix error check code in osproc ( #13090 ) [backport]
2020-01-09 18:00:41 +01:00
Ico Doornekamp
bb7273bc47
Use '__noinline' instead of 'noinline' for N_NOINLINE gcc attribute, this prevents clashes with systems where 'noinline' might be already defined ( #13089 )
2020-01-09 17:27:42 +01:00
Timothee Cour
3f78873898
remove all remaining warnings when build nim (with -d:nimHasLibFFI) ( #13084 )
...
* cleanup deprecations in evalffi + elsewhere
* remove dead code getOrdValue64
2020-01-09 13:19:18 +01:00
Andreas Rumpf
852170cc78
take the one good idea from --os:standalone and enable it via -d:StandaloneHeapSize ( #13077 )
2020-01-09 11:48:37 +01:00
Teashrock
27fee4d8b4
Deleted misplaced separator ( #13085 ) [backport]
...
Misplaced separator, which was constantly breaking compilation on Haiku OS, was deleted.
2020-01-09 11:48:13 +01:00
Andy Davidoff
56fb909676
fix crash due to errant symbols in nim.cfg ( #13073 ) [backport]
2020-01-08 22:25:25 +01:00
narimiran
5e9ebe9ec1
move entries from the wrong changelog file [ci skip]
2020-01-08 15:20:30 +01:00
Timothee Cour
15043d35b8
make SuccessX show project file + output file ( #13043 )
...
* make SuccessX show project file + output file
* address comments
* fix test and add `result.err = reNimcCrash` otherwise hard to see where reNimcCrash used
* address comments
2020-01-08 00:39:07 +01:00
cooldome
871d5e79b1
distinctBase type trait for distinct types ( #13031 )
2020-01-08 00:36:57 +01:00
b3liever
8bcc7e8b9e
basename supports pragmaexpr ( #13045 )
...
* basename supports pragmaexpr
* update changelog
2020-01-07 11:25:51 +01:00
Bung
291608045c
add pqserverVersion,pqconnectionNeedsPassword,pqconnectionUsedPassword ( #13060 )
2020-01-07 10:52:02 +01:00
Timothee Cour
e5ae7ceaa3
[easy] --hint 🔗 on now shows link cmd instead of nothing ( #13056 )
...
* --hint🔗 on now shows link cmd instead of nothing
* update doc for --listCmd
2020-01-07 10:38:59 +01:00
Timothee Cour
569d4d18f8
--styleCheck:hint now works ( #13055 )
2020-01-07 09:53:11 +01:00
Miran
1551fff853
clean up deprecated stuff and unused imports in tests ( #13059 )
2020-01-07 09:49:08 +01:00
loloiccl
6a7a19eb15
Modify the test command for nimly (nimble-package) ( #13053 )
2020-01-07 06:47:40 +01:00
Brent Pedersen
a019cc52f6
testament/important_packages dont run hts ( #13052 )
2020-01-07 06:47:18 +01:00
Clyybber
ba4fbb6328
Continue #13002 ( #13021 )
2020-01-06 11:40:42 +00:00
Timothee Cour
72499a8d7c
[cleanup] remove disabled (and obsolete) ttypetraits; rename ttypetraits2 => ttypetraits ( #13041 )
...
* remove disabled (and obsolete) ttypetraits; rename ttypetraits2 => ttypetraits
* D20200105T085828 fix super strange bug that causes CI to fail: builds.sr.ht with: `Error: Settle timed out after 120 attempts`
2020-01-05 19:33:33 +01:00
BinHong Lee
2cfa8d8385
Allow -o option for buildIndex ( #13037 ) [backport]
...
Addressing #12771
This is also included in the docgen documentation [here](https://nim-lang.org/docs/docgen.html ) but its not respected as reported in the issue.
2020-01-05 19:24:29 +01:00
Kamanji
9a5aaadda8
Rst parser respect :start-after: and :end-before: in include directive ( #12972 )
...
* [FEATURE] rst parser respect :start-after: in include
Rst parser now respects `:start-after:` and `:end-before:` attributes
for `include` directive.
* [DOC] include directive parsing proc update
* [TEST] Added unit tests for include rst directive in `rst` module
2020-01-05 10:01:21 +01:00
Araq
ae68ff959b
fixes #12996
2020-01-05 09:42:44 +01:00
Araq
fdcea66fd9
reprjs: style changes
2020-01-05 09:42:44 +01:00
cooldome
a3df1b55f3
fixes #13013 , reverts previous changes to readLines() ( #13036 ) [backport]
...
* Revert "remove default argument for readLines (#12807 ) [backport]"
This reverts commit c949b81efd .
2020-01-05 09:22:41 +01:00
Jasper Jenkins
9474a818af
fix enumtostr crash for enum-range ( #13035 )
2020-01-05 09:18:14 +01:00
Timothee Cour
13c08f3ab4
VM: support importc var, ptr/pointer types, cast int <=> ptr/pointer ( #12877 )
...
* VM: allow certain hardcoded special var variables at CT
* VM: allow all importc var, cast[int](ptr)
* fix tests tests/vm/tstaticprintseq.nim, tests/cpp/t8241.nim
* VM: == works for ptr/pointer nodes
* bugfix: ==, cast now also works for pointer, not just ptr
* VM supports cast PtrLikeKinds <=> PtrLikeKinds / int
* improve cname handling
* fixup + bug fix
* VM: support cast from ref to int
* address comment: opcLdGlobalDeref => opcLdGlobalDerefFFI
* defensive check against typ == nil
2020-01-05 09:11:29 +01:00
Araq
a1beeb313f
fixes #13032
2020-01-04 19:33:49 +01:00
Andreas Rumpf
0f6987a86e
fixes #12964 ( #13027 )
2020-01-04 07:40:02 +01:00
cooldome
47e7b8771c
Fixes #13026 ( #13028 )
2020-01-04 02:33:13 +01:00
rockcavera
89570aa44b
fix #12988 ( #13022 )
...
fix #12988
2020-01-03 22:41:58 +01:00
Andreas Rumpf
fb1b51f1e3
fixes #12956 ( #13020 )
2020-01-03 17:36:09 +01:00
Andreas Rumpf
8aadba1a2a
fixes #12961 ( #13019 )
2020-01-03 14:30:54 +01:00
Siegfried Ehret
a577a88c36
Fix typo ( #13015 ) [backport]
2020-01-03 10:23:28 +01:00
Andreas Rumpf
0ecb709cbe
fixes #12978 ( #13012 )
2020-01-03 01:21:45 +01:00
cooldome
c949b81efd
remove default argument for readLines ( #12807 ) [backport]
2020-01-02 23:27:37 +01:00
cooldome
002d50f1f0
Sink to MemMove optimization in injectdestructors ( #13002 )
2020-01-02 22:58:01 +01:00
Timothee Cour
0ff23e696c
fix #12985 {.push.} now does not apply to generic instantiations ( #12986 )
2020-01-02 16:49:57 +01:00
Andreas Rumpf
c3344862b0
--exception:goto switch for deterministic exception handling ( #12977 )
...
This implements "deterministic" exception handling for Nim based on goto instead of setjmp. This means raising an exception is much cheaper than in C++'s table based implementations. Supports hard realtime systems. Default for --gc:arc and the C target because it's generally a good idea and arc is all about deterministic behavior.
Note: This implies that fatal runtime traps are not catchable anymore! This needs to be documented.
2020-01-01 10:01:49 +01:00
Andy Davidoff
8a63caca07
fixes disruptek/nimph#102 multi-level nim.cfg use ( #13001 ) [backport]
2019-12-31 22:29:19 +01:00
cooldome
584e8c8283
fixes #12989 ( #12992 )
...
* fixes #12989
* Revert "remove unwanted changes"
This reverts commit 501829732a .
2019-12-31 21:13:26 +01:00
Andreas Rumpf
ce40ed18bb
fixes #12965 ( #12991 )
2019-12-31 09:42:18 +01:00
Andrii Riabushenko
9eeff690d5
Revert "fixes #12989 "
...
This reverts commit 928c2fee06 .
2019-12-31 00:10:02 +00:00
Andrii Riabushenko
928c2fee06
fixes #12989
2019-12-31 00:07:49 +00:00
Ștefan Talpalaru
defaf3b5a5
c_fflush() the rawWrite() buffer ( #12987 )
...
Stack traces on an unbuffered stderr get out of sync with line-buffered
stdout - usually on Windows terminals or CI logs. This fixes it by
calling C's fflush() on the output buffer in the procedure used for
printing stack traces.
2019-12-30 02:13:41 +01:00
Chris Heller
8d1a7db6ea
Check pqntuples > 0 in getValue. Fixes #12973 ( #12974 )
2019-12-29 17:41:18 +01:00