B3liever
fb75e3bb49
Fix names set and get procs in macros
2018-10-30 15:42:48 +02:00
Flaviu Tamas
45040a8716
Merge pull request #9539 from flaviut/ft-remove-nre-floats
...
Eliminate floating point arithmatic in nre
2018-10-30 07:29:51 -04:00
Araq
f6def4286c
fixes #8603
2018-10-30 11:28:45 +01:00
Ahmed T. Youssef
df68c2da49
write logs to stderr instead of stdout; fixes #9547 ( #9554 )
2018-10-30 07:36:31 +01:00
rec
9899c4525c
Add parsing empty attribs to htmlparser ( #9559 )
2018-10-30 06:58:39 +01:00
Araq
e44df5dca6
fixes #7667 ; underlying issue is that dot calls in generics have no concept of 'friend' symbols, will be addressed later
2018-10-29 13:46:55 +01:00
rec
9fd0a71e4d
Make htmlparser parse unquoted attrib values ( #9537 )
...
Fixes #6154
2018-10-29 11:10:00 +01:00
Araq
680f5eeb15
fixes #9540
2018-10-29 10:06:36 +01:00
narimiran
80b78b50d0
more examples for mod and div, plus corrections [ci skip]
2018-10-28 22:37:58 +00:00
Clyybber
2aa7eeda39
actually do ceiling division, not a similar operation
...
Co-Authored-By: flaviut <tamasflaviu@gmail.com >
2018-10-28 14:34:05 -04:00
Neelesh Chandola
95cc1abdc7
Fixes #9525 ( #9526 )
2018-10-28 14:27:17 +01:00
cooldome
dfb8730f51
Implements #9434 . Minimal Stacktrace for Exceptions in release mode ( #9480 )
...
* Fixes #9434
2018-10-28 13:40:42 +01:00
Dominik Picheta
f670c55daa
Moves fsmonitor into graveyard. Fixes #6718 . ( #9529 )
2018-10-28 13:37:51 +01:00
xzfc
95a60dc780
Fix strscans.scanp ( #9518 )
...
* strscans: fix typo
* strscans: fix #9240
* strscans: add tests
2018-10-28 13:35:30 +01:00
zah
ee54d6977b
Parse the usage of the SQL in operator properly ( #9527 )
...
Also adds a `treeRepr` renderer for the SQL nodes.
2018-10-28 13:34:57 +01:00
Flaviu Tamas
9ca1c2c930
Eliminate floating point arithmatic in nre
...
Integer division is already hard enough on your CPU, using floating
point here is WAY slower and can just as effectivly be done using
integers. This is important because matchImpl tends to be in the center
of very hot loops (like split()).
2018-10-28 00:53:09 -04:00
David Krause
f2cd8ed99a
fixes #7842 if no uri.scheme specified raise ValueError with hint ( #7846 )
...
* fixes #7842 if no uri.scheme specified on request rais ValueError with hint
Signed-off-by: enthus1ast <david@code0.xyz >
* Update httpclient.nim
2018-10-27 21:54:45 +01:00
citycide
4362ba7293
docs: clarify asyncCheck vs waitFor
2018-10-27 18:04:25 +01:00
Kaushal Modi
f8cef575b3
Improve dumpLisp macro ( #9515 )
...
* Improve dumpLisp macro
- Remove commas from the lisp representation of the AST.
- Make the dumpLisp output "pretty" and indented.
- Improve docs of `dumpTree` and `dumpLisp` macros.
With:
dumpLisp:
echo "Hello, World!"
Output before this commit:
StmtList(Command(Ident("echo"), StrLit("Hello, World!")))
Output after this commit:
(StmtList
(Command
(Ident "echo")
(StrLit "Hello, World!")))
* Re-use the traverse proc inside treeRepr for lispRepr too
- Add module-local `treeTraverse` proc.
- Also fix treeRepr/dumpTree not printing nnkCommentStmt node contents.
* More doc string updates
* Allow unindented lispRepr output for tests
* Update a test affected by the lispRepr change
* Fix dumpTree
* Add note about lispRepr and dumpLisp to changelog [ci skip]
2018-10-27 14:10:05 +01:00
Mamy Ratsimbazafy
5b97762787
Openmp parallel iterator improvements ( #9493 )
...
* More flexibility in OpenMP pragma
* Use static to constrain to compile-time annotation string
* Update changelog with OpenMP change
2018-10-25 18:09:35 +02:00
Andreas Rumpf
223e92b83a
stdlib: documenation updates, the exception names have been changed
2018-10-25 07:42:45 +02:00
Andreas Rumpf
9331f06c0b
parsutils: minor doc improvements
2018-10-24 21:52:33 +02:00
Araq
963292f725
added system.typeof operation; fixes #9093
2018-10-24 17:09:51 +02:00
loongw
4841fc5356
\#include "windows.h" instead of "Windows.h" ( #9475 )
...
This fixes #9474
2018-10-23 15:50:11 +02:00
recloser
2b03bed2db
Fix printing and comparing uninitialized strings
2018-10-21 21:18:10 +02:00
Vindaar
e190f485ae
fixes #9456 by only calling c_fclose if non nil
2018-10-20 20:35:04 +02:00
Oscar Nihlgård
81f5427ed4
Fix times 32-bit issue
2018-10-19 22:33:40 +02:00
cooldome
953f2ef261
Minor bug fix ( #9430 )
2018-10-19 11:45:59 +02:00
cooldome
eaca5be9d6
Change the order of compilation passes, transformation is made lazy at code gen ( #8489 )
...
* Ast no transformation
* Add getImplNoTransform to the macros module
* progress on delaying transf
* Fix methods tranformation
* Fix lazy lambdalifting
* fix create thread wrapper
* transform for lambda lifting
* improve getImplTransformed
* Fix destructor tests
* try to fix nimprof for linux
2018-10-18 20:21:25 +02:00
Arne Döring
9f18a4f448
Merge pull request #8366 from krux02/nimnode-or
...
or on NimNode
2018-10-18 17:49:47 +02:00
Arne Döring
f9bc4d014a
changelog entry
2018-10-18 16:07:15 +02:00
Arne Döring
016e0b1aac
fix typo
2018-10-18 15:42:14 +02:00
Arne Döring
358b5225df
fixed comment
2018-10-18 15:39:22 +02:00
Arne Döring
48697dc5bb
added test case for or operator
2018-10-18 15:39:22 +02:00
Arne Döring
abe8ac1962
or on NimNode
2018-10-18 15:39:22 +02:00
Vindaar
82a1576263
fix #9394 by replacing fmt with strutils.% ( #9417 )
...
* fix #9394 by replacing `fmt` with normal string append
Until issue #7632 is fixed, use string append.
* use `strutils.%` instead of normal string add
2018-10-18 14:47:47 +02:00
LemonBoy
1fe949b9d5
Make the swap procs safe for unaligned input ptrs ( #9210 )
...
* Make the swap procs safe for unaligned input ptrs
The copy to a temporary local variable is often elided by a sufficiently
smart compiler when it can prove the input pointer is aligned.
Refs #9206
* Explain why copyMem is used
2018-10-18 14:30:31 +02:00
Timothee Cour
7d8e281239
[nimscript] document currentSourcePath in thisDir ( #9402 )
2018-10-18 12:18:40 +02:00
Yuriy Glukhov
dc72cf7564
No setjump in GC for emscripten/wasm ( #9386 )
2018-10-17 00:46:13 +02:00
Federico Ceratto
afc453beff
Update example ( #9395 )
2018-10-17 00:17:37 +02:00
eqperes
afd9d8dd8d
Some documentation added to strutils ( #9379 )
...
* wip documentation strutils
* some runnableExamples in strutils
* assert -> doAssert
* corrected doc for abbrev; some more runnable examples
* runnableExamples for join
* fix c&p error
* corrections
2018-10-16 17:30:38 +02:00
LemonBoy
72cd3b7914
Fix repr() for UncheckedArray ( #9385 )
2018-10-16 14:27:42 +02:00
skilchen
f04c93b5dd
math.round is not needed in strutils ( #9383 )
2018-10-16 09:19:53 +02:00
Araq
0c04da6f26
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2018-10-15 12:20:52 +02:00
Araq
8252c65cf2
system.nim deprecate 'getRefcount'; refs #2839 , refs #3713
2018-10-15 10:54:20 +02:00
Araq
37986d0ba8
ospaths docs: add 'basename' to theindex
2018-10-15 10:51:47 +02:00
Araq
fe091997aa
system.nim: fixes typo
2018-10-15 02:38:04 +02:00
Timothee Cour
3bef851143
fix #8225 os.isHidden was buggy on posix ( #8315 )
...
* fix #8225 isHidden was broken on posix
* scope rest of tos.nim under blocks to avoid variable scope bugs
2018-10-15 00:22:34 +02:00
Andreas Rumpf
8955470644
fixes #9306 properly, fixes #9306
2018-10-14 11:19:51 +02:00
Federico Ceratto
b62328cb76
Add strip() example ( #8002 )
2018-10-14 11:05:28 +02:00