Commit Graph

5779 Commits

Author SHA1 Message Date
Dominik Picheta
7ef0cfebb5 Merge pull request #7495 from GULPF/fix-fill-bug
Fix algorithm.fill for empty input
2018-04-04 13:54:40 +01:00
Oscar Nihlgård
34df046d37 Fix algorithm.fill for empty input 2018-04-04 13:02:14 +02:00
Oscar Nihlgård
da077eea7c Move algorithm tests away from koch 2018-04-04 13:00:51 +02:00
Roman Ovseitsev
17d0e29d40 Fix documentation link for set type (#7465) 2018-04-03 10:39:17 +02:00
Andreas Rumpf
8b0ea4b501 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2018-04-03 10:25:26 +02:00
Andreas Rumpf
d837362216 C codegen: preparations for different seq and string implementations 2018-04-03 10:25:20 +02:00
Eugene Kabanov
0b99e8e8cb Fix compiler stuck on waiting C/CPP backends. (#7472) 2018-04-02 21:54:27 +02:00
Andreas Rumpf
b25044286b sysstr.nim: fix minor typos 2018-04-02 17:01:40 +02:00
Dominik Picheta
755570bcfb Merge pull request #7459 from arnetheduck/posix-rlimit-nofile
RLIMIT_NOFILE as posix const
2018-04-02 14:35:04 +01:00
Dominik Picheta
39c71d6211 Merge pull request #7336 from yglukhov/ipaddr-sockaddr-conversions
Conversion procs for (IpAddress, Port) <-> (SockAddr, Socklen)
2018-04-02 14:31:05 +01:00
Jacek Sieka
9e51e737b6 RLIMIT_NOFILE as posix const 2018-04-01 20:17:32 +08:00
data-man
759023e157 Comparing datetimes 2018-04-01 00:41:38 +03:00
Araq
a9691aeef5 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2018-03-30 02:32:29 +02:00
Araq
9de05ec3e0 further steps in implementing sink parameters; refs #7041 2018-03-30 02:32:13 +02:00
treeform
577025c319 Add some missing things to dom.nim
Add window.performance, window.performance.now(), window.devicePixelRatio, window.scrollX and Y, style.overflowX and Y, node.getBoundingRect.
2018-03-29 05:31:19 -07:00
Dominik Picheta
9c2cdc94a2 Fixes #7433. 2018-03-29 11:57:53 +01:00
Dominik Picheta
082b071683 Merge pull request #7075 from lcrees/get_default
Add default argument to tables.getOrDefault
2018-03-29 11:41:25 +01:00
Dominik Picheta
916ce09c80 Merge pull request #7423 from alehander42/feature-disable-param-filtering
Unittest param filtering
2018-03-29 11:37:34 +01:00
Graham Fawcett
ace96bf83e net.connect (with timeout), raise error on connect failure
Under Linux (probably POSIX), the current code tests for timeout, but
does not test for connection failure. connectAsync() returns succesfully
upon an EINPROGRESS result; but at this point, the connection state is
still unknown. After selectWrite() is done, we need to test the socket
for errors again.
2018-03-28 19:09:16 -04:00
Alexander Ivanov
53088c05cb Disable param filtering 2018-03-27 19:23:08 +03:00
Yuriy Glukhov
0770844285 Comments addressed 2018-03-24 22:55:06 +02:00
Araq
1d9343080d added toOpenArray builtin for zero-copy slices; syntax sugar yet to come 2018-03-24 20:26:34 +01:00
Andreas Rumpf
88d8a14fb4 mysql.nim: fixes how the DLL version loading works 2018-03-24 08:37:09 +01:00
Euan T
9e0e099cc0 Add an example to the dynlib module doc
Following a quesiton on Gitter about loading libraries dynamically based upon some runtime parameter, I noticed there's no documentation on the `dynlib` module for something that's quite common.
2018-03-21 10:30:58 +00:00
Solitude
fc22627dbd libssl.so.44 fix (#7358) 2018-03-20 11:15:21 +01:00
Dominik Picheta
58cda83d9e Merge pull request #7356 from GULPF/parseXml-string
Add string overload for parseXml
2018-03-18 13:00:43 +00:00
Oscar Nihlgård
e0ce4f842b Add string overload for parseXml 2018-03-18 11:30:11 +01:00
jcosborn
e39f2a9283 fix allocator corruption for large sizes (#7338)
* fix allocator corruption for large sizes
* allow large chunks to coalesce and added test case
* use correct constants in MaxBigChunkSize
2018-03-17 23:59:04 +01:00
andri lim
19164929ed fixes #7347, asyncfile.getFileSize (#7354)
* fixes #7347

* fixes #7347
2018-03-17 15:21:22 +00:00
Yuriy Glukhov
5ea80b43b1 More flexible lowerBound interface (#7344) 2018-03-16 16:22:45 +01:00
PMunch
a9f21cffdf Add CommentStmt to astGenRepr (#7313)
* Added codeRepr and dumpCode to the macros module.

This allows those writing macros to write examples, get the code to generate the AST for that example, and then modify that code to be dynamic with the macro function.
2018-03-16 15:57:40 +01:00
WhiteDuke
d56ca42b1a [Documentation] free -> dealloc (#7334) 2018-03-16 15:55:00 +01:00
Andreas Rumpf
083d84ba03 json.nim: documentation copy&paste issue 2018-03-16 15:33:09 +01:00
Yuriy Glukhov
b52de1fcee More flexible fromSockAddr interface 2018-03-15 17:39:09 +02:00
Yuriy Glukhov
1bd0efb067 Fixed crash/interface. Added tests. 2018-03-15 15:49:41 +02:00
Yuriy Glukhov
29bb10b185 Convertion procs for (IpAddress, Port) <-> (SockAddr, Socklen) 2018-03-14 23:14:31 +02:00
Araq
8683c8a389 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2018-03-12 09:02:21 +01:00
Araq
710c1184a3 fixes httpclient documentation comment 2018-03-12 08:59:04 +01:00
ryanc-signiq
67fd7a7f86 FIXUP: Removed +1 causing substr slicing to skip chars on first iteration of while loop (#7312) 2018-03-08 08:33:41 +01:00
c-blake
551d7b7dc1 Add ability for users to elide ':' or '=' when CLI authors pass a (#7297)
* Add ability for users to elide ':' or '=' when CLI authors pass a
non-empty partial symbol table.  Behavior should be identical to the
old behavior if empty partial symbol tables are passed.  "Partialness"
of the symbol table refers to the fact that one need only specify
option keys that are toggles/booleans/do not take arguments, hence
the "NoArg" suffixes in shortNoArg and longNoArg.

commandLineParams() returns seq[TaintedString], so use that consistently
in getopt() and initOptParser(seq[TaintedString]) dropping the taint at
the quoting stage just as with the paramStr() logic.

Fix capitalization inconsistency of cmdLongOption.

Export OptParser.cmd and OptParser.pos so that, at least *in principle*,
users of this API can handle "--" option processing termination or some
"git-like" sub-command stop word with a separate option sub-syntax.
{ Eg., ``case p.key of "": echo "trailing non-option args: ", p.cmd[p.pos..^1]``
or ``case p.kind of cmdArgument: if p.key == "mysubcmd": ...``. }  Really,
searching for the last delimiter before p.pos is probably needed to frame
the trailing text..Not the nicest API, but still possible with effort.

* Make requested changes from string to seq[char]
(see https://github.com/nim-lang/Nim/pull/7297)

* Document new behavior and elaborate on some special cases.

* NoArg => NoVal to be less ambiguous/more clear.

* Add more documentation and an example snippet.

* Tweak language. Clarify still using ':'/'=' is ok.

* Add a test case for new NoVal behavior.
2018-03-08 08:12:34 +01:00
alaviss
566cec74b6 lib/system: Fix programResult documentation (#7307) 2018-03-07 14:46:02 +01:00
Simon Krauter
077ff83b6e Fixes #7212, now with better code (#7302)
When platform is Windows and app type is GUI, an error about missing DLL file is displayed as message box in addition to the console output, which is usually not visible.
2018-03-06 11:58:43 +01:00
Araq
a9974a33f1 more documentation fixes 2018-03-05 23:25:50 +01:00
Andreas Rumpf
0132442c1d strutils.strip: improve the documentation; fixes #7159 2018-03-05 21:45:13 +01:00
Andreas Rumpf
e2094bc6f4 make re.split consistent with strutils.split and other programming languages; refs #7278 2018-03-05 21:39:13 +01:00
Andreas Rumpf
5c8332d871 fixes #7293 2018-03-05 19:46:13 +01:00
cooldome
4790b6d63f Fixes 7283 (#7284) 2018-03-05 19:06:47 +01:00
Araq
86c3832201 development version is 0.18.1 2018-03-05 17:02:19 +01:00
Araq
15e044416f fixes #7291 2018-03-05 13:38:32 +01:00
Araq
e3b6ee85b3 algorithm.nim: change formatting to Nim's defaults 2018-03-05 13:20:50 +01:00