Commit Graph

11210 Commits

Author SHA1 Message Date
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
Juan Francisco Cantero Hurtado
e0835948bd OpenBSD doesn't support AI_V4MAPPED
Related to #3534
2015-11-23 04:27:20 +01: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
JamesP
41861711c8 add doco for array/seq helper procs 2015-11-12 07:03:16 +10:00
JamesP
52e40995b7 added helper procs for standalone calc of stats for array/seq
Changed derivation to use runningstats, so there
is a single point of truth for the calculations, and provides
more stats functions
2015-11-12 06:33:26 +10: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
Reimer Behrends
67e62302b4 Avoid signed shifts and bit operations for sets.
Set operations used "1<<n" style shifts, which led to undefined
behavior if the signed shift overflowed. Similarly, the right-hand
side of the operator sometimes used a mix of signed and unsigned
integers that were combined with "&". This patch attempts to provide
a consistent implementation that uses unsigned integers everywhere.
2015-11-11 14:19:09 +01:00
JamesP
4cefbc2914 add comment to identify where RunningStat code resides 2015-11-11 08:56:51 +10:00
JamesP
0cf4e2603f Removal of stats procs for openarray (use the RunningStat methodology) 2015-11-11 08:56:12 +10: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