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
Araq
1791ab6385
fixes #665
2014-09-11 19:54:49 +02:00
Araq
c73142d852
fixes #1067
2014-09-11 10:02:45 +02:00
Araq
ff55c487b6
mostly fixes #1339
2014-09-11 09:57:33 +02:00
Araq
46bbae4745
fixes #1366
2014-09-11 09:53:00 +02:00
Araq
dafa8ccaf3
fixes #903 , fixess #1513
2014-09-11 01:45:14 +02:00
Araq
b7f8dbbec2
fixes #1511
2014-09-11 00:45:29 +02:00
Araq
e766c7c3cd
minor bugfix for void .compileTime procs
2014-09-11 00:36:31 +02:00
Araq
2c99991d16
fixes #1444
2014-09-11 00:34:59 +02:00
Reimer Behrends
f9c46b04a6
Properly handle staticExec() generating large output.
...
A staticExec() invocation that generated more than the internal
buffer size worth of output blocked because the compiler waited
for the process to terminate before reading the output.
2014-09-10 01:22:20 +02:00
Araq
014b79617e
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
2014-08-21 10:00:09 +02:00
Araq
5432b2b83a
fixes recently introduced regression
2014-08-21 09:59:57 +02:00
Simon Hafner
3f0c3ab6cf
added bug number to comment
2014-08-20 21:16:06 +02:00
Araq
15b2d6d351
fixes #1418
2014-08-20 02:14:30 +02:00
Araq
bc2e83fe17
documented the JS codegen
2014-08-20 01:11:47 +02:00
Araq
ebe313e627
fixes #1334
2014-08-19 22:35:16 +02:00
Araq
e935a35bcf
fixes #1380
2014-08-19 20:42:48 +02:00
Araq
1deb9820f5
fixes #1420
2014-08-19 20:28:51 +02:00
Araq
b5248d9037
fixes #1143
2014-08-19 10:01:46 +02:00
Araq
e662013ee0
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
2014-08-17 21:24:01 +02:00
Araq
710cbe3f1f
fixes #1492
2014-08-17 21:23:46 +02:00
Dominik Picheta
d10cef11dc
Fixes #710 .
2014-08-16 00:46:14 +01:00
Andreas Rumpf
e0fcfe58a2
Merge pull request #1485 from def-/js-substr
...
Fix CopyStr (substr in system.nim) for javascript target
2014-08-15 21:43:37 +02:00
Andreas Rumpf
6d67dccd04
Merge pull request #1484 from def-/js-swap
...
Fix swap in jsgen
2014-08-15 21:42:31 +02:00
def
e460d6e40e
Fix CopyStr (substr in system.nim) for javascript target
2014-08-15 19:49:15 +02:00
def
6a7062fb60
Fix swap in jsgen
2014-08-15 19:34:28 +02:00
def
7a5a6ec5bc
Fix array address on nkHiddenAddr
2014-08-15 19:06:13 +02:00
Araq
ae681be629
fixes #1343
2014-08-15 09:57:03 +02:00
Araq
f70b35b3b7
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
2014-08-14 22:22:11 +02:00
Araq
06ad50b671
fixes #669
2014-08-14 21:56:06 +02:00
Andreas Rumpf
d8f6a2adcb
Merge pull request #1481 from rbehrends/fix-stackscan2
...
Fix stack bottom initialization for non-main modules.
2014-08-14 09:16:26 +02:00
Reimer Behrends
d59b9a2168
Fix stack bottom initialization for non-main modules.
...
Because PreMain() was now called before the new stack bottom
initialization, it still relied on the old version of initStackBottom(),
which may not handle the top few words of the stack correctly. This
patch also sets the stack bottom in PreMain() using the new approach.
2014-08-14 03:09:39 +02:00
Araq
65587f726e
fixes #1433
2014-08-14 03:02:36 +02:00
Araq
c812a616b2
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
2014-08-14 02:44:53 +02:00
Araq
2728bbccc4
fixes newly introduced bugs
2014-08-14 02:42:26 +02:00
Reimer Behrends
a772105e7d
Fixed stack bottom initialization for DLLs.
2014-08-14 02:10:28 +02:00
Araq
27b9d10570
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
2014-08-14 00:02:39 +02:00
Araq
f3d530e482
fixes #1434
2014-08-14 00:02:24 +02:00
Andreas Rumpf
1d19c9525e
Merge pull request #1400 from rbehrends/fix-stackscan
...
More robust implementation for finding the beginning of the stack.
2014-08-13 20:17:16 +02:00
Araq
32a5d4baf0
fixes #1442
2014-08-13 02:53:00 +02:00
Araq
d1300de5e6
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
2014-08-12 08:47:39 +02:00
Araq
b8ce3a4175
fixes 'gcsafe'
2014-08-12 08:47:31 +02:00
Araq
05dbba0e38
fixes #1431
2014-08-12 00:22:14 +02:00
Dominik Picheta
25610a2f70
Fixes incorrect macro stack traces.
2014-08-11 20:47:38 +01:00
Araq
aaf4b04203
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
2014-08-11 20:38:36 +02:00
Araq
dd806cafa0
distinguish between 'defined' and 'declared'
2014-08-11 20:38:28 +02:00
Andreas Rumpf
94131e1e56
Merge pull request #1467 from Varriount/fix-1424
...
Fix #1424
2014-08-10 23:55:06 +02:00
Varriount
74213fcb9c
Update semexprs.nim
2014-08-10 17:50:58 -04:00
Araq
b1c8461a3b
fixes tinavlid_array_bounds test
2014-08-10 13:46:42 +02:00
Araq
037d7e4e5d
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
2014-08-10 03:19:00 +02:00