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
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
Araq
f9750781c0
fixes #3080
2015-08-02 02:56:02 +02:00
Araq
e9899af9b2
fixes #3135
2015-08-02 02:56:00 +02:00
jonathonf
9dde0ae3ac
Set correct Host in request header
...
Ensure the correct destination hostname is used in the request, otherwise the request will fail in one of a number of interesting ways when using a proxy.
Fixes https://github.com/nim-lang/Nim/issues/3166
2015-08-01 20:53:37 +01:00
def
13389eab9b
Add arm64 support (untested)
2015-07-31 23:57:50 +02:00
def
130605567e
Add powerpc64el support (untested)
2015-07-31 23:55:31 +02:00
def
70c4176105
Add Mipsel CPU support (untested)
2015-07-31 23:16:52 +02:00
Charlie Barto
ad896f03e8
import the correct symbols on windows
2015-07-31 15:08:53 -04:00
Charles Blake
970cfec6c2
Merge ../Nim into devel
2015-07-30 18:42:20 -04:00
Bruce Doan
55ef708e73
Free SSL handler to avoid memory leaks
2015-07-31 01:24:35 +07:00
Charles Blake
0b4c816cba
cstring->pointer in MemSlice to make consistent with MemFile and
...
also to make more clear the care required to use MemSlice instances.
(E.g., memXXX functions rather than strXXX functions).
2015-07-29 06:14:44 -04:00
Charles Blake
f2c5676767
Remove NUL termination unneeded post toNimStr fix.
2015-07-28 06:45:07 -04:00
Araq
8913e82f45
removed macros.high as it never worked outside of macros.nim
2015-07-28 02:54:21 +02:00
Dominik Picheta
bd6e223065
Merge branch 'async_callback_issue_0412' of https://github.com/l04m33/Nim into l04m33-async_callback_issue_0412-2
...
Conflicts:
lib/pure/asyncdispatch.nim
2015-07-26 22:03:48 +01:00
Dominik Picheta
1b9f2fdfe8
Merge pull request #3094 from fenekku/unittest-work
...
document unittest.nim + code agreement
2015-07-26 21:42:51 +01:00
Dominik Picheta
94ad731964
Fixes example code in marshal module.
2015-07-26 18:21:14 +01:00
Dominik Picheta
ce4e877702
$ for tuples/objects now handles a nil value correctly. Fixes #3149 .
2015-07-26 18:15:19 +01:00
Charles Blake
a2b6a630fe
Oops..[]= not defined yet here. Use .data instead.
2015-07-26 09:17:04 -04:00
Charles Blake
18df5dad11
Do not read past end of input. Ensure NUL termination.
2015-07-26 09:02:43 -04:00
Charles Blake
ae303cc1c3
Rename [rR]ecord->[mM]emSlice, rec->ms, End->ending. Also update some comments.
2015-07-26 07:52:30 -04:00
Dominik Picheta
a88131ed4a
Improved errors in times.parse.
2015-07-24 22:46:24 +01:00
Charles Blake
3f4255dd14
Beg->data, Len->size to address Varriount's issue. I was unaware of
...
lower case members as a strict style convention.
2015-07-24 17:23:11 -04:00
Charles Blake
a12c9cfb9d
Add MemFile text interface factored so users can optionally skip Nim string
...
construction (e.g. to filter many lines out before building strings). Only
Windows and/or Unix line endings are supported by default, though fiddling
with delim/eat arguments can probably support archaic MacOS9 files.
2015-07-24 14:38:20 -04:00
Magnus Holm
fdf454e3ae
Fix times' parse with literal strings
2015-07-24 18:08:05 +02:00
Araq
4932415742
fixes #1832
2015-07-24 01:04:45 +02:00
Sergey Avseyev
70f14aa578
Remove access modifiers from inner templates
...
Fixes options.nim tests
2015-07-23 17:00:04 +03:00
Araq
8594faa543
fixes #2841
2015-07-22 17:08:21 +02:00
Araq
caf7717cb8
removed system.free
2015-07-18 20:41:45 +02:00
Araq
728fc441ef
staticExec now supports caching
2015-07-15 22:00:44 +02:00
Araq
6e39f75f54
fixes regression in XML parsing
2015-07-15 22:00:44 +02:00
Araq
f7bdc205c7
documentation generator emits configurable html for code listings
2015-07-14 01:37:09 +02:00
Araq
27f5c3ceb9
added os.tailDir proc
2015-07-12 13:33:22 +02:00
Dominik Picheta
994d81461b
Merge pull request #3095 from def-/fix-async-post
...
Fix async httpclient post to work without multipart
2015-07-11 14:06:30 +01:00