Commit Graph

3637 Commits

Author SHA1 Message Date
x2f
3f78f75483 Expose bufSize parameter for file-based loggers
newFileLogger and newRollingFileLogger have a new bufSize parameter that
is used in open(). The default value -1 has the same behavior as before.
Use 0 for unbuffered output to log file.
2015-05-31 21:06:23 -04:00
Stefan Talpalaru
50e96ad939 the Go GC - initial implementation 2015-05-31 19:07:44 +02:00
Oscar Campbell
d35887e492 Util funcs used by lib/hashes.nim and compiler/lexer.nim 2015-05-31 01:32:50 +02:00
Oscar Campbell
1b4db5a34c Implement #2811 - Unicode en-dash (U+2013) as hump/snake alt. 2015-05-31 01:31:06 +02:00
boopcat
af07db2829 Export newSocket(fd) from net.nim and standardize args in net/asyncnet
Exporting newSocket(fd) mimics what asyncnet does and lets you pass in your
 own socket FD.
newSocket*(fd) and newAsyncSocket*(fd) now both take "buffered" instead of
 "isBuff" and defaults to true to match the other constructors on both.
2015-05-30 11:01:15 +00:00
yglukhov
c5f7d553e9 Perform lambda lifting for compile-time stuff when targeting JS. Enable unittest test. 2015-05-29 10:48:14 +03:00
Stephan Diehl
4fcf5adfe2 fix for https://github.com/nim-lang/Aporia/issues/69 2015-05-28 15:25:09 +02:00
yglukhov
e65ccfb8f5 Removed formatting from logging. 2015-05-28 14:48:53 +03:00
Araq
543ec37975 get rid of deprecated effects 2015-05-28 12:51:18 +02:00
Araq
3c13508b25 terminal: doc improvments 2015-05-28 12:51:17 +02:00
Araq
e51e2564a2 development version is 0.11.3 2015-05-28 12:51:16 +02:00
Araq
21ea8e6913 some progress on making async multithreaded 2015-05-28 12:49:08 +02:00
Araq
94f54700c4 first implementation of pinnedSpawn 2015-05-28 12:42:04 +02:00
Flaviu Tamas
075a5e8440 Disable static building of PCRE 2015-05-26 19:20:00 -04:00
Flaviu Tamas
42db40813c Clarify nre licencing 2015-05-26 19:18:34 -04:00
Flaviu Tamas
0527e1f9fe Rearrange nre files 2015-05-26 19:14:04 -04:00
Flaviu Tamas
0d4aeec9be Merge remote 'nre' into add-nre
* nre-proj/master: (132 commits)
  Change to options module
  Reweave readme
  Better handle errors
  Update documentation
  Change flags to inline
  Improve performance
  Add tests for empty or non-empty match
  Fix skipping an empty match at the end
  Add longer flags
  Fix getinfo overflows
  Use docweave
  Convert readme to RST
  Fix result shadowing warning
  Throw an exception when replacing with a nil value
  Fix potential buffer overflow
  Fix zero-length matches for multibyte characters
  Make splitting an empty string give 1 empty result
  Change endpos to inclusive
  Change endpos default from -1 to int.high
  Change capture upper bounds to inclusive
  ...
2015-05-26 19:05:43 -04:00
Flaviu Tamas
c9616897f0 Don't inspect typedescs 2015-05-26 18:40:43 -04:00
Flaviu Tamas
0479831fb0 Rename optionals module to options 2015-05-26 16:48:17 -04:00
Bruce Doan
c02be0fe00 Allow TR, TH, TD tags inside THEAD and TFOOT 2015-05-27 00:18:15 +07:00
Dominik Picheta
d03b5891c1 Merge pull request #2697 from lyro/devel
logging: make fmtStr public to be used in user defined loggers
2015-05-26 16:10:30 +01:00
Andreas Rumpf
1ebff2ef83 Merge pull request #2762 from flaviut/optionals
Optionals
2015-05-26 15:33:08 +02:00
Flaviu Tamas
f9e95b2987 Amend optionals docstring 2015-05-26 09:21:15 -04:00
Andreas Rumpf
8ee98b3681 Merge pull request #2795 from rgv151/patch-1
Remove dead code in findAll proc
2015-05-26 12:16:49 +02:00
Andreas Rumpf
45f14fd73a Merge pull request #2803 from avsej/fix-boehm-gc-on-linux
Fix Boehm GC on linux
2015-05-26 12:05:27 +02:00
Sergey Avseyev
1001fd2166 Fix Boehm GC on linux
Motivation
----------
Some linuxes (like Fedora) actually multiarch. And it means that
libgc.so.1 not always installed into /usr/lib. It is better to entrust
this job to ld and system configuration for it.

Modification
------------
Use relative path for Boehm GC on 'other' OS (and linux in particular)

Result
------
It is possible now to build nim with --gc:boehm on linux
2015-05-26 08:40:51 +03:00
Flaviu Tamas
d3fc943b6d Fix guard for streams tests 2015-05-25 18:13:20 -04:00
Flaviu Tamas
55e126c5c8 Clean up JSON tests 2015-05-25 18:13:20 -04:00
Sergey Avseyev
116347674c Fix peekLine() for streams
Motivation
----------
peekLine procs use defer to reset position in the stream, but it also
make them always return nil.

Modification
------------
Explicitly set result value in peekLine, and write missing unit test.

Result
------
Tests are green and bug is fixed
2015-05-26 00:29:58 +03:00
Sergey Avseyev
f516434283 Remove trailing spaces 2015-05-25 23:27:46 +03:00
Bruce Doan
ae3fc71462 Remove dead code in findAll proc 2015-05-26 00:02:59 +07:00
apense
513423a08d Corrected various links within documentation
Corrected `noSideEffect pragma` links in lib/system
(The newer documentation uses slightly different links)

Corrected `noSideEffect pragma` in types links to match the updated link names

Minor link adjustment in stmts to match the newer link names
2015-05-25 03:15:50 -04:00
Flaviu Tamas
d3ab60c831 Remove Oleah Prypin as author
Done on request, see https://github.com/Araq/Nim/pull/2762#issuecomment-105071496
2015-05-24 18:20:37 -04:00
HOLYCOWBATMAN
1dd2379e4c system.nim -> disabled Uninit warnings 2015-05-24 15:35:24 -04:00
Andreas Rumpf
177129195f Merge pull request #2671 from rbehrends/fix-register-scan
Fix GC scanning of registers on x86_64 architectures.
2015-05-25 00:55:39 +02:00
Andreas Rumpf
28822c431c Merge pull request #2543 from apense/patch-1
Added peeking procedures to streams
2015-05-25 00:52:01 +02:00
Andreas Rumpf
39c00d3dd1 Merge pull request #2733 from apense/patch-4
Small sequence fix for algorithm.nim
2015-05-25 00:49:48 +02:00
apense
f610f8c5f0 Added defer statement
All peeks should be covered by defer now, I think
2015-05-24 18:36:52 -04:00
apense
d48bcb9873 Rewrote some peeking procedures
Use `defer`s and `read...` procs that are already in place. Someone should check that the `defer`s are written correctly. I'm new to using them.
2015-05-21 17:51:41 -04:00
Göran Krampe
0fc53151ba Tweaked to do commas properly 2015-05-20 12:48:38 +02:00
Philip Witte
c936cf9e8e Fix bug with asyncdispatch.async and discard statements. 2015-05-20 03:34:48 -07:00
Göran Krampe
2cceaff88a Fixes #2749, traverse full inheritance for reprRecord 2015-05-20 11:59:02 +02:00
Flaviu Tamas
caa730127b Use custom exception for option unpack 2015-05-19 17:47:54 -04:00
Flaviu Tamas
ae0c8573f2 Simplify optionals tests 2015-05-19 16:58:39 -04:00
Flaviu Tamas
a66dcd9d94 Simplify optionals module 2015-05-19 16:52:24 -04:00
Oleh Prypin
32ebcfa8ff Implement optionals module 2015-05-19 16:38:37 -04:00
Koala Zen
7a2dce8012 refactored lowerBound in algorithm.nim 2015-05-18 14:59:05 -07:00
Dominik Picheta
59e95c015e Fixes problems introduced by #2738. Closes 2755. 2015-05-18 21:57:59 +01:00
transfuturist
bc2aaea853 Change check for NimNode items to node kind 2015-05-17 15:05:26 -07:00
Dominik Picheta
baee41499e Merge pull request #2712 from nanoant/patch/macros-introduce-typenode-for-typedesc
Macros: Introduce typeNode(t: typedesc): NimNode
2015-05-17 18:22:55 +01:00