Andreas Rumpf
5d9663e4de
Merge pull request #2182 from d3m1gd/dom-additions
...
Some additions to dom.nim
2015-02-25 22:59:46 +01:00
Andreas Rumpf
0ff4ed0ff3
Merge pull request #2208 from def-/walkdir
...
Speed up walkDir significantly
2015-02-25 22:58:03 +01:00
Araq
975f33b01d
disable deprecated warnings for macros module
2015-02-25 21:14:21 +01:00
def
5e8eaa5f97
Use faster walkDir on BSDs
2015-02-24 23:39:08 +01:00
def
34d87c105c
Fall back to lstat() calls on unsupported filesystems
2015-02-24 23:31:31 +01:00
wiffel
72e4e7291f
Add SSLFree after SLShutdown to prevent memory leak
2015-02-24 22:01:07 +01:00
Araq
f4a0400de2
fixes #2199 , fixes #2197
2015-02-24 19:19:08 +01:00
def
18dd5e1965
Add some posix dirent documentation
2015-02-24 16:52:01 +01:00
def
1adebdc767
Speed up walkDir significantly
...
We only know that this works on Linux and Mac OS X, so other systems use
the POSIX conforming version still. This removed the lstat call, which
is especially expensive on NFS filesystems for me.
2015-02-24 16:37:54 +01:00
def
7898e91c32
Clean up selectors documentation a bit
2015-02-24 16:37:04 +01:00
def
3cd79faad3
Reuse socket in httpserver
2015-02-24 16:36:37 +01:00
Araq
752052e903
implements a type API for macros
2015-02-24 00:13:28 +01:00
Araq
1e6aef62ba
macros.PNimrodNode is now NimNode
2015-02-24 00:13:27 +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
d3m1gd
134bfb668c
Some additions to dom.nim
...
Missing functions and fields for various dom elements/events.
2015-02-20 19:30:12 +01:00
Araq
c90a13bb41
fixes #2124
2015-02-20 12:25:58 +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
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
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
Andreas Rumpf
358d4b958c
Merge pull request #2139 from c-blake/devel
...
Add mgetOrPut to support just one probe chase for the common
2015-02-18 15:56:23 +01:00
Araq
9fe1aa6996
intsets.empty is wrong
2015-02-18 13:44:00 +01:00
Andreas Rumpf
0b1989e6ca
Merge pull request #2155 from def-/warnings
...
Fix a few more warnings
2015-02-18 13:43:06 +01:00
Andreas Rumpf
3e63ce2833
Merge pull request #2156 from def-/usevfork
...
Always use 0x40 for POSIX_SPAWN_USEVFORK
2015-02-18 13:41:02 +01:00
def
2647423502
Fix documentations for declared (instead of defined)
2015-02-18 01:55:50 +01:00
def
c62b204960
Always use 0x40 for POSIX_SPAWN_USEVFORK
2015-02-17 02:33:54 +01:00
def
e686ca2523
Fix a few more warnings
2015-02-17 02:22:30 +01:00
Charles Blake
55840d9505
Merge ../Nim into devel
2015-02-16 14:55:08 -05:00
Andreas Rumpf
13c2d9b8e2
Merge pull request #2150 from def-/gc2-compiling
...
Make gc2 compile again and fix some deprecation warnings
2015-02-16 20:33:25 +01:00
def
b9abeff617
Clean up some more deprecation warnings
2015-02-16 19:13:49 +01:00
def
a5d22a9534
Make gc2 compile again
2015-02-16 19:12:09 +01:00
Charles Blake
629decd170
Add comments explaining odd looking i<0..data[i].
2015-02-16 07:48:31 -05:00
Charles Blake
0a3e732b9f
Just do wide interface of hasKeyOrPut & mgetOrPut.
...
Extract maybe re-hash/re-search and insert logic into a new template.
Use this new template to do impl templates for all three put forms
(which required renaming a couple 'value' arguments to 'val').
Added OrderedTable and OrderedTableRef versions of both as well.
2015-02-16 06:52:23 -05:00
Charles Blake
614a1f9d5a
Add TableRef version of mgetOrPut.
2015-02-16 06:02:31 -05:00
Federico Ceratto
657dca5c3b
Fix typos
2015-02-15 16:20:32 +00:00
Federico Ceratto
c95f6f117a
Fix typos
2015-02-15 16:06:06 +00:00
Charles Blake
7c1c9a6a9d
Add mgetOrPut to support just one probe chase for the common
...
pattern of either updating or initializing table entries.
2015-02-15 10:03:41 -05:00
Andreas Rumpf
d8c4c57637
Merge pull request #2133 from def-/cleanup
...
Cleanup
2015-02-15 15:12:39 +01:00
Andreas Rumpf
21fdda8fbc
Merge pull request #2115 from oderwat/no-pthread-on-osx
...
Disable -pthread for compiler/linker on OSX
2015-02-15 15:07:05 +01:00
Andreas Rumpf
dcf2f8b002
Merge pull request #2132 from fowlmouth/patch-2
...
Patch 2
2015-02-15 15:05:39 +01:00