summary refs log tree commit diff stats
path: root/lib/core
Commit message (Collapse)AuthorAgeFilesLines
* nnkArglist => nnkArgList + special case stylecheck:error (#17529)Timothee Cour2021-03-271-1/+1
| | | | | * nnkArglist => nnkArgList * special case stylecheck:error
* remove {.compileTime.} for procs with NimNode: redundant because of ↵Timothee Cour2021-03-231-99/+94
| | | | tfTriggersCompileTime (#17463)
* fix #17454 (#17461)Timothee Cour2021-03-231-11/+9
|
* Add documentation to the `macrocache` module (#17431)Danil Yarantsev2021-03-211-15/+176
| | | | | | | | | | | | | | | | | | | | | * Add docs to macrocache * use hint * Use incl in the incl example * add macrocache to lib * consistency * Update doc/lib.rst Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * apply suggestions * clarify the warning Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Fix macros.quote custom op symbol interpolation. (#17256)quantimnot2021-03-051-2/+6
| | | | | | | | | | Provides a workaround/fix for #7589. https://github.com/nim-lang/Nim/issues/7589 Updated docs and tutorial to reflect change. Updated runnableExamples to include an example. Co-authored-by: name <name@example.com>
* Replace double backticks with single backticks - Part 2 out of ~6 (#17206)Danil Yarantsev2021-02-281-79/+79
|
* Change stdlib imports to use std prefix in most examples (#17202)Danil Yarantsev2021-02-281-2/+2
|
* use single backtick (#17100)flywind2021-02-181-24/+24
|
* remove all uses of condsyms symbols defined prior to bootstrap nim 0.20.0 ↵Timothee Cour2021-02-171-113/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#16918) * nimNoArrayToCstringConversion deadcode * nimbabel deadcode * nimHasalignOf deadcode * nimvarargstyped deadcode * nimhygiene deadcode * nimNewTypedesc deadcode * nimlocks deadcode * nimHasCppDefine deadcode * nimHasRunnableExamples deadcode * nimHasNilChecks deadcode * nimSymKind deadcode * minor macros refactoring * nimVmEqIdent deadcode * nimNoNil deadcode * nimNoZeroTerminator deadcode * nimHasSymOwnerInMacro deadcode * nimVmExportFixed deadcode * nimNewRuntime deadcode * nimAshr deadcode * nimUncheckedArrayTyp deadcode * nimHasTypeof deadcode * nimErrorProcCanHaveBody deadcode * nimHasHotCodeReloading deadcode * nimHasSignatureHashInMacro deadcode * nimHasDefault deadcode * nimMacrosSizealignof deadcode
* use typeof instead type (#16962)flywind2021-02-081-3/+3
|
* fix floats slice (#16853)flywind2021-01-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * see whether it breaks * fix * fix * minor * fix * add enum * use Ordinal types * fix tests * fix * another style * fix remainning cases
* refactor cmpNimIdentifier (#16611)flywind2021-01-132-9/+3
| | | | | | | | | * refactor cmpNimIdentifier * Apply suggestions from code review Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Clyybber <darkmine956@gmail.com>
* macros.quote: document hard to use `op`; add more useful examples (#16489)Timothee Cour2021-01-061-23/+71
| | | | | | | | | | | | | | | | | * macros.quote: document hard to use `op`; add more useful examples * add back doc comment removed in a60305fbf3897cd90680e693dd4c0db2334d85d4 * address comment * fixup * clarify quoting rules * Update lib/core/macros.nim Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Clyybber <darkmine956@gmail.com>
* refactor cmpIgnoreStyle and cmpIgnoreCase (#16399)flywind2020-12-312-36/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * init * support strutils * more * better * Call len once per string/cstring * Change var to let * Compare ternary on first char * More appropriate param name * fix * better * one test * impl * more efficient * minor Co-authored-by: Clyybber <darkmine956@gmail.com>
* fix cmpIgnoreStyle bug (#16392)flywind2020-12-181-0/+1
|
* Fixes #16219, `hasArgOfName` ignoring argument sets. (#16233)Aditya Siram2020-12-031-4/+4
| | | | | | | | | | | | | | | * Fixes #16219, `hasArgOfName` ignoring argument sets. * Fix test and simplify ident traversal. * Moved test into a block and removed some boilerplate. * Fix some argument formatting. * use ..< * Change the preceding line too Co-authored-by: Clyybber <darkmine956@gmail.com>
* typeinfo minor improvement (#16083)flywind2020-11-231-111/+52
| | | | | | | | | * typeinfo minor improvement * minor * Update lib/core/typeinfo.nim * rename typeinfo
* alternative way to fix #16022 (#16064) [backport:1.4]flywind2020-11-201-2/+2
| | | | | | * alternative way to fix #16022 * add testcase for #16022 [backport:1.4]
* fix #15934 and #15620 (#15938) [backport:1.4]Andreas Rumpf2020-11-151-1/+4
|\ | | | | | | * make workaround for #15934 and #15620 * add testcase for #9754
| * nilflywind2020-11-131-0/+2
| |
| * make workaround for #15934 and #15620flywind2020-11-121-1/+2
| |
* | Correct all eggs (#15906)Miran2020-11-101-2/+2
|/ | | | * "eg" is a misspelled "egg", "e.g." is "exempli gratia" * Also, "ie" is "i.e.".
* ARC now capable of custom extra alignment. Ref, closure and seq support. ↵cooldome2020-10-281-2/+2
| | | | (#15697)
* fix rlock compilation failure (#15584)shirleyquirk2020-10-151-1/+1
| | | | | | | | | | | * change SysLockType_Reentrant fix edge case where using SysLockType_Reentrant doesn't trigger an #include pthread.h * syslocktype_reentrant now a var * remove nodecl to remove empty system_syslocks.c * let is better than var. in reality SysLockType = enum, maybe that would be a better fix
* fixes #9754 [backport] (#15342)Andreas Rumpf2020-09-161-4/+1
|
* allow old styled RTTI for arc/orc (#15331)Andreas Rumpf2020-09-161-54/+113
|
* enable,document,test getImplTransformed, very useful for understanding how ↵Timothee Cour2020-07-181-2/+5
| | | | | | nim transforms code (#14924) * enable,document,test getImplTransformed, very useful for understanding how nim transforms code
* Clean up macros (#14959)Juan Carlos2020-07-141-34/+0
|
* fix #14846; add macros.extractDocCommentsAndRunnables (#14849)Timothee Cour2020-07-011-0/+36
| | | | | | | | | * fix #14846; add macros.extractDocCommentsAndRunnables * fixup * update tests * address comment
* init checks and 'out' parameters (#14521)Andreas Rumpf2020-06-231-3/+4
| | | | | | | | | | | * I don't care about observable stores * enforce explicit initializations * cleaner code for the stdlib * stdlib: use explicit initializations * make tests green * algorithm.nim: set result explicitly * remove out parameters and bring the PR into a mergable state * updated the changelog
* add legacy workaround; improve test so that it actually tests for the bugfixTimothee Cour2020-06-191-3/+5
|
* Update tuple newLitsolo9892020-06-191-5/+12
|
* Remove deprecated stuff from stdlib (#14699)Miran2020-06-171-6/+0
| | | | | | | * update to the latest Jester * remove deprecated procs from some stdlib modules * 'criterion' is not maintained anymore and relies on obsolete stuff
* remove compilerproc from `newIdentNode` (#14692)Timothee Cour2020-06-171-1/+1
|
* Update macros.nim (#14697)solo9892020-06-171-3/+2
|
* `addQuitProc` now works with closures, and c, js(node/browser) backend; fix ↵Timothee Cour2020-06-161-3/+10
| | | | | | | | | | | | | | | some bugs in testament (#14342) * make addQuitProc great again * fix bugs in testament * fix test * change 2016 => 2020 * addQuitProc => addExitProc + locks * move to std/exitprocs
* Update newLit set[T] to work when set is empty. (#14662)solo9892020-06-151-0/+4
| | | | | | | | | * Update macros.nim * Update lib/core/macros.nim Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Clyybber <darkmine956@gmail.com>
* remove tyOpt, mOpt (#14636)Timothee Cour2020-06-121-1/+1
| | | | | * remove tyOpt, mOpt * fixup
* simple typo in locks.nim (#14297)Andy Davidoff2020-05-111-1/+1
|
* move since from inclrtl to std/private/since (#14188)hlaaftana2020-05-021-0/+1
| | | | * move since from inclrtl to std/private/since * move since import in system below for HCR
* parseEnum_regression (#14150)cooldome2020-04-281-1/+1
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* Error -> Defect for defects (#13908)Jacek Sieka2020-04-281-4/+4
| | | | | | | | | | | | | | * Error -> Defect for defects The distinction between Error and Defect is subjective, context-dependent and somewhat arbitrary, so when looking at an exception, it's hard to guess what it is - this happens often when looking at a `raises` list _without_ opening the corresponding definition and digging through layers of inheritance. With the help of a little consistency in naming, it's at least possible to start disentangling the two error types and the standard lib can set a good example here.
* forward type alignment information to seqs (#12430)Arne Döring2020-04-191-7/+10
|
* Fix a 'See XXX' on documentation, clean out (#13820)Juan Carlos2020-03-311-2/+1
|
* add nnkMacroDef to RoutineNodes (#13676)Jasper Jenkins2020-03-171-1/+1
|
* add expectIdent to macros (#12778)Arne Döring2020-03-111-0/+7
| | | | | | | | | | | | | | | | * add expectIdent to macros * apply feedback * Update lib/core/macros.nim Co-Authored-By: Clyybber <darkmine956@gmail.com> * Update texpectIdent2.nim * Update texpectIdent1.nim Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Remove dead magics (#13551)Arne Döring2020-03-031-1/+1
|
* Minor doc change in macros, future -> sugar (#13475) [ci skip]hlaaftana2020-02-241-1/+1
|
* expectLen now shows the length that we got (#13387)Clyybber2020-02-111-3/+3
|
* style fix: change 'JS' to 'js' to make it consistent (#13168)Miran2020-01-161-1/+1
|