Commit Graph

3484 Commits

Author SHA1 Message Date
Billingsly Wetherfordshire
50d9db03c6 fix issue #1581 2014-10-20 19:12:10 -05:00
Araq
53a9d6f5cd Merge branch 'devel' into bigbreak
Conflicts:
	compiler/nim.ini
	doc/manual.txt
	doc/tut2.txt
	koch.nim
	lib/system/channels.nim
	readme.txt
	tools/niminst/niminst.nim
	tools/nimweb.nim
	web/download.txt
	web/news.txt
2014-10-20 08:44:00 +02:00
Andreas Rumpf
b29c0da7b5 Merge pull request #1574 from trustable-code/PR3
Do not allow self import
2014-10-20 01:20:39 +02:00
Araq
4aab018bd6 disable 'view source' feature 2014-10-20 01:05:13 +02:00
Araq
1ddc42f570 default to warnGcUnsafe for threads:on 2014-10-19 23:59:29 +02:00
Araq
dc8d8ebb79 website updates for 0.9.6 2014-10-19 16:07:14 +02:00
Araq
a4dcebd3c4 Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-10-19 10:50:09 +02:00
Araq
6f1b33e11c readme.txt is not readme.md 2014-10-19 10:49:56 +02:00
Clay Sweetser
d73d752187 Update and clarify the purpose of the nimrod.ini file 2014-10-19 02:14:24 -04:00
Araq
d3e9d0fa3a niminst: 'doc/*.txt' required for bootstrapping 2014-10-18 20:26:51 +02:00
Araq
56f1f3d4bc more improvements for the NSIS installer 2014-10-17 18:18:46 +02:00
Araq
bd54c44239 improvements for niminst 2014-10-17 03:15:28 +02:00
Araq
55d8e71ab1 niminst supports NSIS 2014-10-17 00:53:33 +02:00
Simon Krauter
27585ee6ec Compare fileIndexes instead of file names 2014-10-15 00:20:08 +02:00
Simon Krauter
849484f920 Do not allow self import 2014-10-14 23:38:50 +02:00
Erwan Ameil
06c32aab29 Tidy up the prettification of the default verbosity c compilation output 2014-10-13 01:54:44 +02:00
Erwan Ameil
679aefd89c Prettify compiler output for verbosity=1
Long lines displaying the invocation of the c compiler are replaced
with short, readable lines.
2014-10-12 23:30:32 +02:00
Araq
34e96e37a1 added missing nimfix files 2014-10-11 20:51:41 +02:00
Araq
661c51682a backported .deprecated statement 2014-10-11 20:31:24 +02:00
Araq
6c9730b353 fixes #1551 2014-10-11 12:25:15 +02:00
Araq
5272213da4 documentation updates 2014-10-11 01:30:17 +02:00
Araq
a585caebcd bugfix: c++ support for 'NimThreadVarsSize' 2014-10-08 09:10:57 +02:00
Araq
b781e25ec6 should compile with csources again 2014-10-06 01:01:23 +02:00
Araq
da0fab7046 nimfix now in its own directory; single file mode now the default 2014-10-05 23:36:47 +02:00
Araq
40601ada5f fixes #1551 2014-10-05 03:24:39 +02:00
Araq
a9a5766c66 docgen should work again 2014-10-05 03:06:19 +02:00
Araq
1da251523f added 'nim*Setjmp' conditional symbols 2014-10-05 02:22:48 +02:00
Araq
fc47c0edc7 Merge branch 'devel' of https://github.com/Araq/Nimrod into bigbreak
Conflicts:
	lib/impure/db_postgres.nim
	lib/pure/os.nim
	lib/wrappers/postgres.nim
2014-10-04 19:40:23 +02:00
Araq
4616a1e006 updated some tests 2014-10-04 14:23:17 +02:00
Araq
e65c296bcc implemented mixed mode codegen 2014-10-03 01:21:35 +02:00
Araq
595cc93762 recursive tuple types are now invalid (breaking change) 2014-10-02 16:54:05 +02:00
Araq
279e897eab bugfix: 'T = ref T' is an illegal recursive type 2014-10-02 16:15:16 +02:00
Araq
62ccf13529 'try' works at compile-time 2014-10-02 15:55:48 +02:00
Araq
2475794a75 fixes a minor bug when 'type' is used in a wrong way 2014-10-02 11:10:43 +02:00
Araq
4298553de4 system.writeFile works at compile-time 2014-10-02 10:52:32 +02:00
Araq
c99ec16544 deprecated string case statements without 'else' 2014-10-02 10:08:41 +02:00
Araq
e9dec2feed better lock level handling 2014-10-02 02:33:14 +02:00
Andreas Rumpf
c17c8e9afa Merge pull request #1545 from rbehrends/setjmp-perf
Improve setjmp()/longjmp() performance.
2014-10-02 01:35:59 +02:00
Clay Sweetser
55c78af9c0 Fixes #1529 2014-10-01 18:14:06 -04:00
Varriount
93d55c077f Updated Version Number 2014-09-28 15:47:09 -04:00
Varriount
b234d311d4 Disable git hashing in the version command 2014-09-28 15:35:35 -04:00
Araq
dcaba49c3f deprecated '#[' comments for future multi-line comment feature 2014-09-28 13:38:26 +02:00
Reimer Behrends
cb6441e73d Use _setjmp()/_longjmp() only on BSD-like systems for now. 2014-09-27 18:05:30 +02:00
Araq
d576fbb39a implemented locking levels; still incomplete 2014-09-27 15:06:06 +02:00
Araq
1088814e56 deepCopy is instantiated when its corresponding type is instantiated 2014-09-26 09:36:09 +02:00
Reimer Behrends
f99c40f61b Improve setjmp()/longjmp() performance.
Exception handling for the C backend used setjmp()/longjmp()
unconditionally. However, on POSIX systems, these functions save and
restore the signal mask, adding considerable overhead to exception
handling, even where no exceptions are involved. The compiler and
library now try to use either _setjmp()/_longjmp() or
sigsetjmp()/siglongjmp() where possible, marked by the defines
"nimRawSetjmp" and "nimSigSetjmp", respectively. The define
"nimStdSetjmp" can be used to revert to setjmp()/longjmp() instead.
2014-09-25 23:29:02 +02:00
Araq
8930ba50b9 'let' within 'parallel' now works 2014-09-22 08:34:05 +02:00
Araq
3866820eee made some tests green 2014-09-21 23:57:54 +02:00
Araq
7916b1f9aa implemented 'guard' annotation 2014-09-21 18:39:00 +02:00
Reimer Behrends
80356f1cc7 Avoid unnecessary #include triggered by importc vars.
When a C variable or macro is imported via an {.importc.} var or
let statement, but no definition is needed and the variable does
not have an initializer part, then there is also no need to generate
an #include for the associated header until and unless the variable
is actually used. The header is already generated upon use, but
unnecessarily also when the variable is defined.

This is an issue with the posix module in particular, where a lot
of unnecessary header files are being included because relevant
constants are defined via importc vars, and those header files
may not even be available on a given system.

This patch omits the generation of the #include directive for those
definitions where they aren't needed.
2014-09-19 03:34:00 +02:00