Andreas Rumpf
74bf316619
more progress on destructor based strings
2018-07-13 21:15:47 +02:00
momf
dd47013017
add SSL_set_SSL_CTX for SNI(Server Name Indication) ( #8308 )
...
* add SSL_set_SSL_CTX for SNI
* fix SSL_set_SSL_CTX
2018-07-13 17:09:22 +01:00
Yuriy Glukhov
dfe3f16022
Don't depend on string.h in codegen ( #8299 )
2018-07-13 17:41:59 +02:00
LemonBoy
54a85b4ff5
Give different names to objects coming from cpp files ( #8278 )
...
Prevent some nasty linker errors if the user switches between c and cpp
backends.
2018-07-13 15:23:41 +02:00
Timothee Cour
40f44a0c16
fix issue #8251 ospaths.isAbsolute: out of bound errors ( #8291 )
...
* fix issue #8251 ospaths.isAbsolute: out of bound errors
* address comments
* add reference to a spec for quirky macos paths
2018-07-13 03:54:48 -04:00
LemonBoy
3163a0f466
Do not consider enums with holes as ordinals ( #8264 )
...
Make the compiler behave consistently with respect to what's written in
the manual.
Fixes #1239
2018-07-12 18:08:45 +02:00
Eugene Kabanov
3fec2ba5e5
Fix terminal.nim to be GCSAFE. ( #8296 )
...
* Also fix deprecated callsite().
2018-07-12 18:06:15 +02:00
LemonBoy
ba1f036a56
Correctly hash inferred types ( #8286 )
...
We don't really want to hash the tyInferred container since that'd make
the "real" type and its inferred counterpart produce different hashes
and types for the very same type.
Fixes #8280
2018-07-12 13:00:11 +02:00
Joey Yakimowich-Payne
9aad193d27
Fix undefined PObject reference
2018-07-12 11:54:25 +01:00
Kaushal Modi
1102f9aaf1
Make the Style enum a proper Ordinal (no holes) ( #8282 )
...
The Style enum needs to be an Ordinal so that it can be used in sets.
2018-07-12 11:30:51 +02:00
skilchen
6de52d2b74
make runnableExamples use a private nimcache so that they can be tested in parallel ( #8281 )
...
* make runnableExamples use a private nimcache so that they can be tested in parallel
2018-07-12 11:06:20 +02:00
cooldome
231a83a6b1
Fixes #8287 ( #8288 )
2018-07-12 11:03:08 +02:00
Quelklef
ac3c4a94ad
Fixed $ on None[T] for T with .name ( #8293 )
2018-07-12 11:01:48 +02:00
Andreas Rumpf
5b59852406
system.substr is not implemented with compilerProcs anymore
2018-07-11 16:39:16 +02:00
Andreas Rumpf
16d8fab310
mmdisp: code cleanups
2018-07-11 16:38:13 +02:00
Timothee Cour
32441d01e5
better doc for hard to find --define:SYMBOL:VAL ( #8257 )
2018-07-11 10:33:33 +02:00
Quelklef
6fe79fd158
Fixed a wrong AST example ( #8269 )
2018-07-11 08:52:09 +02:00
Timothee Cour
25bf0d1683
add os.absolutePath; fixes #8174 ( #8213 )
...
* add os.absolutePath
* fixup
* fixup
* Fixes absolutePath error message.
2018-07-10 20:31:13 +01:00
Andreas Rumpf
8f0c9b2fdd
string comparisons don't have to know the strings representation
2018-07-10 11:37:30 +02:00
Andreas Rumpf
48b98cf701
fixes tos test for OSX
2018-07-10 11:37:02 +02:00
Andreas Rumpf
ce01472ff3
refactorings in preparations for the new runtime
2018-07-10 10:39:53 +02:00
Dominik Picheta
f805018461
Fixes #5880 . ( #7229 )
2018-07-10 00:33:31 +02:00
LemonBoy
5c5388c0a6
Handle subtype relations for converter parameters ( #8248 )
...
Fixes #7098
2018-07-09 20:05:53 +02:00
Dmitry Atamanov
854aa3958f
Fixes maxLineLength's bug in the renderer ( #8240 )
2018-07-09 20:04:57 +02:00
Oscar Nihlgård
3b310e91cd
New implementations of times.parse & times.format ( #8094 )
2018-07-09 20:04:25 +02:00
LemonBoy
c6671776a1
Reset typedescMatched before paramTypesMatch ( #8250 )
...
The flag should not be carried out across different parameters.
Fixes #7794
2018-07-09 15:02:48 +02:00
Araq
470949f2e0
avoid AST streaming, experiment what it breaks
2018-07-09 13:07:55 +02:00
Araq
f8e219b877
add the apis.txt table to nep1.rst
2018-07-09 12:35:25 +02:00
cooldome
dec97924a4
Custom pragmas in proc types ( #8205 )
2018-07-09 12:11:03 +02:00
genotrance
c115090f6e
Testament should run tests with no action ( #8232 )
...
* Testament should run tests with no action
* Fix strutils tests for JS
2018-07-08 20:38:46 -04: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
LemonBoy
03c8fdc6cb
Pick the and symbol we need explicitly ( #8249 )
...
Using getSysSym made the compiler pick a random `and` symbol: if the
symbol table is shuffled we may end up selecting one of the wrong
overloads.
Fixes #8246
2018-07-08 22:00:32 +02:00
Timothee Cour
befca425c4
workaround issue #8223 nim doc fails with doAssertRaises ( #8245 )
2018-07-08 08:16:13 +02:00
Dmitry Atamanov
a6c3bbf01a
Add proc toOpenArray[byte] for strings ( #7820 )
2018-07-07 21:03:22 +02:00
LemonBoy
88714e77d8
Fix comparison of tyGenericBody in typerel ( #8045 )
...
As shown in #7734 and #7733 the logic in typerel fails to determine that
`type Foo` and `type Foo` are indeed equal.
Fixes #7734
2018-07-07 20:49:06 +02:00
Dominik Picheta
73f9ce0221
Merge pull request #8239 from mratsim/patch-1
...
Put back deprecation path for SomeReal
2018-07-07 14:14:32 +01:00
Mamy Ratsimbazafy
75ef90da82
Put back deprecation path for SomeReal
...
was wrongly deleted in c7298561c1
2018-07-07 15:04:41 +02:00
Dominik Picheta
53ce58f050
Merge pull request #6587 from FedericoCeratto/normalizePath
...
Add normalizePath and tests
2018-07-07 10:12:07 +01:00
Dominik Picheta
6594244991
Merge pull request #8229 from timotheecour/patch-6
...
workaround for issue #8227
2018-07-07 10:09:38 +01:00
Timothee Cour
919e7d6656
Update appveyor.yml
2018-07-06 22:43:55 -07:00
Timothee Cour
105cdfa9e1
fix issue #8227
2018-07-06 22:39:08 -07:00
Araq
8667899d53
hotfix: fixes possible out of bounds access in ospaths.joinPath
2018-07-07 02:31:43 +02:00
Federico Ceratto
d65429d857
Add normalizePath and tests
2018-07-06 20:21:39 +01:00
Araq
352b8a4844
Merge branch 'araq-devel' of github.com:nim-lang/Nim into araq-devel
2018-07-06 19:14:35 +02:00
Araq
531013727d
system.nim: minor code style change
2018-07-06 19:13:54 +02:00
Araq
5384de685f
Merge branch 'devel' of github.com:nim-lang/Nim into araq-devel
2018-07-06 18:41:00 +02:00
Andreas Rumpf
963f431443
Merge branch 'araq-devel' of github.com:nim-lang/Nim into araq-devel
2018-07-06 17:27:02 +02:00
Andreas Rumpf
32230ffe31
make tests green again
2018-07-06 17:26:45 +02:00
Dominik Picheta
5e338c371e
Use '\L' instead of '\n' in system for backwards compatibility.
...
See https://github.com/nim-lang/packages/pull/785 .
2018-07-06 15:48:17 +01:00
Araq
8bcaee1fdf
make tmemfile2 work again
2018-07-06 15:53:32 +02:00