Commit Graph

11210 Commits

Author SHA1 Message Date
Hans Raaf
79384ea729 Allow empty sets in case/of branches.
Added support for conditional compilation using 'when' with empty sets and arrays in
'case of' branches.

 Please enter the commit message for your changes. Lines starting
2015-02-24 14:54:27 +01:00
Araq
7324ed7f1f types API: now works for proc():void 2015-02-24 01:57:49 +01:00
Araq
752052e903 implements a type API for macros 2015-02-24 00:13:28 +01:00
Araq
9080d3a9a9 small cleanup of ast.nim 2015-02-24 00:13:27 +01:00
Araq
1e6aef62ba macros.PNimrodNode is now NimNode 2015-02-24 00:13:27 +01:00
def
dca5508d13 Make compiler read files from stdin
Special "-" file as stdin.
2015-02-22 23:23:22 +01:00
Andreas Rumpf
fb46785969 Merge pull request #2192 from apense/devel
Corrected SYSTEM_INFO structure to match pointer type on 64-bit systems
2015-02-22 21:24:59 +01:00
Andreas Rumpf
890dcabbde Merge pull request #2194 from GrundleTrundle/windows_timer_sub
Fix for timer overflow when using nimprofiler with 32bit Windows target.
2015-02-22 21:24:23 +01:00
Andreas Rumpf
63c6bc9c69 Merge pull request #2198 from oderwat/fix-table-mpairs
Fix unknown symbol in tables mpairs iterator.
2015-02-22 21:23:20 +01:00
Hans Raaf
93aa73284e Fix unknown symbol in tables mpairs iterator.
Fixes an error with mpairs iterator which was introduced with 5fbcf93860. This is used by nimforum thats why I found it. I also added a testcase for the mpairs iterator.
2015-02-21 23:20:02 +01:00
Dominik Picheta
6f069dad84 Merge pull request #2195 from stedi67/devel
little documentation fix on combine and /
2015-02-21 22:10:15 +00:00
Dominik Picheta
1af45b78a7 Remove pointless winlean import in net module. 2015-02-21 21:32:34 +00:00
Stephan Diehl
aa62dcc2af little documentation fix on conbine and / 2015-02-21 21:53:19 +01:00
GrundleTrundle
c41e0bdbe3 Changed nimprof.hook() to handle uninitialized t0
It's unlikely, but possible for the conversion to nanoseconds
to overflow if QueryPerformanceCounter() returns a
large enough timestamp.  This change avoids that, at the
cost of always taking a sample the first time through
when t0 == 0.
2015-02-21 15:18:39 -05:00
GrundleTrundle
2abf3b717a Removed int64 -> int downcast in timers.-
On windows when compiling on 32 bit, this can get you a
out of range exception for an otherwise valid interval.
2015-02-21 15:18:34 -05:00
Varriount
ef44fd344b Update net.nim - fix #2193
Fixes number #2193 and resolves some ambiguity issues
2015-02-21 15:12:57 -05:00
Jonathan Edwards
8e0e7cb818 Corrected SYSTEM_INFO structure to match pointer type on 64-bit systems 2015-02-21 13:05:26 -05:00
Dominik Picheta
a853d9c3e3 Sockets now save a copy of osLastError to work around #2191. 2015-02-21 17:17:54 +00:00
Andreas Rumpf
c3244ef1ff Merge pull request #2189 from Varriount/param-uint-ranges
Allow ranges with unsigned integer ordinals to be used as parameter types
2015-02-21 15:21:48 +01:00
def
2d879b96df Rename sortedBy to sortByIt 2015-02-21 12:30:06 +01:00
Varriount
3a8455fd8f Allow ranges with unsigned integer ordinals to be used as parameter types for procedures. 2015-02-21 02:45:06 -05:00
Andreas Rumpf
d9370a2f21 Merge pull request #2185 from eventualbuddha/patch-1
Fix a typo in "raises" annotation description.
2015-02-21 01:05:05 +01:00
Brian Donovan
04c746dac1 Fix a typo in "raises" annotation description. 2015-02-20 14:23:53 -08:00
Araq
77406dd59c fixes #2134 2015-02-20 20:01:25 +01:00
Araq
aef7be2e79 fixes #1902 2015-02-20 20:01:24 +01:00
Araq
540f66cb09 fixes #2167 2015-02-20 20:01:23 +01:00
Araq
1c88d26ebf added test case for #2107 2015-02-20 20:01:23 +01:00
Andreas Rumpf
49dcf0658b Merge pull request #2180 from oderwat/fix-nimfix-compile
Changed paths so that it nimfix compiles from prominent dirs.
2015-02-20 20:00:16 +01:00
Andreas Rumpf
e8e8c9bfac Merge pull request #2181 from PhilipWitte/devel
Fixes to website support page and other minor touches to banner, download, faq pages.
2015-02-20 20:00:04 +01:00
d3m1gd
134bfb668c Some additions to dom.nim
Missing functions and fields for various dom elements/events.
2015-02-20 19:30:12 +01:00
Hans Raaf
b6cde0bab0 Changed project relative path to include the right directory. 2015-02-20 18:31:39 +01:00
PhilipWitte
73fbcc1f64 Fixup website support page and other minor touches. 2015-02-20 08:54:07 -08:00
PhilipWitte
53c83c4510 Merge remote-tracking branch 'upstream/devel' into devel 2015-02-20 08:50:45 -08:00
Araq
1e796ed9d9 fixes #2051 2015-02-20 16:09:43 +01:00
Dominik Picheta
2a0b543fc3 Merge pull request #2173 from flaviut/fix-bg
Improve website background quality
2015-02-20 13:44:52 +00:00
Araq
c90a13bb41 fixes #2124 2015-02-20 12:25:58 +01:00
def
f710a31344 Make rationals generic 2015-02-20 12:21:09 +01:00
PhilipWitte
8c5a47ee2b Merge remote-tracking branch 'upstream/devel' into devel 2015-02-19 21:16:39 -08:00
def
d3946aa621 Add sortedBy template to sequtils 2015-02-20 05:01:29 +01:00
def
28fa1c3b40 Add sorted proc to algorithm module 2015-02-20 04:57:53 +01:00
Flaviu Tamas
e36011a5a1 Improve website background quality
The old image was compressed with JPG and was improperly rendered anyway. The
background has been modified so that each dot lines up perfectly on pixel
boundaries. It's compressed with lossy PNG, which has the advantage of
preserving the quality of the dots.

There will be another PR to fix the background URL for the forum.
2015-02-19 20:38:11 -05:00
Varriount
95861aecf0 Merge pull request #2168 from oderwat/fix-niminst
Cleaned up T/P names.
2015-02-19 11:12:58 -05:00
Hans Raaf
85157f5076 Cleaned up T/P names. 2015-02-19 16:31:07 +01:00
def
f6c83c32f3 Fix typo 2015-02-19 13:57:31 +01:00
def
c377e6883c Change author of rationals module 2015-02-19 10:54:38 +01:00
Andreas Rumpf
43c023c8dd Merge pull request #2164 from oderwat/fix-tohex
Fixing toHex() to not wrap for long lens + Test
2015-02-19 09:12:50 +01:00
Andreas Rumpf
a8acb5ec65 Merge pull request #2165 from def-/read-write-bytes
Make readBytes and writeBytes work with uint8
2015-02-18 23:09:46 +01:00
def
ecfaab68f1 Make readBytes and writeBytes work with uint8
So far only openarray[int8] worked. Now it's openarray[int8|uint8]. This
should make sense, since uint8 is comfortable to represent a byte
(0-255) and there is already type byte* = uint8 in system.
2015-02-18 21:13:01 +01:00
Hans Raaf
a471b3c87f Added test for toHex(). 2015-02-18 19:02:38 +01:00
Hans Raaf
88f3b1d99f Fixing toHex() to not wrap for long lens.
If you specify a len like 32 toHex() will repeat the given value in the
output. Besides that I believe my implementation is easier and seems not
to change how negative numbers are handled. I also handle the case of
wrapping negative number beyond BiggestInt to "do it right".
2015-02-18 18:58:20 +01:00