Commit Graph

6798 Commits

Author SHA1 Message Date
Dominik Picheta
05ada2da43 Merge pull request #3180 from yglukhov/3179-workaround
Workaround for #3179.
2015-08-05 19:41:19 +01:00
Dominik Picheta
096ce55c1a Merge pull request #3183 from sferik/fix-docstyle-include
Fix documentation style reference
2015-08-04 20:01:06 +01:00
Araq
ab26298a03 added system.unsafeAddr 2015-08-04 17:31:18 +02:00
Erik Michaels-Ober
c035029431 Fix documentation style reference
The documentation style guide was renamed from styleguide to docstyle in
a98f609ae2 but this reference was not
updated in that comment.
2015-08-04 13:15:32 +02: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
Dominik Picheta
b9c1dd0072 Fixed macros.nim not compiling.
Iterator aliases are not possible.
2015-08-03 18:42:02 +01: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
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
Araq
e1913abdd4 fixes #3140 2015-08-03 00:45:25 +02:00
Zahary Karadjov
15df168f99 Rename compiler configuration file to fix "nim check" within the repo
Prior to the change, "nim check" would fail on any file besides the
main nim.nim, because the include paths for the documentation were
not set correctly and this produced various compilation errors.
2015-08-03 01:27:41 +03:00
Dominik Picheta
328f632518 Merge pull request #3176 from zielmicha/ofoperator
Improve discoverability of 'of' operator
2015-08-02 22:35:41 +01:00
Michał Zieliński
0575437762 Improve discoverability of 'of' operator 2015-08-02 22:55:22 +02:00
Andreas Rumpf
7af92708af Merge pull request #3175 from singularperturbation/feature/rst-forum-issue-41
Fix for inline image in rstgen (nimforum #41)
2015-08-02 22:12:12 +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
Andreas Rumpf
b77475bd19 Merge pull request #3118 from apense/styledoc
Added Documentation Style Guide; Fixes #3089
2015-08-02 11:09:42 +02:00
Andreas Rumpf
2f25e74c9f Merge pull request #3147 from yglukhov/js-emit
Emit pragma support for JS backend.
2015-08-02 11:06:13 +02: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
1b4116702b fixes #3052 2015-08-02 02:56:02 +02:00
Araq
f9750781c0 fixes #3080 2015-08-02 02:56:02 +02:00
Araq
ea35cede8e fixes #3103 2015-08-02 02:56:01 +02:00
Araq
e9899af9b2 fixes #3135 2015-08-02 02:56:00 +02:00
Araq
41e8c9b9ac fixes #3158 2015-08-02 02:56:00 +02:00
Araq
5e325bc9f9 made test green again 2015-08-02 02:55:59 +02:00
Araq
bd786812e7 fixes #3171 2015-08-02 02:55:59 +02:00
Araq
9275d5c617 emerald project has a chance of working 2015-08-02 02:55:58 +02:00
Dominik Picheta
e205a9e3af Merge pull request #3170 from jonathonf/patch-2
Set correct Host in request header
2015-08-01 20:55:46 +01: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
Dominik Picheta
92ca736f0a Removed duplicate 'mipsel' from installer.ini. Ref #3164. 2015-08-01 13:43:51 +01:00
Dominik Picheta
b423a9efeb Merge pull request #3164 from def-/systems
Add powerpc64el and arm64 support
2015-08-01 13:43:01 +01:00
def
9804033aa8 Add new platforms to installer.ini (for linux at least) 2015-08-01 00:00:51 +02: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
Dominik Picheta
3d6a8b401a C source generation for mipsel. 2015-07-31 22:40:45 +01:00
Dominik Picheta
67c6b99745 Merge pull request #3163 from def-/mipsel
Add Mipsel CPU support (untested)
2015-07-31 22:39:07 +01: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
Dominik Picheta
c9084585dc Merge pull request #3157 from rgv151/patch-4
Free SSL handler to avoid memory leaks
2015-07-30 23:37:40 +01:00
Bruce Doan
55ef708e73 Free SSL handler to avoid memory leaks 2015-07-31 01:24:35 +07:00
apense
10da70d49e Fix double-ticks 2015-07-29 17:57:47 -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
f3a0d702ae Merge branch 'l04m33-async_callback_issue_0412-2' into devel 2015-07-26 22:04:01 +01: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
Araq
54fdeb4f76 gc:none works again 2015-07-26 22:03:52 +02:00
Araq
beca7ded1b fixes #3144 2015-07-26 21:07:11 +02:00
Dominik Picheta
94ad731964 Fixes example code in marshal module. 2015-07-26 18:21:14 +01:00