Commit Graph

7456 Commits

Author SHA1 Message Date
Andreas Rumpf
c237473e71 Merge pull request #2893 from nanoant/patch/securehash-fixup
SecureHash fixup
2015-06-10 10:55:07 +02:00
Andreas Rumpf
e87aebb68e Merge pull request #2895 from FedeOmoto/devel
Allow to set position at end of stream
2015-06-10 10:50:58 +02:00
rku
87b6220897 Removed magics: mAbsI64 2015-06-10 10:25:36 +03:00
rku
3984fecae6 Removed magics: mBitnotI64 2015-06-10 10:25:36 +03:00
rku
47114342c4 Removed magics: mEqI64 mLtI64 mLeI64 2015-06-10 10:25:36 +03:00
rku
658dcd2a58 Removed magics: mShrI64, mShlI64, mBitandI64, mBitorI64, mBitxorI64
Author:    rku <rokups@zoho.com>
2015-06-10 10:25:36 +03:00
rku
372a5d3cbb Removed magics: mAddI64, mSubI64, mMulI64, mDivI64, mModI64
Author:    rku <rokups@zoho.com>
2015-06-10 10:25:35 +03:00
Federico Omoto
4618cb58c0 Allow to set position at end of stream 2015-06-09 22:25:31 -03:00
Adam Strzelecki
4e14c0ad9f securehash: SHA1 -> Sha1 according to style guide 2015-06-09 22:57:44 +02:00
apense
867b38496b Moved negative indexing operator here
Only used here (not in standard library)
2015-06-09 16:24:13 -04:00
Ryan Gonzalez
d4d5f95808 Remove unnecessary import 2015-06-09 15:21:33 -05:00
apense
3142400351 Removed unnecessary template
`-|` only used in the compiler for negative indexing
2015-06-09 16:21:33 -04:00
Adam Strzelecki
54c863d6ae securehash: sha_digest_size is not following style
https://github.com/Araq/Nim/wiki/Style-Guide-for-Nim-Code
2015-06-09 22:20:06 +02:00
Adam Strzelecki
eccc2f87e9 securehash: remove unused emptySecureHash 2015-06-09 22:20:05 +02:00
Adam Strzelecki
3d266433a7 securehash: Keep module name consistent
1. All other modules don't use underscore, why this should be different?

2. Wrap some imports to 80 column
2015-06-09 22:20:05 +02:00
Adam Strzelecki
8742907133 db: InstantRow and instantRows
It is drop-in replacement for Row and fastRows, however instantRows returns a
handle, not seq[string], so no Nim string is created until [] operator is
called on the given handle. Also there is a len() proc returning number of
columns in the handle.

In some situations, when we iterate through many rows, but later we just read
few columns this solution will be quicker than converting all column to Nim
seq[string] on each iteration.
2015-06-09 20:53:03 +02:00
Spencer Stirling
d152ccc1e2 fixed threadpool and atomics to work with Visual Studio 32 and 64 bit 2015-06-09 11:59:26 -06:00
Stefan Talpalaru
02ddbae8f6 fix growObj() with strings 2015-06-09 17:58:54 +02:00
Andreas Rumpf
25a1987517 Merge pull request #2780 from flaviut/cleanup-crc
Use SHA1 instead of CRC
2015-06-09 15:10:21 +02:00
Andreas Rumpf
60bc1fd7ba Merge pull request #2885 from apense/patch-4
Note about deprecation in generics.txt
2015-06-09 15:03:46 +02:00
Andreas Rumpf
9b22a7b712 Merge pull request #2887 from apense/patch-5
Updated whitespace ranges
2015-06-09 14:52:29 +02:00
apense
0ee1672d69 Updated whitespace ranges
Ranges sourced from <http://www.unicode.org/Public/7.0.0/ucd/PropList.txt>_. Wikipedia also uses these ranges on its information page <http://en.wikipedia.org/wiki/Whitespace_character#Unicode>_. 0xfeff isn't included in the list, but it is a no-break space, so I guess it makes sense. 0x200b is actually a format character, but it is a zero-width space. To fit Unicode, both 0x200b and 0xfeff would be removed.
2015-06-08 19:48:57 -04:00
Dominik Picheta
c4009c6182 Fixes #2884
Haven't tested this patch but should work.
2015-06-08 23:10:50 +01:00
apense
ab1b1c9251 Note about deprecation in generics.txt
I'm happy to change the wording or anything. It does seem like an important thing to mention, though. It might be better not to even mention typeless procs so as not to encourage bad behavior.
2015-06-08 16:03:57 -04:00
Flaviu Tamas
5118c09f49 Fix ambiguous character literal 2015-06-07 13:13:05 -04:00
Flaviu Tamas
3bbbb1a682 Fix potential code bloat 2015-06-07 13:13:05 -04:00
Flaviu Tamas
ca81749f2a Rename RegexException according to NEP1 2015-06-07 13:13:04 -04:00
Flaviu Tamas
a707f8de65 Edit re and nre doc comments 2015-06-07 13:13:04 -04:00
Flaviu Tamas
4fbd95549d Clean up nre imports 2015-06-07 13:13:04 -04:00
Flaviu Tamas
38064d043a Use stdlib's PCRE in nre 2015-06-07 13:13:04 -04:00
Flaviu Tamas
8caa5cd292 Deprecate re 2015-06-07 13:13:04 -04:00
Flaviu Tamas
15ef227c48 Adjust re for nre's inclusive bounds 2015-06-07 13:13:04 -04:00
Oleh Prypin
dc60a51e15 Base re off of nre 2015-06-07 13:13:04 -04:00
Flaviu Tamas
b27c1946c9 Update news for nre 2015-06-07 13:13:01 -04:00
Flaviu Tamas
be64b8d0d4 Ensure no one uses internal module 2015-06-07 13:12:19 -04:00
Flaviu Tamas
9db6070d73 Fix nre tests 2015-06-07 13:12:19 -04:00
Flaviu Tamas
90ed34db72 Merge branch 'devel' of https://github.com/Araq/Nim into add-nre
* 'devel' of https://github.com/Araq/Nim:
  Fix #964, fix #1384
  Don't inspect typedescs
2015-06-07 13:12:18 -04:00
Oscar Campbell
f0b6c03b26 Merge branch 'devel' into bugfix-2858-testament-sources-system-wide 2015-06-07 13:17:06 +02:00
Oscar Campbell
858cdd0b05 Merge remote-tracking branch 'upstream/devel' into devel 2015-06-07 13:16:08 +02:00
Dominik Picheta
87a6d08e95 Update version in compiler.nimble 2015-06-07 13:14:53 +02:00
Simon Hafner
cb443ce73d moved sexp.nim to nimsuggest repo 2015-06-07 13:14:53 +02:00
Adam Strzelecki
25cc9befd5 Fixup: Reverted TZipFileStream name change
This fixes broken b0469c11e3 that incompletely
reverted TZipFileStream name change.
2015-06-07 13:14:52 +02:00
Dominik Picheta
4b0089bf58 Removed nimsuggest from this repo. 2015-06-07 13:14:52 +02:00
Dominik Picheta
4a7c0e8872 Add WSAEADDRINUSE to winlean. 2015-06-07 13:14:52 +02:00
Dominik Picheta
52192ffa9f Fixes compilation with --gc:markandsweep. 2015-06-07 13:14:52 +02:00
Dominik Picheta
25c6304abb Hopefully fixes nimsuggest building against the compiler package. 2015-06-07 13:14:52 +02:00
apense
c126b8ad0f Fixed links in Error hierarchy
Manual contained invalid links
2015-06-07 13:14:52 +02:00
apense
e132032b0f Fixed code indentation in procs.txt
Now matches tut2.txt
2015-06-07 13:14:52 +02:00
Adam Strzelecki
83369f4bce Parser: Inline expr pragmas with parenthesis
Previously pragmas could be attached only to whole statements, this change
allows attaching pragmas to inline statements, eg.:

  template rewriteAdd{a + b}(a: expr, b: expr): expr =
    ({.noRewrite.}: a + b) + 1

Code above will cause a + b to be rewritten once, because rewriteAdd attaches
{.noRewrite.} to resulting a + b expr.
2015-06-07 13:14:52 +02:00
Adam Strzelecki
07c40add8f Parser: Properly represent parsePar in grammar 2015-06-07 13:14:52 +02:00