Commit Graph

12335 Commits

Author SHA1 Message Date
Andreas Rumpf
b503ca03f6 refactoring: move 'argument' global into config object 2018-04-24 11:58:18 +02:00
Andreas Rumpf
7df892db9d make tests green again 2018-04-24 11:45:08 +02:00
Andreas Rumpf
ee366f1746 .experimental can now be used to enable specific features 2018-04-24 09:34:29 +02:00
Andreas Rumpf
8ce9e43434 xmltree: remove usage of deprecated callsite() 2018-04-24 09:34:29 +02:00
Andreas Rumpf
3e5192b5da compiler: remove unnecessary FileIndex type conversions 2018-04-24 09:34:29 +02:00
Andreas Rumpf
ba86b09e69 remove obsolete nimrod.cfg configuration files 2018-04-24 09:34:29 +02:00
Andreas Rumpf
64908bf171 nimgrep: add --filenames option 2018-04-24 09:34:29 +02:00
Oscar Nihlgård
8caf257607 Don't escape multibyte characters (#7570) 2018-04-23 11:09:48 +02:00
Jacek Sieka
72dfe176f5 remove dead code elimination option (#7669) 2018-04-23 11:02:38 +02:00
Araq
a8b70c5500 remove unused error messages 2018-04-22 23:16:14 +02:00
Andreas Rumpf
34b333b140 make tests green again 2018-04-22 07:10:55 +02:00
Andreas Rumpf
0ba50f9890 make tests green again 2018-04-22 00:19:41 +02:00
Andreas Rumpf
07f4e8a4ed new 'var T' error messages with hyperlinks; closes #7373 2018-04-22 00:12:43 +02:00
Andreas Rumpf
b43025b754 fixes #5113 2018-04-21 23:58:24 +02:00
Andreas Rumpf
14e496fab0 fixes #6393 2018-04-21 22:49:15 +02:00
Andreas Rumpf
85ea9593b3 fixes #7637; assignments are not allowed to slice object; minor breaking change 2018-04-21 21:22:36 +02:00
Andreas Rumpf
14046d975d make tests green again 2018-04-21 17:01:33 +02:00
Andreas Rumpf
4f10b5edb6 improve documentation for 'var T return values'; refs #7373 2018-04-21 17:01:33 +02:00
Andreas Rumpf
e44c6d8337 refactoring: remove dead code 2018-04-21 17:01:33 +02:00
Arne Döring
516ce73066 macro manual improvements (#7666)
* macro manual improvements

* fixes a typo

* Small fixes
2018-04-21 08:15:41 +02:00
Andreas Rumpf
33b69f0ed0 refactoring: make FileIndex a distinct type; make line information an uint16; fixes #7654 2018-04-21 08:13:37 +02:00
Andreas Rumpf
6667362c2f refs #7586; show surounding source also for hints and warnsings 2018-04-20 08:54:56 +02:00
Andreas Rumpf
9cc8fec370 replace --advanced by --fullhelp; refs #7621 2018-04-20 08:45:03 +02:00
tersec
262aafa0a9 https://reproducible-builds.org/ support via SOURCE_DATE_EPOCH (#7644) (#7661) 2018-04-20 07:04:50 +02:00
Oscar Nihlgård
7d034d7b6a Add fromWinTime and deprecate unixTimeToWinTime/winTimeToUnixTime (#7641) 2018-04-19 22:41:06 +02:00
jcosborn
7e15d5134b allow setting template/macro recursive evaluation limits (#7652)
* allow setting template/macro recursive evaluation limits

* revert setting template/macro eval limits
set them to 1000
2018-04-19 22:39:18 +02:00
RSDuck
3402926372 hasCustomPragma/getCustomPragmaVal: small fix (#7650)
* fix hasCustomPragma/getCustomPragmaVal for types without pragma

* fix pragma on pointer test

* removed trailing spaces
2018-04-19 11:07:45 +02:00
Andreas Rumpf
0dc4d6dcc2 fixes #7638; awaitAny blocks if the flow vars all have been complete already 2018-04-19 08:54:23 +02:00
Andreas Rumpf
cb03ae2c9f semstmts: fewer empty lines 2018-04-19 08:54:23 +02:00
Andreas Rumpf
17cb2f2d4c threadpool: minor documentation improvement 2018-04-19 08:54:23 +02:00
Araq
5d13e3f28b fixes #7507 2018-04-19 00:09:55 +02:00
WhiteDuke
e237428d42 Fix bright option (#7622)
Setting the option to true, then to false would not turn off bright attribute.
2018-04-18 23:29:10 +02:00
Araq
4a9f6f00ad fixes system.doAssertRaises 2018-04-18 21:30:38 +02:00
Araq
9bc963508f nimpretty: next steps 2018-04-18 21:30:38 +02:00
Araq
a230307b48 little progress on nimpretty 2018-04-18 21:30:38 +02:00
Oscar Nihlgård
fdf1d12380 Change type of Timeval.tv_sec to posix.Time (#7646) 2018-04-18 21:24:28 +02:00
genotrance
b9cafe5752 test case for #1154 (#7648) 2018-04-18 21:19:48 +02:00
genotrance
0448d3f6ea test case for #2416 (#7649) 2018-04-18 21:19:23 +02:00
treeform
35b0cc67e8 Remove PHP backend. (#7606)
* remove php

* fix

* keep nimphpext

* remove targetJS enum
2018-04-18 20:40:11 +02:00
skilchen
a708fda733 allow stringification of DurationZero (#7625) 2018-04-18 13:22:05 +02:00
Arne Döring
9d4fd1f1bb eqIdent new returns false on non identifier types (#7629) 2018-04-17 01:23:38 +02:00
Hendrik
b1b517128e os.setLastModificationTime*(file: string, t: times.Time) (#7543)
* 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.
2018-04-16 22:03:24 +02:00
Oscar Nihlgård
c4d7cc3da0 Generate populationCount const at compile time (#7583) 2018-04-16 21:52:27 +02:00
hlaaf
38b2596ff9 Add none[T]() as alias to none(T) (#7512)
* Add none[T]() as alias to none(T)

* Add tests for none[T]

* this test shouldn't work anyway
2018-04-16 21:01:37 +02:00
Michał Zieliński
b2060acbc4 osproc: fix double close on POSIX (#5724)
Calling close() in some cases issued two close() syscalls to one FD, which is incorrect in multithreaded programs.
2018-04-16 20:02:26 +02:00
Dmitry Atamanov
412cd61dab Fixes #7595 (#7623)
* Fixes #7595

* Add brackets

* Fix for treeRepr and lispRepr too
2018-04-16 19:37:08 +02:00
Timothee Cour
04df7f147c update macros.nim: followup on pull #7598 (#7619)
@Araq @krux02 
https://github.com/nim-lang/Nim/pull/7598 seemed inaccurate eg for NLineInfo there's `mNLineInfo` but no opcNLineInfo
2018-04-16 09:08:52 +02:00
Dominik Picheta
b750082925 Fix docs in json module after #7537 2018-04-15 23:55:54 +01:00
Federico Ceratto
93fafc8545 Add autovivification example (#7537)
* Add autovivification example

* Update json.nim
2018-04-16 00:02:02 +02:00
Oscar Nihlgård
02d6dd723d Timeinterval optimization (#7608)
* TimeInterval optimization

* Fix typo in `$`(Duration)
2018-04-16 00:01:34 +02:00