Fabian Keller
e2567e2e03
Fix sigsegv in getTypeImpl for unnamed tuple ( #5440 )
...
avoid sigsegv in getTypeImpl for unnamed tuple; fixes #4862
2017-03-02 15:30:19 +01:00
Andreas Rumpf
d651012688
template+emit supports volatileRead and volatileWrite ops
2017-01-23 11:22:19 +01:00
Araq
c166394024
fixes #5131
2016-12-20 22:42:25 +01:00
Araq
5c6a4d9e90
make tvarargsuntyped test deterministic, independent of compiler's hashing order
2016-12-13 08:32:30 +01:00
Andrea Ferretti
15f7094fde
Added a dump macro for debugging
2016-09-22 12:07:36 +02:00
Andreas Rumpf
34dd08e9ae
added missing test files
2016-08-26 14:49:57 +02:00
Andreas Rumpf
60b187513e
stdlib and compiler don't use .immediate anymore
2016-07-29 23:51:01 +02:00
Andreas Rumpf
be22071b2e
fixes a varargs of untyped regression
2016-07-24 21:37:59 +02:00
Andreas Rumpf
389f500226
added test case for #537
2016-07-06 16:52:41 +02:00
James Osborn
0356f53b56
getTypeInst and getTypeImpl mostly working now and added test
2016-05-04 00:24:44 -05:00
Andreas Rumpf
cb3a38afa2
fixes #1152
2016-04-03 23:38:29 +02:00
Andreas Rumpf
c9966a3e17
use 'using' instead of 'sig' keyword; cleans up new features a bit
2016-02-29 12:19:54 +01:00
Araq
ba6d0eb4db
fixes #3541
2015-11-18 16:07:20 +01: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
695e2e970e
implemented macros.getImpl
2015-08-21 02:34:34 +02:00
Zahary Karadjov
02f97489b7
fix #1858 again; restores the support for static macro params
2015-08-02 23:58:22 +03:00
Adam Strzelecki
1a0417fbe0
macros: Introduce sameType(a, b) for node types
...
Previously introduced node comparison `==` was working somehow wrong on nodes
returned from getType(a), comparing just ids of the symbols.
Recently introduced `==` change 47dce26886
started comparing symbol nodes pointer-wise, thus strictly. Since getType(a)
always creates new symbol pointing to the type, comparing two such nodes using
`==` always returns false, even they point to the same type.
That is why we need a new sameType macro to be able to tell if these nodes
point to the same type.
2015-07-03 11:11:10 +02:00
Araq
60ac5e3e76
fixes #3046
2015-07-03 10:55:50 +02:00
patrick dw
69e15ac32f
renamed writeln to writeLine in tests
2015-06-19 01:34:34 -05:00
Adam Strzelecki
b49c75c82a
macros: Add test for node comparsion
2015-06-10 18:07:21 +02:00
Adam Strzelecki
1d47617d1b
Macros: Introduce getType(t: typedesc): NimNode
...
Since typedesc are exception in macros and they are not implicitly converted to
NimNode on macro call, we need some means to perform such conversion on demand.
Fortunately it is as simple as declaring new magic "NGetType" proc with
typedesc parameter.
NOTE: Keeping actual macro exceptional behavior for typedesc is important,
since it allows passing typedesc macro parameter to other procs or macros
expecting type parameter. If typedesc parameter was implicitly converted, then
we would lost this ability.
2015-05-17 15:28:41 +02:00
Araq
4d20aafb5e
fixes #2372
2015-04-25 23:16:57 +02:00
Araq
e55f5d1fd4
fixes #2505 , fixes #1853 , fixes #2522
2015-04-20 21:25:49 +02:00
Araq
9abfc60db4
parse 'of' branches for macros properly
2015-04-19 14:25:16 +02:00
Araq
10c1d7f519
minor lexer cleanups; fixes #2504
2015-04-10 14:03:48 +02:00
fowlmouth
cfbb7390e2
added test for symbol type
2015-03-27 02:07:09 -05:00
def
fd4e629905
Rename PNimrodNode to NimNode
2015-03-17 17:50:32 +01:00
Araq
335c19c869
tester reports ignored tests and supports 'nimout'; fixes #2211
2015-02-25 12:59:32 +01:00
Simon Hafner
43ddb4806b
added tests from issue #497
2015-02-01 04:37:34 -06:00
Araq
5f6131cbdc
fixes #1944
2015-01-18 14:44:16 +01:00
Araq
9280473eb1
fixes #1120
2014-12-25 17:22:41 +01:00
Araq
76c3b314dc
implemented 'koch pdf'
2014-12-19 13:44:56 +01:00
Araq
bc5879b9b7
fixes error propagation for macros.parseExpr
2014-11-13 09:12:27 +01:00
Araq
b2f577df23
fixes #1473
2014-11-12 02:36:59 +01:00
Araq
c6034277fc
further adaptations
2014-08-29 09:12:12 +02:00
Araq
d80d8aa74d
fixes #1323
2014-07-08 20:12:07 +02:00
Araq
39ce17a73e
fixes #933
2014-07-08 16:37:45 +02:00
Araq
f16449ec22
fixes #1103 ; fixes #1297
2014-07-08 02:02:58 +02:00
Araq
0339b9d386
fixes #1319
2014-06-30 22:24:08 +02:00
flaviut
2fcc911a94
Enable disabled test
2014-05-26 13:50:08 -04:00
flaviut
4d4ac62d40
Add test for #1149
2014-05-26 13:49:23 -04:00
Araq
fe690a2c91
added test case for bug #1140
2014-05-06 00:05:30 +02:00
Dominik Picheta
57cc8237f7
Fixes #1093 .
2014-04-20 21:55:45 +01:00
Araq
12e3c11eb6
fixes #911
2014-03-28 08:40:15 +01:00
Dominik Picheta
23d581d377
Added test for issue #911 .
2014-03-27 21:52:28 +00:00
Araq
dc956c485a
fixes tmemit regression
2014-03-26 22:56:56 +01:00
Araq
0c31686fec
new VM is getting stable
2014-02-24 01:30:40 +01:00
Araq
3ec2973875
fixes #926
2014-02-17 08:26:44 +01:00
Araq
d912d18379
tyTypeDesc and tyRange always have 1 child; this might be tyNone but it is required for skipTypes
2014-02-05 23:43:13 +01:00