summary refs log tree commit diff stats
path: root/lib/pure/includes
Commit message (Collapse)AuthorAgeFilesLines
* https://github.com/nim-lang/Nim/pull/15826/files#r585368355 (#17233)Juan Carlos2021-03-031-2/+3
|
* use single backtick (#17141)flywind2021-02-213-12/+12
|
* Correct typo in osseps.nim (#16939)Rummskartoffel2021-02-041-1/+1
|
* Deprecate TaintedString (#15423)Juan Carlos2021-01-151-9/+9
| | | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* fixes #16359 [backport] (#16377)Andreas Rumpf2020-12-171-1/+1
|
* move decode_helpers to std/private (#16209)flywind2020-12-021-24/+0
|
* js -d:nodejs now supports osenv: `getEnv`, `putEnv`, `envPairs`, `delEnv`, ↵Timothee Cour2020-11-121-215/+251
| | | | | | | | | | | `existsEnv` (v2) (#15826) * js -d:nodejs now supports osenv: `getEnv`, `putEnv`, `envPairs`, `delEnv`, `existsEnv` * refactor to osenv * fix for js (without -d:nodejs) + VM Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix #14082, don't crash on incorrectly formatted input (#14977) [backport]Miran2020-07-171-0/+24
| | | | | | | * fix #14082, don't crash on incorrectly formatted input * address code review * remove duplication
* forward type alignment information to seqs (#12430)Arne Döring2020-04-191-2/+1
|
* More fixes for Haiku (#13774)alaviss2020-03-271-0/+2
| | | | | | | | | | | * osproc: move fork-based code path under the when conditional * osproc: avoid using the environ global on Haiku * osenv: import environ from stdlib.h on Haiku Haiku's environ is declared in `<stdlib.h>` by default, differing from POSIX and/or Linux. Import it from there to avoid collision with anyone importing `<stdlib.h>` from Nim.
* miscellaneous bug fixes (#13291)Timothee Cour2020-01-301-1/+1
| | | | | | | | * fix for emscripten etc * add testcase for #13290 * replace deprecated isNilOrWhitespace
* Deleted misplaced separator (#13085) [backport]Teashrock2020-01-091-1/+0
| | | Misplaced separator, which was constantly breaking compilation on Haiku OS, was deleted.
* remove unused importsnarimiran2019-11-061-1/+2
|
* fixes #11807 (#11900)Andreas Rumpf2019-08-071-0/+5
| | | | | * fixes #11807 * make tests green again
* Fix #10630 - fix broken separators in nim doc (#11814)genotrance2019-07-241-95/+77
|
* os: confine osErrorMsg example to Linux (#11725)alaviss2019-07-131-1/+1
| | | | POSIX does **not** define the exact number for each errors. This caused a failure in docs building on Haiku.
* [feature] Added os.delEnv; add delEnv support to nimscript too (#11466)Kaushal Modi2019-06-151-0/+31
| | | [feature] Fixes https://github.com/nim-lang/Nim/issues/11452.
* [bugfix] Fixes async IO operations stalling even after socket is closed. ↵Dominik Picheta2019-06-121-3/+12
| | | | (#11232)
* Fix ospaths import error (#11150)genotrance2019-05-012-2/+2
|
* newruntime: progressAraq2019-04-011-1/+1
|
* update unicode.nim (#10921)Miran2019-03-311-0/+2016
| | | | | | | | | | * update unicode.nim * create a script to create the needed unicode data * make unicode.nim compatible with Unicode v12.0.0 * slightly improve unicode.nim documentation (fixes #4795) * more documentation
* better docs: os (#10492)Miran2019-01-303-27/+77
| | | | | * better docs: os * remove broken test on osx
* prevent index out of bounds error in oserr.nimKobi2019-01-191-1/+1
|
* Fix spelling errors (#10379)Federico Ceratto2019-01-191-2/+2
|
* [backport] fix documentation leak to `os.nim`[ci skip]narimiran2019-01-142-2/+2
|
* os.nim: big refactoring, use the new pathnorm that was extracted by ↵Araq2018-12-131-0/+130
| | | | compiler/pathutils.nim; added os.relativePath
* Merge pull request #9910 from nc-x/fix-semicolonAndreas Rumpf2018-12-111-1/+2
|\ | | | | Fixes #9907
| * Address CommentsNeelesh Chandola2018-12-111-0/+1
| |
| * Fixes #9907Neelesh Chandola2018-12-091-1/+1
| |
* | Merge async common into asyncdispatch.Dominik Picheta2018-12-071-211/+0
|/
* Make getEnv case insensitive on Windows (#9722)pgkos2018-11-161-1/+6
|
* deprecated ospaths (#9665)Andreas Rumpf2018-11-092-4/+4
|
* Convert *_family fields to cushortLemonBoy2018-09-191-2/+2
| | | | Fixes #9008
* add data.sysCommand when startProcessAuxSpawn raisesTimothee Cour2018-09-061-4/+4
|
* addresses issue #8391 show runtime context on some failed operations (#8393)Timothee Cour2018-07-231-1/+1
|
* Fixes #5880. (#7229)Dominik Picheta2018-07-101-1/+1
|
* remove deprecated stuff from the stdlib; introduce better deprecation warningsAraq2018-05-052-46/+2
|
* Fixes #4995. (#7157)Dominik Picheta2018-02-131-6/+16
|
* added a warning that the .deprecate statement is unreliable for routinesAndreas Rumpf2017-11-211-3/+0
|
* getEnv now supports a 'default' parameter; refs #6019Andreas Rumpf2017-10-301-2/+2
|
* another attempt to make travis and appveyor green againAndreas Rumpf2017-09-011-3/+3
|
* fix os.nim for WindowsAndreas Rumpf2017-09-011-0/+3
|
* refactor os.nim and ospaths.nimAndreas Rumpf2017-09-012-0/+291
|
* asyncdispatch: split asyncfutures into its own moduleMichał Zieliński2017-07-051-408/+0
| | | | This slightly changes behaviour of callSoon - before loop is initialized, callSoon will call the function immediately.
* Fixes web0 on Mac OS X.Dominik Picheta2017-05-171-1/+1
|
* Implement dial, support IPv6 in httpclient (#5763)Ruslan Mustakov2017-05-021-0/+201
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement dial, support IPv6 in httpclient Added ``dial`` procedure to networking modules: ``net``, ``asyncdispatch``, ``asyncnet``. It merges socket creation, address resolution, and connection into single step. When using ``dial``, you don't have to worry about IPv4 vs IPv6 problem. Fixed addrInfo loop in connect to behave properly. Previously it would stop on first non-immediate failure, instead of continuing and trying the remaining addresses. Fixed newAsyncNativeSocket to raise proper error if socket creation fails. Fixes: #3811 * Check domain during connect() only on non-Windows This is how it was in the previous implementation of connect(). * Call 'osLastError' before 'close' in net.dial * Record osLastError before freeAddrInfo in net.dial * Add missing docs for 'dial' proc * Optimize dial to create one FD per domain, add tests And make async IPv6 servers work on Windows. * Add IPv6 test to uri module * Fix getAddrString error handling
* make the logic rightAraq2017-02-261-1/+1
|
* Various fixes to FutureStreams based on PR feedback.Dominik Picheta2017-02-261-16/+27
|
* FutureStream's cb call behaviour fixed + other fixes.Dominik Picheta2017-02-111-1/+6
|
* Remove immediate FutureStream procs and make 'put' awaitable.Dominik Picheta2017-02-101-18/+8
|
class="n">result = {} local next_line = ipairs(a) local i,line,drawing = 0, '' while true do i,line = next_line(a, i) if i == nil then break end --? print(line) if line == '```lines' then -- inflexible with whitespace since these files are always autogenerated --? print('inserting drawing') i, drawing = load_drawing_from_array(next_line, a, i) --? print('i now', i) table.insert(result, drawing) else --? print('inserting text') table.insert(result, {mode='text', data=line}) end end if #result == 0 then table.insert(result, {mode='text', data=''}) end return result end function load_drawing_from_array(iter, a, i) local drawing = {mode='drawing', h=256/2, points={}, shapes={}, pending={}} local line while true do i, line = iter(a, i) assert(i) --? print(i) if line == '```' then break end local shape = json.decode(line) if shape.mode == 'freehand' then -- no changes needed elseif shape.mode == 'line' or shape.mode == 'manhattan' then local name = shape.p1.name shape.p1 = Drawing.insert_point(drawing.points, shape.p1.x, shape.p1.y) drawing.points[shape.p1].name = name name = shape.p2.name shape.p2 = Drawing.insert_point(drawing.points, shape.p2.x, shape.p2.y) drawing.points[shape.p2].name = name elseif shape.mode == 'polygon' or shape.mode == 'rectangle' or shape.mode == 'square' then for i,p in ipairs(shape.vertices) do local name = p.name shape.vertices[i] = Drawing.insert_point(drawing.points, p.x,p.y) drawing.points[shape.vertices[i]].name = name end elseif shape.mode == 'circle' or shape.mode == 'arc' then local name = shape.center.name shape.center = Drawing.insert_point(drawing.points, shape.center.x,shape.center.y) drawing.points[shape.center].name = name elseif shape.mode == 'deleted' then -- ignore else print(shape.mode) assert(false) end table.insert(drawing.shapes, shape) end return i, drawing end