Dominik Picheta
bb2aa24c99
Merge pull request #3213 from yglukhov/times-js-fix
...
Fixed compilation of times module with JS.
2015-08-14 17:17:40 +01:00
Reimer Behrends
22789a8275
Fix exponentiation operation to avoid overflow.
...
The exponentation implementation unnecessarily multiplied the
result with itself at the end if the exponent was an even number.
This led to overflow if result*result > high(int).
2015-08-14 14:32:30 +02:00
Yuriy Glukhov
2f8d4c17d8
Fixed compilation of times module with JS.
2015-08-14 12:57:07 +03:00
Andreas Rumpf
40f7646830
Merge pull request #3204 from yglukhov/debugger-on-fix
...
Fixed --debugger:on option. Removed c_line from termios.
2015-08-14 01:52:18 +02:00
Dominik Picheta
ad245dbd77
Merge pull request #3131 from zachaysan/devel
...
Create chomp proc and tests
2015-08-13 22:31:30 +01:00
Yuriy Glukhov
ad98877584
Fixed fromSeconds function JS variant
2015-08-12 18:31:38 +03:00
Yuriy Glukhov
c42b05adb4
Fixed --debugger:on option. Removed c_line from termios.
2015-08-12 12:04:26 +03:00
Araq
d230b75e0a
removed sequtils.reversed again since it's already in algorithm.nim
2015-08-10 01:49:56 +02:00
Andreas Rumpf
99ee5445b7
Merge pull request #3146 from c-blake/devel
...
Add MemFile text interface factored so users can optionally skip Nim …
2015-08-09 20:31:32 +02:00
Araq
cf4879bc48
added sequtils.reversed; refs #3148
2015-08-09 20:29:03 +02:00
tulayang
930e90a730
Modify proc parseHeader
2015-08-09 20:35:23 +08:00
Charles Blake
9c3c48a6d0
Merge ../Nim into devel
2015-08-09 06:58:36 -04:00
Dominik Picheta
34ca9dd586
Merge pull request #3114 from coffeepots/patch-1
...
Procs to decode Time to TimeInfo & TimeInterval
2015-08-08 20:56:14 +01:00
Araq
87815cbdf7
attempt to fix bootstrapping; refs #3139
2015-08-07 22:32:06 +02:00
Araq
c733b3181e
breaking change: symbol lookups in generics follows spec more closely; fixes #2664
2015-08-07 21:28:45 +02:00
Araq
94e504113e
fixes #3193
2015-08-07 19:40:58 +02:00
Dominik Picheta
4a7c1d5fd7
Don't crash on nil in get* procs in the JSON module.
2015-08-06 21:45:52 +01:00
Dominik Picheta
e2886eebb4
Merge pull request #3172 from Nycto/devel
...
Unittest module: Fix multiple requires in a test
2015-08-05 19:42:14 +01:00
Dominik Picheta
05ada2da43
Merge pull request #3180 from yglukhov/3179-workaround
...
Workaround for #3179 .
2015-08-05 19:41:19 +01:00
Charles Blake
26f7a53d4a
Merge ../Nim into devel
2015-08-04 16:13:45 -04:00
Charles Blake
5ec4b7946f
Add note about what is included.
2015-08-04 13:25:41 -04:00
Charles Blake
0487ad4180
Use hyperlinks to refer to other procs.
2015-08-04 13:16:27 -04:00
Charles Blake
abf15ec6ce
Expand memSlices doc comment & use better example.
...
Have lines() iterators docs point back to memSlices() for details.
2015-08-04 12:11:33 -04:00
Araq
ab26298a03
added system.unsafeAddr
2015-08-04 17:31:18 +02:00
Charles Blake
8b38e8b2a4
Merge ../Nim into devel
2015-08-04 04:58:00 -04:00
Dominik Picheta
f8f9677205
Updated documentation of system.new. Ref #2699 .
2015-08-04 09:06:47 +01:00
Dominik Picheta
202cc48903
The async macro now supports transforming multiple async procs.
...
This is a workaround for #3182 , no forward declarations. You can now do
this:
```nim
async:
proc bar(): Future[T]
proc foo() = await bar()
proc bar() {.async.} = echo(123); await foo()
```
2015-08-03 21:28:33 +01:00
Charles Blake
8ad5649442
Merge ../Nim into devel
2015-08-03 15:11:30 -04:00
Dominik Picheta
b9c1dd0072
Fixed macros.nim not compiling.
...
Iterator aliases are not possible.
2015-08-03 18:42:02 +01:00
Charles Blake
9e8b4475e2
Spruce up doc comments as per dom96 suggestions.
2015-08-03 12:34:03 -04:00
Charles Blake
7cb9f363d6
Merge ../Nim into devel
2015-08-03 12:27:30 -04:00
Charles Blake
c373c7209a
toString --> $.
2015-08-03 12:26:08 -04:00
Dominik Picheta
85699b744d
Merge pull request #3161 from barcharcraz/fix_times_on_vcc2015
...
import the correct symbols on windows
2015-08-03 17:08:14 +01:00
Dominik Picheta
303bc45745
Added documentation to macros.items.
2015-08-03 17:05:14 +01:00
Dominik Picheta
04dc46b1aa
Merge branch 'macro-items' of https://github.com/transfuturist/Nim into transfuturist-macro-items
2015-08-03 17:03:57 +01:00
Charles Blake
2d9a0c96c6
Merge ../Nim into devel
2015-08-03 08:06:20 -04:00
Yuriy Glukhov
436b847a7e
Workaround for #3179 .
2015-08-03 14:11:48 +03:00
Charlie Barto
4d6bcbc2f4
make this change VCC specific
2015-08-02 18:55:35 -04:00
Michał Zieliński
0575437762
Improve discoverability of 'of' operator
2015-08-02 22:55:22 +02:00
singularperturbation
4c1611fc13
Fix for image directive with periods
...
Saw in https://github.com/nim-lang/nimforum/issues/41 that there was an
issue in rendering inline images. Traced back through rstgen and found
that it was not counting something like:
`.. image:: http://i.imgur.com/oCem13Y.png ` as valid since it contained
a period, and this wasn't in the set of valid characters, so the empty
string is returned by default.
Added a period to the allowable characters, and now renders correctly.
Test case:
```
import rst, rstgen, strtabs
var docConfig: StringTableRef
docConfig = rstgen.defaultConfig()
docConfig["doc.smiley_format"] = "/images/smilieys/$1.png"
proc rstToHtml(content: string): string =
result = rstgen.rstToHtml(content, {roSupportSmilies,roSupportMarkdown},
docConfig)
var a: string = rstToHtml(".. image:: http://i.imgur.com/oCem13Y.png ")
echo a
```
2015-08-02 14:16:53 -05:00
Charles Blake
1bea224c4a
Try to get examples to render right as HTML.
2015-08-02 12:29:24 -04:00
Charles Blake
2e4e0ffd3d
Add some example code blocks.
2015-08-02 12:25:57 -04:00
Charles Blake
ad67bfcf46
Quote the \ in doc comments.
2015-08-02 12:21:49 -04:00
Charles Blake
63c4f204e8
Add some little one-line doc comment of MemSlice.
2015-08-02 12:20:05 -04:00
Charles Blake
2bcd4e9a38
Add top of module comment. Re-order definitions to
...
type, then converter, then 3 iterators lowest- to highest-level
(also fastest to slowest) including a new intermediate iterator
lines(MemFile, buffer) that is more like readLine(File) in case
that helps anyone port code.
Add doc comments.
Also have toString just use newString+c_memcpy instead of
currently fragile toNimStr which Araq wants a separate PR for.
2015-08-02 12:03:52 -04:00
Charles Blake
a9d09f2868
Revert toNimStr fix as per Araq request.
2015-08-02 12:03:11 -04:00
Charles Blake
fc54fbfb98
Nix unchecked which has no semantics for objects.
2015-08-02 05:28:21 -04:00
Andreas Rumpf
6fea1a7bb6
Merge pull request #2699 from SSPkrolik/newrefref
...
new now able to make distinction between ref and non-ref types, so we…
2015-08-02 11:05:47 +02:00
Nycto
eac484167c
Fix multiple requires in a test
2015-08-01 18:48:41 -07:00
Araq
f9750781c0
fixes #3080
2015-08-02 02:56:02 +02:00