Commit Graph

2125 Commits

Author SHA1 Message Date
Andreas Rumpf
73291aa1bc Merge pull request #3781 from rgv151/patch-net-gc-safe
[net/httpclient] make it gc-safe #2692
2016-02-06 15:26:07 +01:00
Andreas Rumpf
981974ab11 Merge pull request #3831 from ephja/nimrod-to-nim
nimrod -> nim
2016-02-06 15:24:09 +01:00
Andreas Rumpf
03f4aa23d7 Merge pull request #3106 from def-/deprecation
Fix a few deprecation warnings
2016-02-06 15:22:19 +01:00
def
62955292f2 Revert removal of raiseOSError 2016-02-06 13:51:51 +01:00
def
11f055c652 Fix json.%* for empty objects 2016-02-06 03:29:09 +01:00
def
bf8e371d7e Revert raiseOSError change 2016-02-06 01:29:12 +01:00
Erik Johansson Andersson
f8d98700ac nimrod -> nim 2016-02-05 19:11:43 +01:00
Andreas Rumpf
cf9d8d6bba Merge pull request #3814 from scriptum/fix-3802
Use defer in iterator to avoid possible leaks
2016-02-05 03:30:48 +01:00
Pavel Roschin
17dff030ae Use defer in iterator to avoid possible leaks. Fixes #3802 2016-02-02 23:20:39 +03:00
Andreas Rumpf
ec1abdef97 fixes #3789 2016-01-31 01:32:09 +01:00
Bruce Doan
4a3a9d8ab8 export parseIpAddress proc 2016-01-27 00:07:31 +07:00
Bruce Doan
443ec02a92 make it gc-safe #2692 2016-01-26 23:06:15 +07:00
def
c10d963e85 bindaddr raises ValueError exception instead of OSError 2016-01-26 16:16:55 +01:00
Andreas Rumpf
1fbeedaba2 Merge branch 'devel' of https://github.com/nim-lang/Nim into devel 2016-01-26 12:46:38 +01:00
Andreas Rumpf
d338744d7a os.findExe on Windows can deal with quotes 2016-01-26 12:43:07 +01:00
def
c50b5b62ef Fix a few deprecation warnings 2016-01-25 19:10:37 +01:00
def
4246f660ea Only use execvpe on linux, execvp elsewhere (fixes #3759) 2016-01-24 19:18:16 +01:00
Andreas Rumpf
732479b797 Merge pull request #3742 from boydgreenfield/boydgreenfield-nimprof-warning
Improve warning msg when -d:profiler not passed
2016-01-22 00:00:14 +01:00
Nick Greenfield
5e8762c21e Improve warning msg when -d:profiler not passed
Partially addresses #3741
2016-01-21 13:49:13 -08:00
Yuriy Glukhov
df211b24fd Dont convert string to cstring when writing to stream. 2016-01-21 11:41:52 +02:00
Hans Raaf
0634486689 Fixed deprecation warnings while Nim compiles.
I just removed unsigned and changed a writeLn() call to writeLine() to
avoid the remaining deprecation warnings.
2016-01-18 18:14:50 +01:00
Dominik Picheta
d79a5f5276 Added missing modules to lib.txt and warnings to some module's docs. 2016-01-18 15:33:39 +00:00
Andreas Rumpf
b0aaeaa436 Merge pull request #3703 from singularperturbation/feature/counttableref_getordefault
Fix CountTableRef#getOrDefault (#3702)
2016-01-18 14:30:14 +01:00
Andreas Rumpf
9fad7c4c2b Merge pull request #3519 from jlp765/stats1
stats.nim pure library (moved from math lib to new lib)
2016-01-17 21:56:11 +01:00
Andreas Rumpf
2c2ab6884c fixes strutils.unescape; refs #3634 2016-01-17 21:29:25 +01:00
Andreas Rumpf
dda01cb726 Merge branch 'devel' of https://github.com/nim-lang/Nim into devel 2016-01-17 20:30:08 +01:00
Dominik Picheta
eb1bedc3c2 Removed redis module from standard library. 2016-01-16 14:58:12 +00:00
Andreas Rumpf
0d4e52c648 makes tests green 2016-01-15 14:44:54 +01:00
Andreas Rumpf
1124c61c49 Merge branch 'devel' into new-ll 2016-01-14 15:01:55 +01:00
Sloane Simmons
aa0d65ed70 Fix CountTableRef#getOrDefault
Fixes issue with CountTableRef and getOrDefault:
```{nimrod}
import tables

proc main() =
  const testKey = "TESTKEY"
  let t: CountTableRef[string] = newCountTable[string]()

  # Before, does not compile with error message:
  #test_counttable.nim(7, 43) template/generic instantiation from here
  #lib/pure/collections/tables.nim(117, 21) template/generic instantiation from here
  #lib/pure/collections/tableimpl.nim(32, 27) Error: undeclared field: 'hcode'

  echo "Count of " & testKey & " is " & $t.getOrDefault(testKey)
  t.inc(testKey,3)
  echo "Count of " & testKey & " is " & $t.getOrDefault(testKey)

when isMainModule:
  main()
```

Previously, `getOrDefault` for CountTableRef objects was calling the
`getOrDefaultImpl` template, which used the t.data.hcode object -
assuming a Table or similar object.  Because CountTableRef didn't have
an hcode in its data tuples, this wouldn't compile.  Changed to be the
same as `CountTable#getOrDefault`.
2016-01-09 21:46:47 -06:00
Dominik Picheta
fffdae32c7 Fixed TimeInterval bug. 2016-01-08 11:54:34 +00:00
Dominik Picheta
09b159b816 Fixed ttime test. Improved docs in times module. 2016-01-08 11:46:11 +00:00
Dominik Picheta
596d400825 Merge branch 'times_intervals' of https://github.com/jlp765/Nim into jlp765-times_intervals 2016-01-08 11:12:16 +00:00
Andreas Rumpf
cd707084d1 fixes calling convention for the callbacks 2016-01-08 12:08:32 +01:00
Yuriy Glukhov
589132065e Lexbase compatible with JS 2016-01-06 16:38:27 +02:00
Dominik Picheta
9aa60add87 Fixes docgen for lib/pure/db_common.nim.
See http://forum.nim-lang.org/t/1916.
2016-01-05 15:56:13 +00:00
Yuriy Glukhov
dee5f9ad4f osproc fix for Android 2016-01-04 12:52:54 +02:00
Dominik Picheta
deef047f27 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2015-12-29 16:25:43 +00:00
Dominik Picheta
bf4c13711a Fixes incorrect Host header when using httpclient with proxy. 2015-12-29 16:25:21 +00:00
Dominik Picheta
cbab2ecea2 Merge pull request #3663 from def-/netbsd-fix
Fix osproc compilation on NetBSD, use workaround for missing execvpe
2015-12-25 14:30:23 +00:00
def
31cc1815d1 Fix nativesockets compilation on OpenBSD and NetBSD 2015-12-23 05:59:29 +01:00
def
25e862b9bc Fix osproc compilation on NetBSD, use workaround for missing execvpe 2015-12-23 05:56:42 +01:00
Andreas Rumpf
d6fbc1425f profiling doesn't require call to enableProfiling 2015-12-18 01:50:27 +01:00
Andreas Rumpf
f75d11193a modified the integrated profiler to hopefully produce more reliable results 2015-12-18 01:47:39 +01:00
Andreas Rumpf
4e157114a6 added more column information fields 2015-12-17 14:39:40 +01:00
Andreas Rumpf
cb10f30656 big update for the db*.nim modules; uses new db_common.nim 2015-12-16 20:56:12 +01:00
qio-io
135668a7ba Fixing too many open files on quit command with an explicit socket close, and importing the net module 2015-12-13 15:36:26 -04:00
Yuriy Glukhov
5545d36330 Fixed getAddrInfo on android 2015-12-08 12:30:38 +02:00
JamesP
8af8f7673b add timeinterval helping functions as per issue #3609
add tests to ttime.nim for timeinterval add/subtract functionality

Changed assert to doAssert in ttime.nim
Added extra tests to ttime.nim
Removal of singular help procs for working with TimeIntervals
Added TimeIin proc toSeconds(a: TimeInfo, interval: TimeInterval) where subtracting a year gave wrong results
Add overflow of units on initInterval eg, 65 seconds is 5 seconds and 1 minute
2015-12-08 10:16:42 +10:00
Dominik Picheta
6f09282352 Merge pull request #3570 from juanfra684/patch-1
OpenBSD doesn't support AI_V4MAPPED
2015-12-04 15:29:56 +00:00