Commit Graph

730 Commits

Author SHA1 Message Date
Yuta Yamada
b688a5607d srcdir -> srcDir 2016-09-14 17:57:19 -07:00
Araq
6a1b8e691f fixes #4764, fixes #4731, fixes #4724 2016-09-14 19:59:32 +02:00
Andreas Rumpf
03768e7da0 attempt to fix #4640 2016-09-13 16:33:43 +02:00
Araq
646a569421 fixes #3279 2016-09-12 22:57:12 +02:00
Andreas Rumpf
479373ad79 fixes #4088 2016-09-11 23:48:59 +02:00
Yuriy Glukhov
99bbda28ee Store stack trace in exception 2016-09-04 22:57:10 +03:00
Andreas Rumpf
11f7eb2d9b fixes #4689 2016-09-01 16:57:34 +02:00
Yuriy Glukhov
f12f27c185 Fixed getCurrentException and getCurrentExceptionMsg. Closes #4635 2016-08-29 13:10:06 +03:00
Yuriy Glukhov
c1dd65c01a Reset framePtr on unhabdled exception. Dont reset on getStackTrace. 2016-08-27 18:10:13 +03:00
Yuriy Glukhov
90b0a771e4 Uncaught exceptions in JS now always propagate with better stack trace. 2016-08-27 16:52:08 +03:00
Andreas Rumpf
8882b062e1 added selfExe and selfExec for NimScript support 2016-08-05 20:19:15 +02:00
Andreas Rumpf
b36849be3f Merge pull request #4559 from haiodo/enable-profiler-filenames
Enable embedded profiler to display filenames.
2016-08-02 17:13:33 +02:00
Andreas Rumpf
ff351105fb Merge pull request #4548 from arnetheduck/gc-cleanup
clean up a few stray c_stdout's in gc debug code
2016-08-02 17:11:58 +02:00
Andrey Sobolev
3c03877701 Enable embedded profiler to display filenames.
Enable embedded profiler to display filenames in profile_results.txt
2016-08-02 19:19:31 +07:00
miere43
268ba0ba00 fix several broken links 2016-07-31 21:39:32 +03:00
Jacek Sieka
b3846124e6 clean up a few stray c_stdout's in gc debug code 2016-07-31 08:34:42 +08:00
Andreas Rumpf
a8edf67a28 make nim bootstrap again for older versions 2016-07-30 00:50:38 +02:00
Hans Raaf
cc4bb89267 Fix for cstring nil to string nil conversion with $ 2016-07-29 01:39:33 +02:00
coffeepots
ea03199400 Add handle function to Thread type
Exposes SysThread type and introduces the function "handle" to return Thread.sys.
2016-07-27 14:56:52 +01:00
Dmitry Polienko
c768fea630 Fix newWideCString(cstring, int) 2016-07-19 20:37:26 -07:00
Andreas Rumpf
b7c1be03c8 added system.newSeqOfCap for improved efficiency 2016-07-15 17:04:14 +02:00
Andreas Rumpf
0834cd63d9 prepare Nim codebase for upcoming parser changes 2016-07-15 12:56:03 +02:00
Yuriy Glukhov
59d17cb341 Fixed crash with leakDetector and threads enabled. 2016-07-11 16:23:15 +03:00
Andreas Rumpf
5e82ffc8d5 Nimscript: added support for 'patchFile' 2016-07-09 14:26:00 +02:00
Andreas Rumpf
e2267ef5c9 Nimscript supports hint() and warning() procs; refs #3688 2016-07-08 22:24:28 +02:00
Andreas Rumpf
caa7f42e8e fixes #4340 2016-07-07 01:35:42 +02:00
Rostyslav Dzinko
e94c0ea4c8 Fixed reprEnum function on 32-bit systems 2016-07-05 19:05:31 +03:00
Jeff Ciesielski
4f4aafda6c Plumb {.intdefine.} and {.strdefine.} pragmas.
Shorthand so that users won't need to use the .magic pragma
2016-07-04 22:52:24 -04:00
Jeff Ciesielski
94d1aa5109 Add the ability to pass a value with the -d flag
This allows the end user to use the {.magic: "IntDefine"/"StrDefine"}
pragmas to pass values into code at compile time.  This has a nice side
effect of also allowing/requiring a default value to be assigned in the
code (see osalloc.nim/StandaloneHeapSize for an example)
2016-07-04 18:11:25 -04:00
cheatfate
e0b7f434eb Enhance values SIGNALS on more OS.
Checked systems OpenBSD, NetBSD, FreeBSD, Solaris.
2016-06-16 13:38:30 +03:00
A. S. Budden
8e28a6140b Correction as I hadn't realised setvbuf had been renamed. 2016-06-13 16:57:52 +01:00
A. S. Budden
1095b35a79 Merged upstream/devel into this branch to resolve conflicts and ensure an easy merge back into upstream/devel 2016-06-13 16:44:14 +01:00
A. S. Budden
5327cd0a84 Corrected setStdIoUnbuffered for systems without stdout, stderr or stdin declared. 2016-06-13 16:37:50 +01:00
Yuriy Glukhov
84876edbcb Fixed emscripten compilation 2016-06-13 17:00:13 +03:00
Andreas Rumpf
68d1240012 fixes sysio/readChar regression 2016-06-13 12:23:31 +02:00
A. S. Budden
52b4e8f661 Added setStdIoUnbuffered for unbuffered stdio (fixes #2146). 2016-06-12 07:40:28 +01:00
Jacek Sieka
0d45c17388 disable StringStream for JS (needs copyMem) 2016-06-08 22:00:13 +08:00
Jacek Sieka
9604444d09 fix fgets type 2016-06-08 20:48:46 +08:00
Jacek Sieka
8d7a45f205 prefer consts to importing #defines from headers
to be completed - better would be to have a libc wrapper that deals with
all pesky C ABI details
2016-06-06 23:00:00 +08:00
Jacek Sieka
fe2b39f007 remove system/ansi_c include from os 2016-06-05 20:16:26 +08:00
Jacek Sieka
64b0485207 fix types of ansi_c/sysio to more closely match C ABI
also fixes some instances of using C library functions when there are
nim alternatives available
2016-06-05 12:03:20 +08:00
Jacek Sieka
796d939c6c remove strange file types in ansi_c 2016-06-01 20:05:41 +08:00
Andreas Rumpf
ab08ee1ce6 widestrs are always available for better interop 2016-05-28 20:18:11 +02:00
Andreas Rumpf
ea0dff3783 Merge pull request #4216 from Parashurama/fix_4212
fixes issue 4212 && add test for various valid zero floats.
2016-05-25 17:11:57 +02:00
Andreas Rumpf
2bc6acd0ed gc:stack compiles with --threads:on 2016-05-25 12:04:27 +02:00
Parashurama
4716034a7f fixes issue 4212 && add test for various valid zero floats. 2016-05-25 11:57:09 +02:00
Andreas Rumpf
ad70fb4ffe Merge pull request #4213 from oderwat/nimphpext-stack-gc
Made nimphpext work with gc:stack.
2016-05-25 02:55:24 +02:00
Hans Raaf
5385798838 Made nimphpext work with gc:stack. 2016-05-25 02:25:48 +02:00
Andreas Rumpf
835bd9aef2 fixes #4212 2016-05-25 01:10:31 +02:00
Andreas Rumpf
55ec99b70b new GC listens to GC_ref/GC_unref 2016-05-23 12:54:01 +02:00