Jasper Jenkins
0606b6a44e
fix range[enum] type conversion ( #13204 ) [backport]
2020-01-20 16:56:59 +01:00
alaviss
470faa97c6
compiler/ccgtypes: hide exportc proc unless it has dynlib ( #13199 )
...
This hides most of stdlib's internal functions from resulting
binaries/libraries, where they aren't needed on *nix. Static libraries
are not affected by this change (visibility doesn't apply to them).
2020-01-20 10:51:21 +01:00
cooldome
da1bddb084
fixes #13195 ( #13198 )
...
* fixes #13195
* extra fix
* fix typo
2020-01-20 10:41:12 +01:00
Andreas Rumpf
41555ca86f
fixes #13110 ( #13197 )
2020-01-19 23:30:45 +01:00
Andrii Riabushenko
6f3476d39c
Revert "fixes #13195 "
...
This reverts commit cd7904f2b2 .
2020-01-19 20:33:23 +00:00
Andrii Riabushenko
7576387dfe
revert last commit
2020-01-19 20:21:26 +00:00
slangmgh
13ddbc46fc
Fixes #13186 ( #13188 )
2020-01-19 14:16:50 +01:00
cooldome
416b4c3612
more on arc codegen ( #13178 )
...
* arc codegen for union type
* add more tests
* fix offsetof
* fix tsizeof test
* fix style
2020-01-19 14:14:26 +01:00
Timothee Cour
5010bc1af5
fixes #13144 ( #13145 )
...
* fixup: genscript now does not copy nimbase.h but uses -I$nim/lib
2020-01-18 01:21:13 +01:00
Araq
107352f9d7
fixes #13157
2020-01-17 17:52:06 +01:00
Clyybber
451c47634c
Fix docs for subdirs too ( #13180 )
...
* Fix doc subdirs
* Extract to helper proc, and fix on windows
2020-01-17 16:49:37 +01:00
cooldome
f51613e262
make sink operator optional ( #13068 )
...
* make sink operator optional
* bug fix, add changelog entry
* Trigger build
* fix one regression
* fix test
* Trigger build
* fix typos
2020-01-17 11:44:06 +00:00
Andreas Rumpf
7626907401
ARC works for async on Windows ( #13179 )
2020-01-17 11:14:17 +01:00
Jasper Jenkins
796aafe7e0
make case-object transitions explicit, make unknownLineInfo a const, replace a few magic numbers with consts ( #13170 )
2020-01-17 10:34:31 +01:00
cooldome
2bf337abae
fixes #13095 ( #13181 )
...
* fixes #13095
* fix typo
2020-01-17 09:17:18 +01:00
Clyybber
e3acb2d12c
Cleanup DFA ( #13173 )
2020-01-16 20:15:50 +01:00
Timothee Cour
1b54be7779
fixes #12998 nim doc regression ( #13117 )
2020-01-16 14:19:58 +01:00
cooldome
5ef0494677
Working towards arc codegen ( #13153 )
...
fixes #13029
2020-01-16 14:16:17 +01:00
Andreas Rumpf
a5e67071d2
ARC: misc bugfixes ( #13156 )
...
* fixes #13102
* closes #13149
* ARC: fixes a move optimizer bug (there are more left regarding array and tuple indexing)
* proper fix; fixes #12957
* fixes yet another case object '=' code generation problem
2020-01-15 22:13:31 +01:00
Timothee Cour
d88b52c0bc
successX now correctly shows html output for nim doc, nim jsondoc; fix #13121 ( #13116 )
...
* successX now correctly shows html output for nim doc
* fixes #13121
* fixup hintSuccessX to be less weird
2020-01-15 15:18:37 +01:00
Ico Doornekamp
79a326759a
Added 'ansic' os support for minimal (embedded) targets ( #13088 )
...
* os:any implementation
* os:asny: omit flock/funlock calls in echoBinSafe
* Disabled default "unhandled expection" reporting for `--os:any` to reduce
code size. Added unhandledExceptionHook instead which can be used to get
a notification from Nim and handle it from the application.
2020-01-15 11:06:41 +01:00
Andreas Rumpf
675ca997fb
fixes #9674 [backport] ( #13143 )
2020-01-14 16:20:48 +01:00
Andreas Rumpf
8b00586488
fixes #13104 [backport] ( #13142 )
2020-01-14 15:16:36 +01:00
cooldome
b4545f03de
pass platform argument only if vccexe is used ( #13078 )
...
* pass platform only if vccexe is used
* fixes #12297
2020-01-14 15:02:10 +01:00
Andreas Rumpf
fadbd8f70d
fixes #10665 ( #13141 ) [backport]
2020-01-14 13:51:28 +01:00
Andreas Rumpf
9fc04a555c
fixes #13105 ( #13138 )
2020-01-14 12:57:20 +01:00
Andreas Rumpf
d56848878c
fixes #13119 ( #13128 )
...
* fixes #13119
* fixes a regression
2020-01-14 09:56:08 +01:00
Timothee Cour
49d1822c8f
fixes #13100 nim doc now treats export localSymbol correctly ( #13123 ) [backport]
...
* fix #13100 nim doc now treats `export localSymbol` correctly
* use owner instead
2020-01-13 22:05:38 +01:00
Andreas Rumpf
eadd1ba9ed
fixes #13112 ( #13127 )
...
* improve line error information
* fixes #13112
2020-01-13 15:47:17 +01:00
Andreas Rumpf
abea80376a
fixes #13122 ( #13126 )
...
* fixes #13122
* moved tests to where they belong
2020-01-13 14:11:51 +01:00
Jasper Jenkins
bf2e052e6d
fix rtti sizeof for varargs in global scope ( #13125 ) [backport]
2020-01-13 10:17:21 +01:00
Andreas Rumpf
767592a3c3
more arc features ( #13098 )
...
* config update
* ARC now supports 'repr' and 'new' with finalizers is supported
2020-01-10 23:17:33 +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
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
Andy Davidoff
56fb909676
fix crash due to errant symbols in nim.cfg ( #13073 ) [backport]
2020-01-08 22:25:25 +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
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
Clyybber
ba4fbb6328
Continue #13002 ( #13021 )
2020-01-06 11:40:42 +00: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
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
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
Andreas Rumpf
0ecb709cbe
fixes #12978 ( #13012 )
2020-01-03 01:21:45 +01:00