Commit Graph

7593 Commits

Author SHA1 Message Date
Araq
85345d2d34 fixes #3222 2015-11-26 17:46:05 +01:00
Araq
45dfd445da fixes #2285 2015-11-26 17:46:05 +01:00
Araq
5fe71db6d9 'out T' is an alias for 'var T' 2015-11-26 17:46:05 +01:00
Araq
25e2e3faec 'importc' allows 'not nil' annotation 2015-11-26 17:46:05 +01:00
Araq
a2480efd68 allow 'nil ref T' as a first step which does nothing 2015-11-26 17:46:05 +01:00
Andreas Rumpf
0dcaf27b64 Merge pull request #3589 from yglukhov/dom-refactoring
Dom refactoring
2015-11-26 17:44:49 +01:00
Andreas Rumpf
8603d5849e Merge pull request #3588 from yglukhov/js-no-node
Removed Node, NodeType and Document definitions from jssys.
2015-11-26 17:41:56 +01:00
Andreas Rumpf
fbe6695a52 Merge pull request #3594 from theduke/unicode-validate-overlong
validateUtf8: catch overlong ascii
2015-11-26 17:34:21 +01:00
Andreas Rumpf
0fb857f14e Merge pull request #3591 from yglukhov/float-format-js
fixed float formatting for js
2015-11-26 17:33:09 +01:00
theduke
25b605a3a2 validateUtf8: catch overlong ascii
Make unicode.validateUtf8() check for overlong ascii representations, which are 2 bytes long and start with c0 or c1.
2015-11-26 16:05:24 +01:00
Yuriy Glukhov
2fcc37fd2b fixed float formatting for js 2015-11-26 01:10:52 +02:00
Yuriy Glukhov
c0754beb22 Dom refactoring 2015-11-25 19:27:13 +02:00
Yuriy Glukhov
0abfbf8f0d Removed Node, NodeType and Document definitions from jssys. 2015-11-25 16:37:36 +02:00
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