Commit Graph

13005 Commits

Author SHA1 Message Date
Andreas Rumpf
0cbfd67522 make typesafeprintf test green 2018-07-17 20:33:42 +02:00
Andreas Rumpf
6a9b082b53 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2018-07-17 18:23:03 +02:00
Andreas Rumpf
2e3f477957 VM: accessing the string terminator is not allowed anymore; cleanup tests/system/tostring.nim 2018-07-17 18:22:20 +02:00
Andreas Rumpf
ae09879b3a fixes #8223 2018-07-17 18:21:09 +02:00
LemonBoy
ebf4e9f717 Extend init variable tracking to tuple assignments (#8321)
Fixes #8314
2018-07-17 17:50:05 +02:00
Andreas Rumpf
fc0bcccc15 fixes #8230 2018-07-17 16:43:05 +02:00
Andreas Rumpf
f29225fc63 sigmatch: no trailing whitespace 2018-07-17 16:14:12 +02:00
Andreas Rumpf
59a5c0462f fixes #8338 2018-07-17 15:49:55 +02:00
Andreas Rumpf
1aa3435317 manual.rst: fixes a typo 2018-07-17 15:49:42 +02:00
Quelklef
f2b6efb7dc Make pragmas look clickable in docs (#8176)
* Visual cues for hidden pragmas in docs.
* Add hover cue
2018-07-17 12:14:31 +02:00
John Novak
692d1da95d Fix setCursorPos and setCursorXPos on POSIX (#8310) 2018-07-17 11:35:26 +02:00
Jeff Ciesielski
f8723cd1e3 Add extended baud rates to posix/termios (#8322)
115200 is really common.  I'd like to get support in nimserial, but
I'm guessing it would help to have support in the stdlib first.
2018-07-16 15:15:47 -04:00
Timothee Cour
2ac22b4cf0 fix #8273 times format regression, and fix inconsistent ordering in 1 format overload (#8290)
* Fix issue #8273 [regression] [times.format] Error: attempting to call
undeclared routine: 'format'

* rename format to f for consistency with other overloads and avoid
similar bugs as #8273

* breaking change since PR 8094: changed format*(f: TimeFormat, dt: DateTime) to format*(dt: DateTime, f: TimeFormat) for consistency w other overloads

* use consistent ordering for times.parse procs
2018-07-16 21:15:17 +02:00
Arne Döring
97d37aeb0b Gdb pretty printers (#8263) 2018-07-16 19:30:05 +02:00
LemonBoy
217a2cf098 Resolve converter call to constants in case arms (#8336)
Fixes #8333
2018-07-16 16:19:31 +02:00
Timothee Cour
d07489abf4 fix #7405 and #8195 (#8198)
* fix #7405 and #8195

* control pushInfoContext in semExprNoType,genStmts via a new hintExtendedContext; make NotesVerbosity computation more DRY

* addressed comments
2018-07-16 13:34:44 +02:00
Dominik Picheta
b625e6115c Merge pull request #8328 from jyapayne/patch-1
Remove cross-compile breaking env var in Nintendo Switch config
2018-07-15 14:00:29 +01:00
Joey Yakimowich-Payne
d3c2fb22db Remove env vars from docs 2018-07-15 11:23:22 +09:00
Joey
ab840f445e Remove cross-platform breaking env var in Nintendo Switch config
This was bad to put in here, so my bad. It doesn't work on anything except platforms with shell support. Users can use `--passC` and `--passL` options for customization.
2018-07-15 10:54:50 +09:00
Oscar Nihlgård
332469692d Bugfix for modules with multi byte characters in the name (#8319) 2018-07-14 16:00:51 +02:00
LemonBoy
9b98add6c7 Do not crash while instantiating a generic outside a call (#8279)
Fixes #8270
2018-07-14 01:44:40 +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
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
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
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