Commit Graph

44 Commits

Author SHA1 Message Date
LemonBoy
334032294f Fix linking issue in cpp codegen
Declare the root symbol only once and have the other modules depending
on it emit an `extern` declaration.

Fixes #9013
2018-09-19 12:46:50 +02:00
Araq
d2208091fa disable Nimble dependencies for appveyor 2018-09-14 09:45:03 +02:00
Araq
f91a181f58 make tests green again 2018-08-13 23:16:03 +02:00
LemonBoy
d0b60f1fe3 Generate dynlib strings as a single rope (#8247)
In order not to trip the optimization in genInfixCall we have to do so.
The same trick is also used in setExternName.

Fixes #8241
2018-07-08 22:07:45 +02:00
Zahary Karadjov
5f2cdcd4fa fix #7653 2018-06-10 22:27:51 +03:00
Andreas Rumpf
0ba50f9890 make tests green again 2018-04-22 00:19:41 +02:00
zah
121b9e26fb Static[T] fixes (#7333)
* fix the usage of unresolved static[T] parameters in proc signatures
* fix tsametype and tmacrogenerics
* Allow creating composite type classes with concepts and using them in type signatures
* Allow integers to be used in ident concatenations
* Support using imported C++ generic types in proc signatures
* fixes #7230
* closes #7379
* re-enable some metatype tests
2018-03-24 15:28:09 +01:00
cooldome
4164ec4f8b Fixes #6837 (#7271) 2018-03-02 12:14:41 +01:00
cooldome
45d3e2e510 genTryCpp codegen. Fixes #7232. Fixes #7239 (#7240) 2018-02-22 09:58:56 +01:00
cooldome
3659fec725 Alternative fix for #4910 that covers #6892; fixes #6892 (#6938) 2017-12-17 23:56:21 +01:00
Araq
eae1aaa377 fixes another sighashes problem 2017-12-08 10:06:20 +01:00
Yuriy Glukhov
e1ed34627f Fixes #5979 (#5980) 2017-11-19 02:32:39 +01:00
Jacek Sieka
b122836acf use targets from test spec when running testament tests (#6687) 2017-11-15 22:37:51 +01:00
Araq
a75f3b3661 fixes #4910 2017-10-14 22:35:20 +02:00
andri lim
57edf619fe fixes #6016 union alias trigger bad codegen (#6117)
* fixes #6016 union alias trigger bad codegen
* cpp test ok
* merging some test into one file
2017-08-03 11:03:47 +02:00
Zahary Karadjov
cdb011afdc attempt to fix a compilation problem caused by nimcache 2017-05-13 15:46:47 +03:00
Araq
93fb8b67b9 fixes #5142 2016-12-23 12:27:14 +01:00
Araq
0daca5c463 make travis green 2016-12-22 20:46:12 +01:00
Araq
0ef6815529 fixes #5140 2016-12-22 16:43:37 +01:00
Andreas Rumpf
2bb49136de added missing file 2016-12-21 12:49:20 +01:00
Andreas Rumpf
d2fe857f94 fixes #5136 2016-12-21 11:38:33 +01:00
Araq
24239c2361 Merge branch 'devel' into sighashes 2016-12-17 23:04:34 +01:00
Andreas Rumpf
b013430929 reworked emit pragma; fixes #4730 2016-12-17 14:20:57 +01:00
Andreas Rumpf
e169eaac5b make tsigbreak.nim compile 2016-12-12 14:08:01 +01:00
Araq
de844c7767 attempt to make travis green again 2016-12-01 09:54:45 +01:00
Araq
2a7b4fda78 fixes #5081 2016-12-01 08:46:44 +01:00
Andreas Rumpf
3710e62241 fixes #4625 2016-09-13 16:33:43 +02:00
Andreas Rumpf
af1e941872 fixes #2259, fixes #1389 2016-06-02 18:12:11 +02:00
mjendrusch
01ca3ba26d Added test case
Previously offending code
2016-04-17 17:11:02 +02:00
def
c50b5b62ef Fix a few deprecation warnings 2016-01-25 19:10:37 +01:00
Araq
c97cbe7abd fixes #3299 2015-10-15 09:31:54 +02:00
Adam Strzelecki
be991ed413 Rename rawsockets module to nativesockets
This change was done to avoid confusion with TCP/IP raw sockets. Native sockets
module represents handling native system low level socket API in general and is
not just limited anyhow to TCP/IP raw sockets.

A stub lib/deprecated/pure/rawsockets.nim module has been added as
compatibility layer for old code using rawsockets, so this change will not
break existing code.
2015-10-03 19:45:41 +02:00
Adam Strzelecki
e80465dacf tests: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:04:32 +02:00
Araq
8594faa543 fixes #2841 2015-07-22 17:08:21 +02:00
Araq
c6398d408d fixes #1888 2015-04-27 23:11:59 +02:00
Araq
c01d9d081b added test for #2536 2015-04-24 12:35:13 +02:00
Araq
e55f5d1fd4 fixes #2505, fixes #1853, fixes #2522 2015-04-20 21:25:49 +02:00
Zahary Karadjov
6fb372d96b The getSubsystem<T> example in the manual currently fails with a codegen error
A faulty proc declaration is generated:
N_NIMCALL(System::Input*, SystemManager::getSubsystem<'*0>())(void);
The manual has been edited to add a nodecl pragma, which alleviates the issue

Fix a typo in the vector_iterator example from the previous commit.
2015-04-14 00:03:31 +03:00
Zahary Karadjov
1ebf1aaa80 importing of C++ nested generics like std::vector<T>::iterator, using the apostrophe operator 2015-04-13 23:49:41 +03:00
Araq
36acac3000 fixes #1717, fixes #2324 2015-03-22 09:31:16 +01:00
Philip Wernersbach
dcf4cee37c Add test for fix in f8d6d74368. 2015-03-15 17:54:57 -04:00
Araq
24ae0c387f some love for the testsuite; fixed regressions 2015-03-01 21:41:21 +01:00
def
19993d73ed Add test for #1460 2015-02-04 20:10:50 +01:00
def
c3989f64ef Add test for #1459 2015-02-04 20:08:26 +01:00