summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add `fromWinTime` and deprecate `unixTimeToWinTime`/`winTimeToUnixTime` (#7641)Oscar Nihlgård2018-04-192-21/+32
|
* hasCustomPragma/getCustomPragmaVal: small fix (#7650)RSDuck2018-04-191-1/+5
| | | | | | | | * fix hasCustomPragma/getCustomPragmaVal for types without pragma * fix pragma on pointer test * removed trailing spaces
* fixes #7638; awaitAny blocks if the flow vars all have been complete alreadyAndreas Rumpf2018-04-191-7/+17
|
* threadpool: minor documentation improvementAndreas Rumpf2018-04-191-1/+1
|
* fixes #7507Araq2018-04-191-3/+11
|
* Fix bright option (#7622)WhiteDuke2018-04-181-4/+4
| | | Setting the option to true, then to false would not turn off bright attribute.
* fixes system.doAssertRaisesAraq2018-04-181-4/+5
|
* Change type of `Timeval.tv_sec` to `posix.Time` (#7646)Oscar Nihlgård2018-04-188-15/+27
|
* Remove PHP backend. (#7606)treeform2018-04-182-335/+173
| | | | | | | | | | * remove php * fix * keep nimphpext * remove targetJS enum
* allow stringification of DurationZero (#7625)skilchen2018-04-181-1/+3
|
* os.setLastModificationTime*(file: string, t: times.Time) (#7543)Hendrik2018-04-163-6/+35
| | | | | | | | | | | | | * add proc toFILETIME to winlean * add proc toWinTime to times * add proc setFileTime to winlean * openHandle with write access * add proc setLastModificationTime to os * moved epochDiff,rateDiff constants and proc toWinTime The constants were moved out of the when defined(JS) block so that they are alsways available in proc toWinTime. proc toWinTime was moved above the # Deprecated procs comment. Best new location seemed to be with the toUnix proc.
* Add none[T]() as alias to none(T) (#7512)hlaaf2018-04-161-0/+8
| | | | | | | | * Add none[T]() as alias to none(T) * Add tests for none[T] * this test shouldn't work anyway
* osproc: fix double close on POSIX (#5724)Michał Zieliński2018-04-161-6/+14
| | | Calling close() in some cases issued two close() syscalls to one FD, which is incorrect in multithreaded programs.
* Fixes #7595 (#7623)Dmitry Atamanov2018-04-161-7/+6
| | | | | | | | * Fixes #7595 * Add brackets * Fix for treeRepr and lispRepr too
* update macros.nim: followup on pull #7598 (#7619)Timothee Cour2018-04-161-5/+2
| | | | @Araq @krux02 https://github.com/nim-lang/Nim/pull/7598 seemed inaccurate eg for NLineInfo there's `mNLineInfo` but no opcNLineInfo
* Fix docs in json module after #7537Dominik Picheta2018-04-151-1/+3
|
* Add autovivification example (#7537)Federico Ceratto2018-04-161-0/+5
| | | | | | * Add autovivification example * Update json.nim
* Timeinterval optimization (#7608)Oscar Nihlgård2018-04-161-12/+37
| | | | | | * TimeInterval optimization * Fix typo in `$`(Duration)
* move eqIdent to vm.nim (#7585)Arne Döring2018-04-153-39/+61
| | | | | | * Strutils comment changes. * fix typo
* docutils: no Babel fileAndreas Rumpf2018-04-152-6/+5
|
* docutils: make ':test:' work without argumentAndreas Rumpf2018-04-151-3/+6
|
* rename SomeReal to SomeFloat (#7617)Arne Döring2018-04-154-28/+30
| | | | | * rename SomeReal to SomeFloat * added changelog entry
* Fix cmpStrings in js mode (#7604)treeform2018-04-151-2/+2
|
* add example to docs for getTypeInst and getTypeImpl (#7206)jcosborn2018-04-151-9/+45
| | | | | | | | * add example to docs for getTypeInst and getTypeImpl * made examples use runnableExamples * changed assert to doAssert
* Nim namespace for cpp (#7453)AdrianV2018-04-152-3/+12
| | | | | - new option --usenamespace to generate nim cpp code in its own namespace Nim - minor changes for compatibility with the new Embarcadero = Borland C++-Builder (bcc)
* implements first version of for-loop macrosAndreas Rumpf2018-04-151-0/+5
|
* explicit effects for existsOrCreateDirAndreas Rumpf2018-04-141-1/+2
|
* fixes #7451 (#7575)RSDuck2018-04-141-20/+65
|
* remove deprecated timeToTimeInfo; fixes #3678Andreas Rumpf2018-04-141-49/+12
|
* make JS tests green againAndreas Rumpf2018-04-141-4/+4
|
* fixes #6205Andreas Rumpf2018-04-141-19/+19
|
* make nativesockets.Hostent.addrlist readable for ipv4 af_inet addresses (see ↵skilchen2018-04-131-2/+18
| | | | issue #7314) (#7327)
* Support code hot reloading for JavaScript projects (#7362)zah2018-04-133-6/+133
| | | | | | | | | | | | | | | | | | | | | | * Support code hot reloading for JavaScript projects * Add some missing JavaScript symbols and APIs * fix the Travis build * (review changes) remove the js type from the standard library as it doesn't follow NEP-1 * more additions to the DOM module * Follow NEP-1 in jsffi; spell 'hot code reloading' correctly * introduce a jscore module * Document jscore module. * readded js type * Remove the '$' operator that doesn't behave
* make tests green againAndreas Rumpf2018-04-133-8/+8
|
* introduce nkTupleConstr AST node for unary tuple construction; breaking changeAndreas Rumpf2018-04-131-1/+2
|
* Merge pull request #7599 from nim-lang/fix-typedesc-in-asynczah2018-04-131-1/+3
|\ | | | | Fix some usages of typedesc in async procs
| * Fix some usages of typedesc in async procsZahary Karadjov2018-04-131-1/+3
| | | | | | | | | | This also fixes a compilation error in modules, based only on the new async module (i.e. not importing the full asyncdispatch)
* | added comment to macros (#7598)Arne Döring2018-04-131-0/+6
|/ | | | | | * added comment to macros * Update macros.nim
* Sub second time resolution (#6978)Oscar Nihlgård2018-04-134-265/+639
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add deprecation warnings to recently deprecated procs * Fix bad usage of the times module * Introduce sub second resolution * Fix usage of C's time() * Switch to nanosecond resolution * Make Time & Duration opaque again and fix some errors * Change back to TimeInterval for shorthands * Fix JS test * Fix build error for windows * Undeprecate epochTime * Documentation and minor changes * Lots of bugfixes and doc comments * Attempt to make travis & appveyor green * Fix edge cases for dealing with the local timezone * Workaround JS backend overflow/underflow bug * Use better workaround for not knowing the size of time_t * Use all available timezones for tests * Fix indentation * Add procs for accessing the fractional part of a duration * Order time units from smallest to largest since it makes more sense * Include months and years in `TimeUnit` * Review fix
* deprecate macros.callsite; fixes #7369Andreas Rumpf2018-04-121-1/+3
|
* Add column number to instantiation info (#7376)PMunch2018-04-121-1/+1
| | | | | | | | | | | | | | * Add column number to instantiation info Instantiation info left out column number for no good reason. This adds it in as the third element of the tuple. * Fix test that failed and added change to changelog An assertion test failed because it was declaring a type that was expected to be populated by instantiationInfo with the old signature. Also added the changes to the changelog as it is a breaking change.
* unittest: default no color if stdout is not a tty (#7424)Xiao-Yong2018-04-121-4/+19
| | | | | | | We accept a new environment variable, NIMTEST_COLOR, which override the effect of NIMTEST_NO_COLOR. The environment variable, NIMTEST_COLOR, can be 'never' or 'always', which set the color output to false or true, respectively.
* Added count(*) support to sql parser. Fixed warnings in sql parser. (#7490)treeform2018-04-121-72/+99
|
* Move RLimit and getrlimit to posix.nim and add setrlimit to easily limit FD ↵aguspiza2018-04-124-18/+18
| | | | allocation (#7564)
* Added a few useful os calls to VM (#7440)genotrance2018-04-121-0/+4
|
* fix deprecation warnings in asyncmacro and htmlgen (#7573)Arne Döring2018-04-122-21/+22
| | | | | | * fix deprecation warnings in asyncmacro and htmlgen * removed todo
* option optimization (#6253)Arne Döring2018-04-111-15/+49
|
* Get symbol kind (#7491)Arne Döring2018-04-112-65/+103
|
* Add a few useful os calls to nimscript (#7442)genotrance2018-04-101-2/+26
|
* Cpp codegen: handling of imported exceptions. Fixes #3571 (#7360)cooldome2018-04-102-6/+28
|