summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* move assertions out of system (#19599)flywind2022-03-23110-10/+361
|
* Fix process lines iterator (#19605)Dominic Ward2022-03-231-6/+8
| | | | | | | * Ensure lines when process done * eliminate post-EOF exit test * Recommend fixes for execCmdEx/execProcess
* system: thread: stack dealloction on Zephyr (#19633) [backport:1.6]Jaremy Creechley2022-03-221-2/+16
| | | Try to free the stack allocation when a thread exits. Possibly works for FreeRTOS as well.
* fixes #19615; emit better code for integer divisions when the divisor… ↵Andreas Rumpf2022-03-221-6/+16
| | | | | | | (#19626) * fixes #19615; emit better code for integer divisions when the divisor is known at compile-time * proper bugfix: unsigned numbers cannot be -1
* fixes #19631 (#19618)Andreas Rumpf2022-03-202-3/+39
| | | Aliasing is hard and we have to watch out not to compile 'x = f(x.a)' into 'f(x.a, addr x)'
* compiler: Handle nkCheckedFieldExpr better in dfa (#19616)Clyybber2022-03-181-4/+2
| | | | | | | Simply recurse into their first child, which is always a nkDotExpr instead of treating them seperately. This fixes the rhs sym of a nkCheckedFieldExpr being checked twice in aliases. This double checking didn't cause any issues, but was unintentional and redundant.
* db_sqlite: added a spaceAraq2022-03-181-1/+1
|
* Removed deprecated httpcore func (#19550)Juan Carlos2022-03-183-14/+5
| | | | | | | | | * Remove Deprecated httpcore func * Remove Deprecated httpcore func * Fix a test with Deprecated func * Restart CI, Apple can code shit anymore I tell you
* support useVersion:1.6 (#19601)flywind2022-03-106-9/+57
|
* enable nimPreviewDotLikeOps (#19598)flywind2022-03-093-1/+2
|
* fixes #19575 (#19596) [backport]Andreas Rumpf2022-03-092-2/+27
| | | | | * fixes #19575 * better bugfix
* fixes #19569 (#19595) [backport]Andreas Rumpf2022-03-092-9/+7
| | | | | * minor code refactorings * fixes #19569
* register callback for marshal in VM (#19578)flywind2022-03-086-59/+96
| | | | | | | | | | | | | * register callback for marshal in VM * remove unrelated code * polish * more tests * more tests * add loadVM and toVM
* fix not flushing stdout in MSYS (#19590)Hamid Bluri2022-03-071-0/+1
| | | I did this pull request according to what xflywind said: https://github.com/nim-lang/Nim/pull/19584#issuecomment-1060085141
* Fix CPU detection for i386 (#19577)VlkrS2022-03-031-1/+1
| | | | | | | | | | * Fix CPU detection for i386 Commit 787def271b1cabc6f898caa42f892125de9fa908 breaks CPU detection for i386 on OpenBSD and probably on other platforms. [ isOpenIndiana -eq "yes" ] always returns 0, so mycpu is always set to "amd64". * Update buildsh.nimf Fix accidental bashism
* Fix typo in Nim Tutorial pt3 (#19579)huantian2022-03-021-1/+1
|
* apply changes from #18017 and some fixes (#19571)flywind2022-03-014-41/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * implements https://github.com/nim-lang/RFCs/issues/369 * deprecate unsafeAddr; extend addr addr is now available for all addressable locations, unsafeAddr is deprecated and become an alias for addr * follow @Vindaar's advice * change the signature of addr * unsafeAddr => addr (stdlib) * Update changelog.md * unsafeAddr => addr (tests) * Revert "unsafeAddr => addr (stdlib)" This reverts commit ab83c99c507048a8396e636bf22d55fdd84d7d1c. * doc changes; thanks to @konsumlamm Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * merge * remove * fix bug Co-authored-by: Araq <rumpf_a@web.de> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Fix #18662 (#19534)Evan Typanski2022-02-282-8/+3
|
* Add error message to pointer size check assert in lib/nimbase.h (#19549)Tomohiro2022-02-271-1/+1
|
* make compileOption("panics") work (#19568)solarizedalias2022-02-271-0/+1
|
* Remove define for jsfetch (#19530)Juan Carlos2022-02-254-99/+98
| | | | | | | | | * Remove define nimExperimentalAsyncjsThen for std/asyncjs.then and std/jsfetch * Remove define nimExperimentalAsyncjsThen for std/asyncjs.then and std/jsfetch * Remove define nimExperimentalAsyncjsThen for std/asyncjs.then and std/jsfetch * Remove define nimExperimentalAsyncjsThen for std/asyncjs.then and std/jsfetch
* fix #19266; allow reassign discriminant field (#19567)flywind2022-02-254-2/+39
| | | | | * add inUncheckedAssignSection * add one more test
* Allow std/macros.params to work with nnkProcTy (#19563)Tanguy2022-02-252-4/+33
| | | | | * Allow std/macros.params to work with nnkProcTy * Add tests for proc params & pragma
* Remove Deprecated jsre func (#19551)Juan Carlos2022-02-252-5/+1
| | | | | | | * Remove Deprecated jsre func * Remove Deprecated jsre func * ReStart CI, because OSX is dumb and I have no permission to restart
* Remove volatiles when compiling with ARC/ORC (#19545)PMunch2022-02-251-18/+50
| | | | | | | This removes volatiles on ARC/ORC targets in NimMain and PreMainInner. This avoids an issue where they couldn't be optimised out on microcontrollers leading to larger code. Since the stack bottom doesn't have to be initialised this way when using ARC or ORC (or None, which is also covered by this PR) these can be safely removed.
* Document links repect --out in .idx file (#19543)Jake Leahy2022-02-241-1/+4
| | | | | | | * Link in .idx file now respects --out:file switch * Use clearer chained calls Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
* compile pragma: cache the result sooner (#19554)Ștefan Talpalaru2022-02-241-1/+3
| | | | | | | | | | | | extccomp.addExternalFileToCompile() relies on hashes to decide whether an external C file needs recompilation or not. Due to short-circuit evaluation of boolean expressions, the procedure that generates a corresponding hash file is not called the first time an external file is compiled, so an avoidable recompilation is triggered the next build. This patch fixes that by moving the proc call with a desired side effect from its boolean expression, so it's executed unconditionally.
* Remove trailing space in `nim r` command; Amend one error message (#19487)locriacyber2022-02-181-1/+2
|
* keep casing of noinit and noreturn pragmas consistently documented (#19535)tersec2022-02-181-2/+2
|
* Update chcks.nim (#19540)rockcavera2022-02-171-1/+1
|
* Documentation: Fix word usage (#19529)Sizhe Zhao2022-02-145-8/+8
|
* [testcase] genSym fails to make unique identifier for ref object types (#19506)flywind2022-02-141-0/+60
| | | close #15118
* Remove deprecated math.c_frexp (#19518)Juan Carlos2022-02-143-11/+3
| | | | | | | * Remove Deprecated math proc * Remove Deprecated math proc * Remove Deprecated math proc
* Remove Deprecated oids.oidsToString (#19519)Juan Carlos2022-02-142-5/+2
| | | | | * Remove deprecated oids.oidToString * Remove deprecated oids.oidToString
* use OrderedTable instead of OrderedTableRef for mimedb (#19522)David Krause2022-02-143-2/+6
| | | | | | | | | * use OrderedTable instead of OrderedTableRef for mimedb Signed-off-by: David Krause <enthus1ast@users.noreply.github.com> * added changelog entry for mimedb change Signed-off-by: David Krause <enthus1ast@users.noreply.github.com>
* Remove backslash in glob pattern (#19524)konsumlamm2022-02-141-3/+3
|
* fixes #19404 by protecting the memory we borrow from. this replaces crashes ↵Andreas Rumpf2022-02-121-8/+13
| | | | | with minor memory leaks which seems to be acceptable. In the longer run we need a better VM that didn't grow hacks over a decade. (#19515) Co-authored-by: flywind <xzsflywind@gmail.com>
* fix #16458; make useNimRtl compile for --gc:orc (#19512)flywind2022-02-114-5/+13
| | | | | * fix #16458; make useNimRtl compile for --gc:orc/arc * fix tests
* don't use a temp for addr [backport: 1.6] (#19503)flywind2022-02-082-2/+24
| | | | | | | | | | | | | * don't use a temp for addr fix #19497 * Update compiler/ccgcalls.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * add a test Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Fix bug 27 of #17340 (#19433)Andrey Makarov2022-02-074-40/+81
| | | | | | Fixes silent disappearance of Markdown (pseudo-)link when it's detected as unsafe protocol. Now it will be converted to plain text in spirit of [the specification](https://spec.commonmark.org/0.30/#links). For that sake the check for protocol is added to rst.nim also.
* Add compilers and hints to default nim.cfg (#18424)Federico Ceratto2022-02-071-2/+13
|
* disable nimlsp (#19499)flywind2022-02-071-1/+1
|
* Improve consistency (#19490)Roj2022-02-071-2/+2
|
* setjump => setjmp [backport: 1.2] (#19496)flywind2022-02-061-1/+1
|
* undefine C symbols in JS backend [backport:1.6] (#19437)flywind2022-02-043-3/+11
| | | fix #19330; fix #19059
* fix parseEnum cannot parse enum with const fields (#19466)flywind2022-02-042-2/+18
| | | fix #19463
* correct typos (#19485)flywind2022-02-033-3/+3
|
* move io out of system (#19442)flywind2022-02-0224-42/+92
| | | | | | | | | | | | | | | | | | | | | | | | | * move io out of system * fix tests * fix tests * next step * rename to syncio * rename * fix nimscript * comma * fix * fix parts of errors * good for now * fix test
* Clonkk fix2 11923 (#19451)Regis Caillaud2022-02-022-5/+28
| | | | | | | * fix nnkBracketExpr not compiling for getImpl on customPragmaNode * fix test import * fix alias not working with hasCustomPragmas
* No longer segfault when using a typeclass with a self referencing type (#19467)Jason Beetham2022-02-022-1/+14
|