Commit Graph

7580 Commits

Author SHA1 Message Date
Andreas Rumpf
eaed36092c Merge pull request #3573 from yglukhov/doc-fix
Fixed documentation of nnkLet AST
2015-11-25 15:03:43 +01:00
Andreas Rumpf
cfe4e78aa6 Merge pull request #3580 from yglukhov/js-distinct-type
Fixed JS codegen for distinct types
2015-11-25 15:03:19 +01:00
Dominik Picheta
d3b69e515f Fixes #3582. 2015-11-24 13:39:43 +00:00
Yuriy Glukhov
0d5b9afb08 Fixed JS codegen for distinct types 2015-11-23 21:14:15 +02:00
Dominik Picheta
b7b7cf54ab Merge pull request #3577 from def-/options-doc
Add options module to standard library documentation
2015-11-23 16:17:03 +00:00
def
93e01da671 Fix options module to use new import name 2015-11-23 16:30:18 +01:00
def
7540cdd169 Update comment about map being in system module 2015-11-23 16:23:35 +01:00
def
ad503ce8f9 Add options module to standard library documentation 2015-11-23 16:14:35 +01:00
Dominik Picheta
b1e103fd41 Merge pull request #3574 from tirkarthi/devel
Wrap the example in a code block
2015-11-23 12:37:15 +00:00
Xtreak
6bebd2ebcf Merge pull request #1 from tirkarthi/tirkarthi-patch-1
Wrap the example in a code block
2015-11-23 18:02:55 +05:30
Xtreak
e3724925d2 Wrap the example in a code block
Wrap the code inside a code block. The declaration for ``proc even(n: int): bool`` is present twice. Hence removed one and wrapped it in a separate code block.
2015-11-23 18:01:36 +05:30
Yuriy Glukhov
3c70a2e914 doc fix 2015-11-23 13:02:32 +02:00
Andreas Rumpf
989cdd45ed Merge pull request #3572 from vegansk/fix_slurp_err_msg
Fixed SIGSEGV on wrong slurp usage
2015-11-23 09:56:52 +01:00
Anatoly Galiulin
98723925d8 Fixed SIGSEGV on wrong slurp usage 2015-11-23 13:18:05 +05:00
Andreas Rumpf
3c5a0b1b1a Merge pull request #3563 from c-blake/devel
Fix loop index bug in scan for a[s] in b[s..s+len2-1].
2015-11-20 10:29:50 +01:00
Charles Blake
a1df79d5f2 Add a unit test that covers issue 3477
https://github.com/nim-lang/Nim/issues/3477
2015-11-19 07:03:06 -05:00
Charles Blake
716c12a436 Fix loop index bug in scan for a[s] in b[s..s+len2-1].
a, b must both be indexed starting from s after the common
prefix "strip" phase.  This resolves issue 3477:
  https://github.com/nim-lang/Nim/issues/3477
2015-11-19 06:52:31 -05:00
Araq
ba6d0eb4db fixes #3541 2015-11-18 16:07:20 +01:00
Araq
1757b8466d fixes #3546 2015-11-18 14:42:13 +01:00
Araq
2f07ac785f website updated 2015-11-18 13:32:29 +01:00
Araq
528cf3eae4 better error handling for bug #3550 2015-11-18 13:32:16 +01:00
Araq
698b1fc954 fixes #3550 2015-11-18 12:33:09 +01:00
Araq
aad4ed776b allows macros to access documentation comments 2015-11-18 12:33:09 +01:00
Araq
edb495a6b3 fixes a critical error handling bug for nimsuggest 2015-11-18 12:33:09 +01:00
Andreas Rumpf
0f7fdd8bf4 Merge pull request #3536 from jyelon/proc-addr
Add 'auto-decoration' to nimGetProcAddr
2015-11-12 16:08:12 +01:00
jyelon
e8bc19f79c Add 'auto-decoration' to nimGetProcAddr
Maintainers of win32 DLLs can opt to provide libraries with
'decorated' function names (Google "stdcall name decoration").  To
pull a function pointer out of one of these DLLs, you have to pass a
decorated name to getProcAddress.  This is painful for the authors
of NIM DLL wrappers - they have to pass manually-decorated strings
to "importc", but only on win32.

This commit adds auto-decoration to nimGetProcAddress.  This function
will probe the DLL for the undecorated name, and if that fails, it
will automatically add decoration and try again.  That way, the author
of the wrapper doesn't have to deal with it.
2015-11-11 21:55:33 -05:00
Andreas Rumpf
ebc3438cc2 Merge pull request #3533 from nim-lang/fix-parseopt2-externs
Prevent Exported C procedure collisions
2015-11-11 23:37:43 +01:00
Varriount
3832ea0785 Prevent Exported C procedure collisions
Prevents collisions between those C externalized procedures in parseopt and parseopt2.
2015-11-11 15:18:13 -05:00
Dominik Picheta
29fd3edb9c Merge pull request #3514 from vegansk/3513_pgsql_prepstat
Fixed issue 3513: wrong setupQuery realization
2015-11-11 16:09:18 +00:00
Araq
f9ad735e55 documented untyped/typed meta-types 2015-11-10 22:51:03 +01:00
Araq
b6374f1f68 fixes newly introduced oswalkdir module 2015-11-10 15:56:17 +01:00
Araq
7578d580e0 added oswalkdir.nim for the JS target 2015-11-10 15:35:02 +01:00
Araq
2aff716134 os.walkDir is available at compile time 2015-11-10 15:31:21 +01:00
Araq
81f876040b added newTree to ast.nim 2015-11-10 15:31:21 +01:00
Araq
e9313dd362 added prefix matching to critbits.nim 2015-11-10 15:31:21 +01:00
Araq
209a5fc1bc updated old links on the website 2015-11-10 15:31:21 +01:00
Dominik Picheta
92f2fd9655 Merge pull request #3527 from tulayang/devel
Fix osproc.close
2015-11-10 10:18:32 +00:00
wt
696b89c111 Fix osproc.close 2015-11-10 11:13:04 +08:00
Dominik Picheta
60e5a2b2f5 Merge pull request #3504 from Matt14916/xmlparser-entities
Create entity nodes with xmlparser, add a test to xmlparser
2015-11-08 13:07:38 +00:00
Dominik Picheta
d8738f8f5d Merge pull request #3521 from gour/tools-link-fix
fix docgen link
2015-11-08 12:58:00 +00:00
Dominik Picheta
c83e4390d8 Modified setDefaultLibpath to search using findExe"nim".
This is so that Nimble (and other tools) which use the compiler modules
for nimscript support or other purposes can find $lib.
2015-11-07 15:48:14 +00:00
Gour
ab0a7303bf fix docgen link 2015-11-07 09:33:55 +01:00
Anatoly Galiulin
c017904363 Fixed issue 3513: wrong setupQuery realization 2015-11-06 10:24:23 +06:00
Araq
ae60f4ae76 better nimsuggest support 2015-11-03 14:52:37 +01:00
Araq
5c8342eef9 Nimscript fixes 'cpFile' typo 2015-11-03 14:52:36 +01:00
Araq
86c8a7a947 nimrod is obsolete 2015-11-03 14:52:36 +01:00
Araq
c87f4d24eb fixes start.bat file 2015-11-03 14:52:35 +01:00
Araq
1dda0e4b84 fixes a critical xlen codegen bug 2015-11-03 14:52:34 +01:00
Andreas Rumpf
618d0bc263 Merge pull request #3509 from yashaka/void-context-doc-rephrase
updated 'Void context' doc specifying more precisely for what the void context is triggered
2015-11-02 20:30:07 +01:00
Iakiv Kramarenko
3a5a7a4edf updated 'Void context' section specifying more precisely that assignment to result triggers MANDATORY void context FOR THE SUBSEQUENT EXPRESSIONS 2015-11-02 18:50:10 +02:00