Timothee Cour
78e2d299df
typo: nonexistant => nonexistent ( #17918 )
...
* typo: nonexistant => nonexistent
* fix test (ordering differs because of https://github.com/nim-lang/Nim/issues/17910 )
2021-05-02 00:26:41 +02:00
Timothee Cour
ee6d56141c
fix #17911 rawProc for cpp ( #17912 )
2021-05-01 11:12:13 +02:00
Andreas Rumpf
fb86271556
system.nim cleanup some exported constants which should never have be… ( #17909 )
...
* system.nim cleanup some exported constants which should never have been exported
2021-05-01 11:10:40 +02:00
Yanis Zafirópulos
a55c7e9679
WIP: Added missing functions to jsre module ( #17881 )
...
* added missing functions: `replace`, `replaceAll`, `split`, `match`
* added `startsWith` & `endsWith`
* Update lib/js/jsre.nim
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com >
2021-05-01 09:37:02 +02:00
flywind
9f75e8abc1
[std/base64] uses runnableExamples ( #17882 )
...
* [std/base64] uses runnableExamples
* Update lib/pure/base64.nim
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2021-05-01 07:27:50 +02:00
Timothee Cour
82996aee3f
misc fixes: remove forceConst (obsolete by static), add more runnableExamples to system ( #17896 )
...
* misc fixes
* add runnableExamples for compileOption
* add runnableExamples for runnableExamples
* move tconsteval => tconst
* cleanup
2021-05-01 07:26:52 +02:00
Andrey Makarov
abb8a73134
Fix nim-lang/nimforum#285 - punctuation after URL ( #17908 )
...
* Fix nim-lang/nimforum#285 - punctuation after URL
* keep only one leaf in a rnStandaloneHyperlink
* add more complex URL
2021-05-01 07:20:33 +02:00
Gabriel Huber
34a09574ce
Document the difference between toFloat/toInt and type conversion ( #17894 )
2021-04-30 22:39:25 +02:00
Timothee Cour
d32ab61e61
fix #17905 : hash(closure) was not being tested ( #17906 )
2021-04-30 12:40:39 -07:00
Timothee Cour
3192995ac9
close #16646 ; since now works with bootstrap nim post csources_v1 ( #17895 )
...
* revive #16627 now that csources_v1 was merged
* use dedent in rst.nim, refs https://github.com/nim-lang/Nim/pull/17257#discussion_r589025683
* fix test and improve rendering of a rst warning
2021-04-30 18:54:47 +02:00
Timothee Cour
20248a68fd
gitutils: add diffStrings, diffFiles, and use it in testament to compare expected vs gotten ( #17892 )
...
* gitutils: add diffStrings, diffFiles, and use it in testament to compare expected vs gotten
* refactor with createTempDir
* cleanup
* refacotr
* PRTEMP fake test spec changes to show effect of diffStrings
* add runnableExamples for experimental/diff + cross-reference with gitutils
* Revert "PRTEMP fake test spec changes to show effect of diffStrings"
This reverts commit 57dc8d642d .
2021-04-30 11:00:33 +02:00
Andrey Makarov
1640508348
more strict RST inline markup parsing ( #17827 )
...
* more strict RST inline markup parsing
* add test for unexpected bonus
* introduce `roPreferMarkdown`
2021-04-29 17:31:15 +02:00
Fröhlich A
5439cfc317
Fix insert calling wrong function ( #17856 )
...
The `insert` method is calling `tryInsertID`, which ignores the `pkName` parameter.
Calling `tryInsert` instead should be correct.
2021-04-29 14:11:05 +02:00
Timothee Cour
e4db733d80
fix #17888 : remove undefined behavior for posix.open; fix tempfiles.createTempFile ( #17889 )
...
* fix #17888 : remove undefined behavior for posix.open; fix tempfiles.createTempFile
* fix for tests/async/tasyncfile.nim
* hide mode for now
* add notice regarding stability
2021-04-29 13:42:56 +02:00
flywind
5edddd68d0
improve cache line size ( #17885 )
...
* improve cache line size
- 64bit system tend to use cache line of 64 bytes
- add align
https://trishagee.com/2011/07/22/dissecting_the_disruptor_why_its_so_fast_part_two__magic_cache_line_padding
Though I'm not sure, what do you think? @timotheecour
* Update lib/pure/concurrency/threadpool.nim
2021-04-29 13:39:36 +02:00
flywind
016a8ccd7a
[std/encodings]move to tests ( #17866 )
2021-04-29 09:51:54 +02:00
Michael Krieger
7637cff9cf
Fix documentation of strutils.stripLineEnd ( #17883 )
...
It does not return anything.
2021-04-28 11:33:08 -07:00
flywind
d881a05bf6
[std/encodings] fix iconv headers on OpenBSD ( #17872 )
2021-04-27 10:14:26 -07:00
flywind
66022423aa
[std/pegs] increase test coverage ( #17871 )
2021-04-27 11:09:58 +02:00
flywind
b1c7c994b0
[std/parsecfg]use runnableExamples ( #17868 )
...
* [std/parsecfg]use runnableExamples
* Apply suggestions from code review
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-04-27 10:24:59 +02:00
Timothee Cour
3f58b7face
add -d:nimLegacyNoHashRef for a transition period which avoids defining hash(ref) ( #17858 )
2021-04-27 08:23:01 +02:00
flywind
01bca8cd4f
fix gbk encodings on windows ( #17843 )
2021-04-26 14:48:25 +02:00
flywind
68e522ecec
Remove confusing <//> ( #17830 )
2021-04-26 09:04:52 +02:00
flywind
22e06ee95a
Ref #17831(synchapi.h: No such file or directory) ( #17832 )
...
* Ref #17831 use windows.h
* use header: "windows.h"
* Update syslocks.nim
* Update lib/system/syslocks.nim
2021-04-25 10:34:53 +02:00
flywind
6e8f0f8cfc
add colon ( #17834 )
2021-04-24 18:33:29 +01:00
Timothee Cour
2abc936d51
typeof(voidStmt) now works (#17807 )
...
* `typeof(voidStmt)` now works
* remove typeOrVoid
* add condsyms, and reference cligen https://github.com/c-blake/cligen/pull/193
* fixup
* changelog [skip ci]
* fixup
2021-04-23 14:36:38 +02:00
Timothee Cour
dce0b3b002
refactor all code that builds csources ( #17815 )
...
* refactor all code that builds csources
* fixup
* nim_csourcesDir_v0 + nim_csourcesDir
* remove deprecated, unused scripts from ci/
* reuse nimCsourcesHash in ci
* simplify CI pipelines by reusing nimBuildCsourcesIfNeeded
* simplify ci_docs.yml by reusing nimBuildCsourcesIfNeeded
* cleanup
* use csources_v1 as destination dir
* fixup
* remove pushCsources
* address comment: remove build.sh support for now
* fixup
2021-04-23 11:28:42 +02:00
flywind
53c898de41
fix #17812 (repr fails to compile with ARC/ORC) ( #17816 )
2021-04-22 08:08:56 +02:00
Andrey Makarov
8f79bc5f3d
add RST highlighting for command line / shells (also fixes #16858 ) ( #17789 )
2021-04-21 16:57:54 +02:00
Clyybber
7c64e49d45
getCustomPragmaVal priority/override fixes ( #17725 )
...
* Adhere left-to-right rule for custom pragma priority
* Improve error message for no custom pragmas
* custom pragmas on var/let sym take priority over its type ones
* Workaround & bug
2021-04-21 15:28:42 +02:00
flywind
c631648cb3
close #9372 add std/tempfiles ( #17361 )
...
* close #9372 add std/tempfile
2021-04-21 15:07:36 +02:00
Joey
f1ce173283
Fix Httpclient headers from being modified accidentally ( #17808 )
2021-04-21 07:42:04 +02:00
Andreas Rumpf
a9b62de895
CIs: attempt to use csources_v1 ( #16282 )
...
* CIs: attempt to use csources_v1
* also updated the BSDs
* also updated azure pipelines
* std modules should not itself use the 'std/' import dir...
* compiler has to be careful with std/ for v1 booting
2021-04-21 07:41:33 +02:00
flywind
603af22b7c
[std/tasks]add gcsafe pragmas ( #17799 )
...
* [std/tasks]add gcsafe pragmas
* Update tasks.nim
2021-04-21 11:05:16 +08:00
flywind
eb221dcc27
[std/deques] move data instead of copy + destroy ( #17800 )
2021-04-20 19:00:44 +02:00
Timothee Cour
4742e6e1fd
followup #16714 : add -d:nimLegacyUnarySlice + changelog ( #17794 )
2021-04-20 00:25:28 -07:00
Timothee Cour
ad67bcf379
fix https://github.com/nim-lang/RFCs/issues/311 remove unary slice ( #16714 )
2021-04-19 19:02:52 -07:00
Clyybber
24abe10aa8
Small privateAccess improvement ( #17786 )
2021-04-19 17:51:00 +02:00
Clyybber
6de5aa1971
Rename = to =copy in stdlib ( #17781 )
2021-04-19 13:16:10 +02:00
flywind
dc89b21257
[std/locks]close #7998(complete condition variables) ( #17711 )
...
* close #7998
* workaround genode
* Update lib/system/syslocks.nim
2021-04-19 10:51:13 +02:00
flywind
cedbc7035d
[std/locks]remove workaround for withLock ( #17772 )
...
Ref #6113 and #6049
The workaround for generics instantiation is unnecessary. It seems to be fixed by another PR I guess.
The test still works. So the changes should be harmless.
https://github.com/nim-lang/Nim/blob/devel/tests/stdlib/tlocks.nim
I also add some inline pragmas.
2021-04-19 10:33:56 +02:00
Juan Carlos
f8038af5ec
Documentation only, dom ( #17770 )
...
* ReSync with Devel
* ReSync
* https://github.com/timotheecour/Nim/issues/674
* Update lib/js/dom.nim
Co-authored-by: flywind <xzsflywind@gmail.com >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: flywind <xzsflywind@gmail.com >
2021-04-19 07:42:38 +02:00
flywind
172a5ab7f8
[std/rlocks]add inline pragma ( #17773 )
...
so that it can be used as the base of new locks module with destructors.
2021-04-19 07:41:50 +02:00
Timothee Cour
0a10af5a2c
privateAccess now works with ref | ptr ( #17760 )
2021-04-19 00:15:58 +02:00
Dankr4d
6916faf83c
Fix #17755 ( #17766 )
...
Signed-off-by: Dankr4d <dude569@freenet.de >
2021-04-18 23:39:05 +02:00
Timothee Cour
42c6eec4ef
fix #17749 ignore SIGPIPE signals, fix nim CI #17748 ( #17752 )
...
* fix #17749 SIGPIPE
* fix for windows
2021-04-18 15:34:29 +02:00
Andreas Rumpf
7b6ab5109f
IC exposes typedesc implementation shenanigans ( #17759 )
...
* IC exposes typedesc implementation shenanigans; so I change system.default's definition to what it should have been to begin with
* Update lib/system.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-04-18 07:27:03 +02:00
shirleyquirk
c8b8cb8458
make cuchar alias uint8 instead of char ( #17738 )
2021-04-17 17:27:10 +02:00
flywind
5c5f356347
replace defer with try ... finally ( #17753 )
2021-04-17 11:48:22 +02:00
Timothee Cour
7e94420847
cString => cSourceString; tyCString => tyCstring so that error msgs show cstring, not cString ( #17744 )
2021-04-17 11:14:09 +02:00