Commit Graph

13157 Commits

Author SHA1 Message Date
Timothee Cour
87b2d2aad6 added a variant of quoteShellCommand that takes an openArray of arguments (#8272) 2018-08-16 14:10:16 +02:00
Araq
2870ca5d71 Merge branch 'araq-misc' into devel 2018-08-16 12:30:00 +02:00
Andreas Rumpf
d82dd3c47d attempt to make travis green 2018-08-16 09:05:19 +02:00
Timothee Cour
e05d0ea0bb tester.nim add more diagnostics (#8631) 2018-08-16 00:54:39 -04:00
Andreas Rumpf
e4c759fbff Merge branch 'devel' into araq-misc 2018-08-16 01:22:21 +02:00
Andreas Rumpf
b78114ce50 minor edit to the changelog 2018-08-16 00:23:37 +02:00
Andreas Rumpf
1061e26bc9 implements 'case statement macros' in order to encourage the development of pattern matching mechanisms that are not terrible to look at 2018-08-16 00:16:49 +02:00
Andreas Rumpf
da41fc1801 put the new for loop macros under an experimental switch named 'forLoopMacros' 2018-08-15 17:45:57 +02:00
Andreas Rumpf
27e1fbe7db implement the --nilseqs switch properly 2018-08-15 16:56:32 +02:00
Andreas Rumpf
0da91aa744 changes how the now illegal 'string == nil' comparison is detected 2018-08-15 16:31:56 +02:00
LemonBoy
531c66d1ec Allow taking address of skForVar variables (#8632)
Fixes #8630
2018-08-14 21:28:14 +02:00
Andreas Rumpf
94684488d6 make more tests green 2018-08-14 21:15:03 +02:00
LemonBoy
c04404635b Fix unsound transform pass (#8633)
When a `var openArray[T]` function parameter goes trough the
`transformAddrDeref` pass we may lose the `var` specifier, leading to
nasty crashes at runtime.
2018-08-14 20:38:04 +02:00
Dominik Picheta
9a7e6be62f Merge pull request #8625 from drslump/fixes-7586-documentation-on-hints
Fixes #7586: Adds documentation for hints
2018-08-14 11:26:53 +01:00
Dominik Picheta
bc957ace2e Merge pull request #8628 from hlaaftana/patch-1
Small documentation typo in math
2018-08-14 11:21:26 +01:00
Timothee Cour
ed9fd2b63c fixes #8577, fixes #8580, other bug fixes (#8584) 2018-08-14 10:44:28 +02:00
alaviss
7ef268274f Haiku support for Nim (#8542)
* posix_other: Haiku now has spawn.h

This is added per https://dev.haiku-os.org/ticket/13446

* posix_other: Add Haiku specific Dirent members

* cpuinfo: Add an implementation for Haiku

* distros: Add basic Haiku support

* encodings: update Haiku support

* fenv, math: Haiku now provides libm

* times: Add Haiku struct members

* ansi_c, osalloc: Add Haiku constants

* threads: Add Haiku support

* testament: Haiku uses LIBRARY_PATH

* nim.cfg: Update Haiku support

libnetwork should only be linked if network functions are used

* threads: Haiku does not support -pthread switch

* tworkingdir: Haiku's env is in /bin

* posix_other: add SIGKILLTHR for Haiku

* sockets: link with libnetwork on Haiku

* coro: correct ucontext.h location

http://pubs.opengroup.org/onlinepubs/009696699/basedefs/ucontext.h.html

* coro: ucontext backend is not available on Haiku

Haiku doesn't provide the <ucontext.h> header, as it was removed from POSIX

* coro: fix setjmp backend

The compiler does not allow statements after a noreturn function

* nativesockets: Haiku doesn't support AI_V4MAPPED

* system: hostOS can contains "haiku"

* os: add support for Haiku's packagefs

packagefs is read-only, but there are writable holes to the underlying
file system as well

* os: update constant for Haiku
2018-08-14 09:35:07 +02:00
Araq
18859cbaa1 make nimweb compile again 2018-08-14 01:36:02 +02:00
Araq
83c89197f3 renames threadpool.await to blockUntil; refs #7853 2018-08-14 01:28:04 +02:00
Dominik Picheta
feda366d86 Adds get for Option[T]. (#8462) 2018-08-14 01:09:08 +02:00
hlaaf
ed4a267399 Small documentation typo in math 2018-08-14 01:33:56 +03:00
Araq
741f95e2d6 make dochack.nim compile again 2018-08-14 00:09:46 +02:00
Araq
f91a181f58 make tests green again 2018-08-13 23:16:03 +02:00
Araq
a0cde8cee6 Merge branch 'devel' into araq-misc 2018-08-13 20:16:18 +02:00
Araq
f960523b46 document the new --nilseqs:on switch 2018-08-13 20:12:13 +02:00
Araq
99384c0234 make NimInAction tests green 2018-08-13 20:12:00 +02:00
Araq
420ed0596b fixes more nil handling regressions 2018-08-13 17:27:44 +02:00
Araq
d60bb1b289 build Nimble with --nilseqs:on until Nimble is fixed 2018-08-13 16:07:23 +02:00
Araq
46204eba1f make the vccexe helper tool compile again 2018-08-13 15:42:20 +02:00
cooldome
aa1cdebdc2 Converters to take into account constraints. Fixes #7520 (#8593) 2018-08-13 15:02:20 +02:00
Andreas Rumpf
975114e114 make more tests green 2018-08-13 13:02:52 +02:00
Andreas Rumpf
96e0b56a55 make generic tests green again 2018-08-13 12:54:02 +02:00
Andreas Rumpf
9f31096870 make JS tests green 2018-08-13 12:51:31 +02:00
Andreas Rumpf
81645deb87 testament: change how JS tests are disable for travis on OSX 2018-08-13 12:51:19 +02:00
Andreas Rumpf
7f49364fd0 make more tests green 2018-08-13 12:29:03 +02:00
Iván Montes
ee29370f60 Fixed 7478: splitLines keepEol option (#8621) 2018-08-13 11:42:50 +02:00
Andreas Rumpf
dae5450947 WIP: disallow 'nil' for strings and seqs 2018-08-13 11:41:33 +02:00
DrSlump
6a0751e81a Fixes #7586: Adds documentation for hints 2018-08-13 11:24:58 +02:00
Naveen Arunachalam
e839c01f5b Clarify usage of "Test" argument in Koch (#8613)
Minor change to help people (e.g. like myself) who are starting out :)
Currently, the readme mentions the use of `./koch tests cat async`, but
the help text for koch doesn't mention it. Helptexts are modified
accordingly.
2018-08-12 22:10:06 +02:00
LemonBoy
3cb963f114 Fixes 8616 (#8617)
* Don't leave dangling forward references to types

Fixes #8616

* Add a test case for #8616
2018-08-12 20:43:30 +02:00
LemonBoy
ba7c874a7d Mysterious fix for #8550 (#8561)
Replacing the `for` body with a nkEmpty node is not the right thing to
do.
2018-08-12 20:41:48 +02:00
LemonBoy
089529c16a Preliminary check for test category folder existence (#8579)
Warn the user if nothing is executed.
2018-08-10 23:03:42 -04:00
Andreas Rumpf
32afc1a562 make tests green again 2018-08-10 17:27:30 +02:00
Andreas Rumpf
60c7a0a08f Merge branch 'araq-misc' of github.com:nim-lang/Nim into araq-misc 2018-08-10 16:51:45 +02:00
Araq
4cf1e3eb4b rename SystemError to CatchableError in order to avoid breaking Nimble and probably lots of other code 2018-08-10 15:31:53 +02:00
Andreas Rumpf
ba6601b149 fixes #8599 2018-08-10 12:09:51 +02:00
Andreas Rumpf
404de2f23e Merge branch 'devel' into araq-misc 2018-08-10 12:06:16 +02:00
Andreas Rumpf
1d78ba64b4 rework the exception hierarchy; refs #8363 2018-08-10 11:40:01 +02:00
Andreas Rumpf
28c709fa84 cleanup nimsuggest tests a bit 2018-08-10 09:37:41 +02:00
Andreas Rumpf
7e2418bd22 make nimsuggest go up in the directory tree in order to determine the main .nim file 2018-08-10 09:37:17 +02:00