Commit Graph

3705 Commits

Author SHA1 Message Date
LemonBoy
90025e242d Minor fixes for asyncjs (#8894)
* Minor fixes for asyncjs

Mark internal procedures as used
Allow .async. for more node kinds
Make .async. work for nkStmtList

* Fix logic error in both the async macros
2018-09-07 16:42:38 +02:00
LemonBoy
36e6ca16d1 Fix too broad generic match for toHex (#8889)
Fixes #8865
2018-09-05 20:57:50 +02:00
Vindaar
d34233b501 [DOC] fix typos in strscans documentation (#8885) 2018-09-05 14:57:36 +02:00
c-blake
cec89d8354 This has been unnecessary as long as rawNewObj has called zeroMem, (#8867)
and more recently indexing past the Nim-logical end has become
illegal making this line cause a crash.
2018-09-04 15:26:34 +02:00
Dominik Picheta
e789acb59b Merge pull request #8840 from pigmej/fix_with_timeout
Handle fut.failed in asyncdispatch.WithTimeout
2018-09-03 21:34:52 +01:00
Araq
b53531ee31 make 'koch web' work again 2018-09-03 20:02:59 +02:00
Araq
ef771cde1a document usage of marshal.to; fixes #3150 2018-09-03 09:44:44 +02:00
Jedrzej Nowak
ac066c5db0 Handle fut.failed in asyncdispatch.WithTimeout
Fixes: #8839
2018-09-02 01:49:03 +02:00
Araq
06e6c38d99 strutils: don't deprecate escape/unescape, too much code uses it 2018-08-31 17:30:58 +02:00
Nathan Cahill
aa33bcb974 Update html elements to current html spec (#8791) 2018-08-31 12:03:49 +02:00
Araq
bacf08e65d merged #8624 manually; fixes #8442; closes #8575 2018-08-31 11:19:42 +02:00
Araq
fab4498727 times.nim: minor code cleanup 2018-08-31 00:30:19 +02:00
Andreas Rumpf
36473acf47 fixes a parseopt regression (#8820) 2018-08-30 23:50:09 +02:00
Araq
dfdf8e58c7 fixes #8768 properly 2018-08-30 16:54:03 +02:00
Araq
8e33667262 unidecode module: change the default to: embed resource file into the application; fixes #8767 2018-08-30 15:39:47 +02:00
Araq
a14ffd6119 fixes #8768 2018-08-30 15:33:34 +02:00
Timothee Cour
3e6b58323b fix tests/coroutines/texceptions.nim (#8810) 2018-08-30 13:53:16 +02:00
Dominik Picheta
6e83746caa Net module fixes (#8597)
* net.accept no longer needs an initialised socket. Fixes #7848.
* Assert error when using sendTo/recvFrom on TCP socket.
* net.sendTo now raises OSError.
2018-08-28 15:52:28 +02:00
Araq
a42150f9a8 make parseopt work with DLLs on Unix 2018-08-28 15:41:55 +02:00
Araq
e02e057a70 make parsopt compile under --taintMode:on 2018-08-28 15:41:55 +02:00
Araq
6f16166c60 parseopt: keep the seq of arguments as given; fixes various command line parsing edge cases; refs #6818 2018-08-28 15:41:55 +02:00
hlaaf
a270899502 Add escapeJsonUnquoted for json escaped strings without quotes (#8785)
* Add escapeJsonUnquoted

* Add tests for escapeJsonUnquoted
2018-08-27 12:22:55 +02:00
Nathan Cahill
238809f506 Update html attrs to current html spec 2018-08-26 21:48:37 +01:00
Timothee Cour
b4edfa613b [ospaths] simplify getConfigDir and introduce normalizePathEnd to make (#8680)
sure path endings are normalized with 0 or 1 trailing sep, taking care
of edge cases
2018-08-26 17:36:11 +02:00
Dominik Picheta
81f920a4ee Process timers before and after select. Fixes flaky #7758 test. (#8750) 2018-08-25 09:44:02 +02:00
gemath
f26ed1d540 Add interpreting event parser proc to pegs module. (#8075)
* Added simple interpreting event parser to pegs module.
* Has side-effects problem.
* Macro solution works.
* First flat callback test works.
* Fixed namespace pollution.
* Added handler for pkChar.
* Replaced event parser test.
* Started extensive docs.
* 'callback' to 'handler' renaming part 1.
* Renaming 'callback' to 'handler' part2, completed comments.
* Fixed exported API pollution.
* Added more event handler hooks, fixed comments.
* Changed event parser addition entry.
* Fixed variable names and comments.
* Enhanced comment.
* Leave handlers are not called for an unsuccessful match.
* The three varieties of back-reference matches are processed in separate
of-clauses now.
* Improved hygiene and (almost) eliminated exports.
* Trying to fix CI test breakage by eliminating export.
* Trying to fix CI test breakage by eliminating exports.
* Re-activated leave handler code execution for unsuccessful matches.
* Eliminated the last export statement (with a funny smelling hack).
* Make sure leave handler code is executed for all unsuccessful matcher
cases.
* Replaced local unicode.`==` with export.
2018-08-24 20:13:37 +02:00
Oscar Nihlgård
8aae5c9385 Don't assume utcOffset == +0 for old dates on Windows (#8744) 2018-08-23 20:35:22 +02:00
Dominik Picheta
1b1633991a Don't skip poll() when no handles are present. (#8727)
Fixes #7886.

Fixes #7758.

Fixes #6929.

Fixes #3909.

Replaces #8209.
2018-08-23 20:35:22 +02:00
Andreas Rumpf
1c3cfd74ff make ospaths compile; fixes ospaths.getConfigDir for Posix 2018-08-23 17:55:00 +02:00
Araq
30597e643f fixes merge conflict 2018-08-23 11:30:55 +02:00
Tim
55a8649749 Decrease source code size in htmlparser and add one check (#8690) 2018-08-23 10:30:16 +02:00
Araq
b9a1816009 make sequtils compile 2018-08-22 22:48:49 +02:00
Oscar Nihlgård
1d93991929 Cleanup ttimes (#8714)
* Refactor fromWinTime

* Cleanup ttimes
2018-08-22 17:20:41 +02:00
Araq
dbd21d670c make more things compile without isNil 2018-08-22 15:12:02 +02:00
Araq
64517445ea even more strict isNil handling for strings/seqs in order to detect bugs 2018-08-22 12:35:46 +02:00
cooldome
d0f4a929e0 fixes 8594 (#8721) 2018-08-22 12:16:18 +02:00
Dominik Picheta
3e7aaa7087 Fixes #8716. (#8717) 2018-08-22 00:18:17 +02:00
Araq
f12a5431a1 make tests green again 2018-08-21 20:33:47 +02:00
Dmitry Atamanov
b75808c7d9 Fixes ropes regressions due to the not-nil strings (#8687) 2018-08-20 16:55:22 +02:00
Andreas Rumpf
2def616069 exploit nil seqs for performance (#8688)
* changes $ for seqs to never produce 'nil'
* exploit the fact that empty seqs don't have to allocate in the code generator
2018-08-20 11:54:18 +02:00
Andreas Rumpf
f2263cd129 make tests green again 2018-08-18 18:52:39 +02:00
Oscar Nihlgård
33ed8f7e73 times.Timezone changes (#8527)
* Use floorDiv in times.nim

* New implementation of times.Timezone

* Tweak doc comments

* Fix typo
2018-08-17 11:12:58 +02:00
Kaushal Modi
d73b19e379 Look for user nim.cfg in "nim/" subdir in usual config dir locations (#8662)
Fixes https://github.com/nim-lang/Nim/issues/8661.
2018-08-17 10:52:10 +02:00
Arne Döring
ce4383be3b fixes #8658; addQuoted on Option[T] (#8659) 2018-08-17 01:24:28 +02:00
Timothee Cour
af037546b0 fixes #7187 sequtils.toSeq produces the sequence from the iterator twice (#8586)
* cleanups refs #8584
* fixes #7187
2018-08-16 23:19:36 +02:00
Emery Hemingway
2da0341b4d Genode fixes (#8501)
* Genode fixes

- wrap strings in "Genode::Cstring" when logging
- define SIGABRT for Genode
- disable GCC -fstack-protector
- use log RPC for fatal messages
- add --os:genode build to appveyor
- define paramStr and paramCount

* Select fixups for Genode POSIX
2018-08-16 18:12:37 +02:00
Timothee Cour
87b2d2aad6 added a variant of quoteShellCommand that takes an openArray of arguments (#8272) 2018-08-16 14:10:16 +02:00
Andreas Rumpf
e4c759fbff Merge branch 'devel' into araq-misc 2018-08-16 01:22:21 +02:00
Andreas Rumpf
94684488d6 make more tests green 2018-08-14 21:15:03 +02: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