Commit Graph

5990 Commits

Author SHA1 Message Date
Sergey Avseyev
ba2aa474a1 Implement support for XZ dist tarball
Motivation
----------
Currenly tarballs for linux created manually. ZIP files are not
suitable, because they do not preserve unix file permissions.

Modification
------------
Implement 'koch xz' command to produce dist tarball in xz format. Also
the same command implemented in niminst.nim.

Result
------
Now it is easy to create source distribution for git stapshot and use it
further in packaging scripts.
2015-05-26 13:23:41 +03: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
Andreas Rumpf
4013071f81 Merge pull request #2800 from flaviut/fixup-tests
Misc. changes to stdlib tests
2015-05-26 12:05:12 +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
Andreas Rumpf
77b010bd36 Merge pull request #2799 from avsej/fix-streams-peekline
Fix streams peekline
2015-05-25 23:59:52 +02: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
Andreas Rumpf
475520f692 Merge pull request #2797 from avsej/pedantic-tester
Introduce pedantic mode for tester
2015-05-25 21:38:07 +02:00
Sergey Avseyev
411e602d13 Introduce pedantic mode for tester
Motivation
----------
External tools need to know whether or not any test in suite failed. For
example buildbot, or packaging tool would like to stop the execution and
mark it as failed if some tests does not pass.

Modification
------------
Add `--pedantic` switch to tester program which will force it to quit
with non-zero exit code if at least one failure detected. Also update
`tests()` proc in koch to inspect result from tester and propagate it to
user.

Result
------
Nothing has changed in default behaviour. But following invocations will
exit with non-zero code if there failed tests:

    ./koch tests --pedantic all
    ./tests/testament/tester --pedantic all
2015-05-25 22:37:30 +03:00
Bruce Doan
ae3fc71462 Remove dead code in findAll proc 2015-05-26 00:02:59 +07:00
Dominik Picheta
71561bef58 Merge pull request #2792 from apense/patch-1
Corrected various links within documentation
2015-05-25 10:57:00 +01: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
reactormonk
4702b5f5c3 Merge pull request #2788 from Araq/revert-2787-fix-doc-typos
Revert "Fix typo in manual"
2015-05-24 21:08:34 -05:00
reactormonk
d8921a4485 Revert "Fix typo in manual" 2015-05-24 21:08:12 -05:00
reactormonk
31d0f79d9d Merge pull request #2787 from flaviut/fix-doc-typos
Fix typo in manual
2015-05-24 21:07:25 -05:00
Flaviu Tamas
bdb55c5d1d Fix typo in manual
See IRC logs around Sun May 24 22:06:26 EDT 2015 for details
2015-05-24 22:06:12 -04:00
Andreas Rumpf
70be49966a Merge pull request #2786 from HOLYCOWBATMAN/pr-uninit-warnings
system.nim -> disabled Uninit warnings
2015-05-25 03:57:53 +02: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
Andreas Rumpf
cea13e4b5a Merge pull request #2784 from reactormonk/nimsuggest-works-on-first-try
Nimsuggest works on first try
2015-05-25 00:48:28 +02:00
Simon Hafner
4cc722a414 now nimsuggest works on the first sug 2015-05-24 17:47:51 -05:00
apense
f610f8c5f0 Added defer statement
All peeks should be covered by defer now, I think
2015-05-24 18:36:52 -04:00
Simon Hafner
928b730d1b fixes #2694 2015-05-24 14:52:16 -05:00
HOLYCOWBATMAN
1dd2379e4c system.nim -> disabled Uninit warnings 2015-05-24 15:35:24 -04:00
reactormonk
6c8f7cc481 Merge pull request #2778 from avsej/patch-1
Fix typo in tutorial
2015-05-23 11:41:42 -05:00
Sergey Avseyev
eb6f26dd6a Fix typo in tutorial 2015-05-23 19:32:47 +03: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
Dominik Picheta
5ad9d874c3 Merge pull request #2767 from PhilipWitte/devel
Fix asyncdispatch.async bug with discard stmt
2015-05-20 11:44:35 +01:00
Philip Witte
c936cf9e8e Fix bug with asyncdispatch.async and discard statements. 2015-05-20 03:34:48 -07:00
Andreas Rumpf
5d4ee87f3b Merge pull request #2754 from def-/intval
Intval
2015-05-19 14:36:03 +02:00
Andreas Rumpf
d7c0b269cb Merge pull request #2734 from def-/stdin-fix
Clean up stdin file reading of compiler.
2015-05-19 14:35:18 +02:00
Andreas Rumpf
c34d7e6467 Merge pull request #2761 from yglukhov/js-codegen-fix
Fixed JS call codegen, when first parameters are compile-time.
2015-05-19 14:33:47 +02:00
yglukhov
4439b00b19 Fixed JS call codegen, when first parameters are compile-time. 2015-05-19 13:41:18 +03:00
Dominik Picheta
59e95c015e Fixes problems introduced by #2738. Closes 2755. 2015-05-18 21:57:59 +01:00
def
2076e14a09 Update ast spec about uint literals 2015-05-18 21:34:26 +02:00
def
51de44be79 Make intVal work for uint literals in the VM 2015-05-18 21:31:24 +02:00
Dominik Picheta
f85dab3076 Merge pull request #2689 from def-/clang-cpp
Add -ldl with clang cpp compilation
2015-05-17 20:26:41 +01: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
Dominik Picheta
60af6a2653 Merge pull request #2747 from def-/json-inline
Make a few json procs inline, improves performance significantly
2015-05-17 18:20:27 +01:00
Dominik Picheta
d937b4cd85 Removes superfluous toUgly, documents toUgly better. 2015-05-17 18:18:33 +01:00
Dominik Picheta
0ab2dc2954 Merge pull request #2738 from onionhammer/devel
Improved performance of json rendering with `$`
2015-05-17 18:13:42 +01:00
def
46264a0674 Make a few json procs inline, improves performance significantly 2015-05-17 16:13:06 +02:00
def
2613110015 Use gProjectIsStdin instead 2015-05-17 16:10:46 +02:00
Adam Strzelecki
1d47617d1b Macros: Introduce getType(t: typedesc): NimNode
Since typedesc are exception in macros and they are not implicitly converted to
NimNode on macro call, we need some means to perform such conversion on demand.

Fortunately it is as simple as declaring new magic "NGetType" proc with
typedesc parameter.

NOTE: Keeping actual macro exceptional behavior for typedesc is important,
since it allows passing typedesc macro parameter to other procs or macros
expecting type parameter. If typedesc parameter was implicitly converted, then
we would lost this ability.
2015-05-17 15:28:41 +02:00
Andreas Rumpf
63f1e03278 Merge pull request #2732 from Perelandric/fix_miliseconds
Fixed 'milliseconds' spelling in code and docs
2015-05-17 12:04:03 +02:00
pdw
d1230497dd Updated with breaking changes 2015-05-16 14:35:41 -05:00