summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Update jsfetch with latest API and fix missing bindings (#19473)tandy10002022-02-011-21/+25
| | | | | | | | | | | | | | | | | | | | * Update with latest API and fix missing bindings remove deprecated `Body` remove implicit `cstring` convs add `Headers` to `FetchOptions` add `Request` init proc which takes `FetchOptions` * Update lib/std/jsfetch.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com> * Update lib/std/jsfetch.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com> * remove experimental flag Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
* fix broken CI (#19472)flywind2022-01-313-6/+9
| | | | | | | * fix broken CI * fix * fix tests
* [add testcase] NRVO does not occur with init procedures (#19462)flywind2022-01-291-0/+28
| | | | | | | * [add testcase] NRVO does not occur with init procedures close #19094 * Update tests/ccgbugs2/tcodegen.nim
* Merge pull request from GHSA-ggrq-h43f-3w7mDominik Picheta2022-01-293-11/+58
| | | | This fixes a CVE (currently https://github.com/nim-lang/Nim/security/advisories/GHSA-ggrq-h43f-3w7m)
* update outdated link (#19465)flywind2022-01-281-1/+1
| | | Ref https://github.com/nim-lang/Nim/issues/19463
* nvro don't touch cdecl types [backport: 1.6] (#19461)flywind2022-01-287-19/+51
| | | * nvro don't touch cdecl types; fix #19342 again
* support set other GCs after `mm = orc` or `mm = arc` is set in the global ↵flywind2022-01-271-20/+34
| | | | | | | | | config (#19455) * support set other GCs after arc/orc in global config fix #15535 * set before
* change run command for numericalnim (#19448)Hugo Granström2022-01-251-1/+1
| | | Now it makes runs the custom `nimCI` task that installs the external dependencies
* bugfix: varargs count as open arrays (#19447)Andreas Rumpf2022-01-251-1/+1
|
* os: faster getFileSize (#19438)ehmry2022-01-241-5/+4
| | | | Use "stat" rather than "open", "seek", and "close" system calls. The Windows implementation remains the same.
* RST: allow empty number-lines directives just like it was done for a decade; ↵Andreas Rumpf2022-01-221-1/+2
| | | | all my documents rely on this feature [backport (#19431)
* New/better macro pragmas, mark some as experimental (#19406)metagn2022-01-208-209/+439
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * New/better macro pragmas, make some experimental fix #15920, close #18212, close #14781, close #6696, close https://github.com/nim-lang/RFCs/issues/220 Variable macro pragmas have been changed to only take a unary section node. They can now also be applied in sections with multiple variables, as well as `const` sections. They also accept arguments. Templates now support macro pragmas, mirroring other routine types. Type and variable macro pragmas have been made experimental. Symbols without parentheses instatiating nullary macros or templates has also been documented in the experimental manual. A check for a redefinition error based on the left hand side of variable definitions when using variable macro pragmas was disabled. This nerfs `byaddr` specifically, however this has been documented as a consequence of the experimental features `byaddr` uses. Given how simple these changes are I'm worried if I'm missing something. * accomodate compiler boot * allow weird pragmas * add test for #10994 * remove some control flow, try remove some logic
* Fix #11923 (#19427)Regis Caillaud2022-01-202-1/+16
| | | | | * Apply commit https://github.com/nim-lang/Nim/commit/5da931fe811717a45f2dd272ea6281979c3e8f0b that was never merged (was part of a bigger PR). Should fix issue #11932 * add a generic object for custom pragma
* enable weave (#19363) [backport:1.6]flywind2022-01-202-3/+8
| | | | * enable weave * workaround CI
* Resolve cross file resolution errors in atomics (#19422) [backport:1.6]James2022-01-203-10/+27
| | | | | * Resolve call undeclared routine testAndSet * Fix undeclared field atomicType
* Added `std/envvars` for env vars handling (#19421)flywind2022-01-203-2/+273
|
* Add noQuit option (#19419) [backport:1.6]Tom2022-01-191-2/+5
| | | | | | | | | * Add noQuit option * Add nim prefix in case of conflicts Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: flywind <xzsflywind@gmail.com>
* Don't reject types directly on AST (#19407)metagn2022-01-192-2/+13
| | | | | | | Instead of rejecting type expressions based on node kind, evaluate the expression as a type. This is already the behavior for call results, and it has its own error for non-types, which is the same error you would normally get with 2 words swapped.
* fix term rewriting with sideeffect (#19410)flywind2022-01-192-2/+24
| | | | | | | | | * fix term rewriting with sideeffect fix #6217 * add tests * Update tests/template/template_various.nim
* add an example to setControlCHook (#19416)nblaxall2022-01-191-0/+9
| | | | | | | * add an example to setControlCHook * [skip CI] format example for setControlCHook Co-authored-by: Nathan Blaxall <nathan.blaxall@actionstep.com>
* suppress deprecated warnings (#19408)flywind2022-01-191-2/+1
| | | | | | | * suppress deprecated warnings once bump version to 1.7.3 enable deprecated messages * deprecate later
* fix stricteffects (nimsuggest/sexp) (#19405)flywind2022-01-181-1/+1
| | | | | | | * fix stricteffects (nimsuggest/sexp) * Update tstrict_effects3.nim * Update tests/effects/tstrict_effects3.nim