| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| | |
Fix streams peekline
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/ |
|
|\
| |
| | |
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
|
|\
| |
| | |
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
|
|\
| |
| | |
Revert "Fix typo in manual"
|
|/ |
|
|\
| |
| | |
Fix typo in manual
|
| |
| |
| |
| | |
See IRC logs around Sun May 24 22:06:26 EDT 2015 for details
|
|\ \
| | |
| | | |
system.nim -> disabled Uninit warnings
|
|/ / |
|
|\ \
| | |
| | | |
Fix GC scanning of registers on x86_64 architectures.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
It is possible for jmp_buf to not be word-aligned or addresses
in the register dump to not be word-aligned. This can result in
either addresses in registers being missed or even addresses on
the stack past the register area not being scanned properly.
|
|\ \ \
| | | |
| | | | |
Added peeking procedures to streams
|
| | | |
| | | |
| | | | |
All peeks should be covered by defer now, I think
|
| | | |
| | | |
| | | | |
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.
|
| | | | |
|
| | | |
| | | |
| | | | |
Adds peeking to streams, which is just like reading, but at the end, the stream position hasn't changed.
|
|\ \ \ \
| | | | |
| | | | | |
Small sequence fix for algorithm.nim
|
| | | | |
| | | | |
| | | | | |
Since #853 was fixed, this should work fine. The `result = @[]` was swapped to the same syntax, too.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Nimsuggest works on first try
|
| | | | | | |
|
| | |_|_|/
| |/| | | |
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
Fix typo in tutorial
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
Fix asyncdispatch.async bug with discard stmt
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
Intval
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Clean up stdin file reading of compiler.
|
| | | | | | |
|
| | |/ / /
| |/| | |
| | | | |
| | | | |
| | | | | |
Uses "stdinfile" as the module identifier now, which prevents problems
with - colliding with the minus operator. This fixes #2422 and #2702.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fixed JS call codegen, when first parameters are compile-time.
|
|/ / / / / |
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Add -ldl with clang cpp compilation
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This fixes compilation with --cc:clang and cpp.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
nanoant/patch/macros-introduce-typenode-for-typedesc
Macros: Introduce typeNode(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.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Make a few json procs inline, improves performance significantly
|
| | |_|/ / /
| |/| | | | |
|
| | | | | | |
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | | |
Improved performance of json rendering with `$`
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|