summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'girvo-unix-sockets' into develDominik Picheta2016-05-305-3/+60
|\
| * Merge branch 'unix-sockets' of https://github.com/girvo/Nim into ↵Dominik Picheta2016-05-305-3/+60
|/| | | | | | | girvo-unix-sockets
| * Adding nimdoc comments as per PR commentsJosh Girvin2016-05-301-1/+3
| | | | | | | | As per @dom96 code review comments in PR #3488
| * net.nim: add support for Unix socketsMichał Zieliński2015-10-285-2/+57
| |
* | Merge branch 'apense-patch-8' into develAndreas Rumpf2016-05-301-52/+101
|\ \
| * | Merge branch 'patch-8' of https://github.com/apense/Nim into apense-patch-8Andreas Rumpf2016-05-301-52/+101
|/| |
| * | Fixed silly format errorapense2015-06-241-1/+1
| | | | | | | | | Needed other bracket
| * | Converted tabsapense2015-06-241-39/+39
| | | | | | | | | Not sure what was going on before
| * | Rewrote procs for float32/float64apense2015-06-241-86/+128
| | | | | | | | | When a proc is `importc`-ed, made explicit. Otherwise, used `[T: float32|float64]`
* | | Merge branch 'nanoant-patch/fix-3496-generic-tmpl-args' into develAndreas Rumpf2016-05-303-11/+107
|\ \ \
| * | | refactoringsAndreas Rumpf2016-05-301-42/+55
| | | |
| * | | Merge branch 'patch/fix-3496-generic-tmpl-args' of ↵Andreas Rumpf2016-05-293-5/+88
|/| | | | | | | | | | | | | | | https://github.com/nanoant/Nim into nanoant-patch/fix-3496-generic-tmpl-args
| * | | fixes #3496Adam Strzelecki2015-10-293-5/+88
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem comes from the fact that macroOrTmpl[...] is transformed by semSubscript which is trying to evaluate macroOrTmpl identifier in place. This is okay for non-generic macros or templates, but wrong for generic ones, that do not have a chance to receive their generic arguments explicitly specified in brackets. Solution: 1. macroOrTmpl[...] where macroOrTmpl is non-generic macro or template, then macroOrTmpl is evaluated before applying brackets. (as before) 2. macroOrTmpl[...] where macroOrTmpl is generic macro or template, then if: a. It comes from macroOrTmpl[...](...) call expr (efInCall), then macroOrTmpl is turned into a symbol (efNoEvaluate) rather than evaluating it in place, then whole bracket expr is returned to semIndirectOp which transforms it to proper generic macro or template call with explicit generic arguments. b. macroOrTmpl[...] does not come from call expr, as above macroOrTmpl is transformed to symbol, then it is transformed into proper generic macro or template call with explicit generic arguments and no normal arguments.
* | | make SO_REUSEPORT independent of Linux headerAndreas Rumpf2016-05-291-14/+22
| | |
* | | Merge pull request #4235 from cheatfate/nosignalAndreas Rumpf2016-05-291-0/+4
|\ \ \ | | | | | | | | Solaris dont have MSG_NOSIGNAL
| * | | Solaris dont have MSG_NOSIGNALcheatfate2016-05-291-0/+4
| | | |
* | | | Merge pull request #3648 from FedericoCeratto/reuse_portAndreas Rumpf2016-05-294-3/+10
|\ \ \ \ | |/ / / |/| | | Add SO_REUSEPORT support
| * | | Add SO_REUSEPORT supportFederico Ceratto2015-12-164-3/+10
| | | |
* | | | fixes #3729Andreas Rumpf2016-05-292-0/+372
| | | |
* | | | fixes #4177Andreas Rumpf2016-05-282-2/+19
| | | |
* | | | widestrs are always available for better interopAndreas Rumpf2016-05-281-2/+1
| | | |
* | | | Merge branch 'jlp765-db_odbc2' into develAndreas Rumpf2016-05-282-24/+23
|\ \ \ \
| * | | | Merge branch 'db_odbc2' of https://github.com/jlp765/Nim into jlp765-db_odbc2Andreas Rumpf2016-05-282-24/+23
|/| | | |
| * | | | Fix row reading procs to not use SQLRowCount, but SQLFetch until returns ↵JamesP2016-01-241-54/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SQL_NO_DATA change SqlCheck() and SqlGetDBMS() to sqlCheck() and sqlGetDBMS() (camelCase consistency)
* | | | | minor todo.txt updateAndreas Rumpf2016-05-281-1/+0
| | | | |
* | | | | adds another 'open' to parsecsv; refs #3695Andreas Rumpf2016-05-281-0/+11
| | | | |
* | | | | Merge pull request #4135 from FedericoCeratto/patch-8Andreas Rumpf2016-05-281-0/+4
|\ \ \ \ \ | | | | | | | | | | | | Add another JSON example
| * | | | | Add another JSON exampleFederico Ceratto2016-05-051-0/+4
| | | | | | | | | | | | | | | | | | JSON generation can be a bit tricky, another example might help
* | | | | | Merge branch 'mjoud-maxsplit' into develAndreas Rumpf2016-05-281-10/+29
|\ \ \ \ \ \
| * | | | | | Merge branch 'maxsplit' of https://github.com/mjoud/Nim into mjoud-maxsplitAndreas Rumpf2016-05-281-10/+29
|/| | | | | |
| * | | | | | modified strutils.splitMagnus Jöud2015-10-141-9/+6
| | | | | | |
| * | | | | | added tests for strutils.splitMagnus Jöud2015-10-141-0/+6
| | | | | | |
| * | | | | | added maxsplit argument to strutils.splitMagnus Jöud2015-10-141-10/+25
| | | | | | |
* | | | | | | fixes #3882Andreas Rumpf2016-05-282-31/+59
| | | | | | |
* | | | | | | cleanup of #4113Andreas Rumpf2016-05-282-30/+30
| | | | | | |
* | | | | | | Merge pull request #4113 from jcosborn/gettypeinstAndreas Rumpf2016-05-285-38/+306
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | getTypeInst
| * | | | | | | getTypeInst and getTypeImpl mostly working now and added testJames Osborn2016-05-045-32/+251
| | | | | | | |
| * | | | | | | changed getTypeInst handling for distinct typesJames Osborn2016-05-041-5/+15
| | | | | | | |
| * | | | | | | added getTypeInst which includes generic parametersJames Osborn2016-05-044-23/+62
| | |/ / / / / | |/| | | | |
* | | | | | | fixes #2159Andreas Rumpf2016-05-284-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Hints and warnings are only emitted for the main package that is compiled
* | | | | | | Merge pull request #4232 from moigagoo/patch-3Dominik Picheta2016-05-281-0/+2
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Stdlib: httpclient: `export strtabs` added.
| * | | | | | | Stdlib: httpclient: `export strtabs` added.Konstantin Molchanov2016-05-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using `httpclient`, viewing HTTP headers is impossible without importing `strtabs`, which is very much _not_ obvious; it's impossible to know without deep diving into the docs. Dealing with headers is an essential part of working with HTTP in general, so I propose this change. The situation is analogous to this one with `nre` and `options`: https://github.com/nim-lang/Nim/issues/4158
* | | | | | | | makes tests green againAndreas Rumpf2016-05-281-3/+4
|/ / / / / / /
* | | | | | | fixes critical 'do' parsing bugAndreas Rumpf2016-05-282-2/+82
| | | | | | |
* | | | | | | Merge pull request #4231 from tautologico/fix-4001Andreas Rumpf2016-05-281-0/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Fix issue #4001: invalid pragma {. hint[]: off .}
| * | | | | | | Deleted test for fix #4001Andrei Formiga2016-05-271-6/+0
| | | | | | | |
| * | | | | | | Fix issue #4001: invalid pragma {. hint[]: off .}Andrei Formiga2016-05-272-0/+7
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bug was in processNote, module pragmas. The code assumed that a nkBracketExpr AST node always had two children (without testing this), and tried to access elements with index 0 and 1 in the sons array of the nkBracketExpr node. The code that triggered the bug was just {. hint[]: off .} by itself in a module; in this case the nkBracketExpr has only one children in the sons array, so the code in processNote caused an out-of-bounds array access. This commit also adds a test to guarantee that this pragma is rejected, as is.
* | | | | | | remove funny debug outputAndreas Rumpf2016-05-271-1/+0
| | | | | | |
* | | | | | | fixes #4225Andreas Rumpf2016-05-271-1/+1
| | | | | | |
* | | | | | | fixes #4227Andreas Rumpf2016-05-275-7/+32
| | | | | | |