Commit Graph

765 Commits

Author SHA1 Message Date
Timothee Cour
d07d148597 fixes #7492 excessiveStackTrace:on shows non-absolute file in stacktrace (#8469) 2018-07-30 07:39:58 +02:00
Hugo Locurcio
3838e2a8d7 Fix links to manual.html in the system module documentation (#8467)
The HTML anchor IDs were changed, which made those links not link
to the appropriate section anymore.
2018-07-28 12:13:37 -04:00
Andreas Rumpf
ae09879b3a fixes #8223 2018-07-17 18:21:09 +02:00
Yuriy Glukhov
dfe3f16022 Don't depend on string.h in codegen (#8299) 2018-07-13 17:41:59 +02:00
LemonBoy
3163a0f466 Do not consider enums with holes as ordinals (#8264)
Make the compiler behave consistently with respect to what's written in
the manual.

Fixes #1239
2018-07-12 18:08:45 +02:00
Timothee Cour
befca425c4 workaround issue #8223 nim doc fails with doAssertRaises (#8245) 2018-07-08 08:16:13 +02:00
Dmitry Atamanov
a6c3bbf01a Add proc toOpenArray[byte] for strings (#7820) 2018-07-07 21:03:22 +02:00
Mamy Ratsimbazafy
75ef90da82 Put back deprecation path for SomeReal
was wrongly deleted in c7298561c1
2018-07-07 15:04:41 +02:00
Araq
531013727d system.nim: minor code style change 2018-07-06 19:13:54 +02:00
Araq
5384de685f Merge branch 'devel' of github.com:nim-lang/Nim into araq-devel 2018-07-06 18:41:00 +02:00
Dominik Picheta
5e338c371e Use '\L' instead of '\n' in system for backwards compatibility.
See https://github.com/nim-lang/packages/pull/785.
2018-07-06 15:48:17 +01:00
Andreas Rumpf
683c60e2fd restore deprecated PNimrodNode in order to make the CIs happy 2018-07-05 09:17:44 +02:00
Andreas Rumpf
a9e96888d0 system.nim: cleanup the formatting 2018-06-29 11:21:57 +02:00
Andreas Rumpf
c7298561c1 system.nim: remove deprecated symbols 2018-06-28 07:42:46 +02:00
Zahary Karadjov
fb27357b62 A minimal patch enabling the new typedesc and static types syntax 2018-06-16 16:46:32 +03:00
Emery Hemingway
22f714585b Native access to Genode environment
Add a 'GenodeEnv' type and a 'componentConstructHook' to the system
module. The 'componentConstructHook' allows for detection of POSIX style
programs that exit implicitly or native Genode components that
initialize to serve RPC requests and OS signals.

This hook takes a 'GenodeEnv' argument so that the environment interface
is passed cleanly to application code after globals are initialized.
This is an typed pointer to a C++ object, procedures for accessing the
environment will be available from a Nimble library and not included in
the standard library.

The standard library has an internal pointer to the environment object
but this is not for external use, the undocumented global environment
pointer has been removed.
2018-06-07 07:21:20 +02:00
hlaaf
7c71e1b058 Fix GC_getStatistics calling itself GC_disableMarkAndSweep in JS (again) 2018-06-06 00:39:07 +03:00
Yuriy Glukhov
395b7506cf Expose GC_setStackBottom (#7885) 2018-06-04 11:12:18 +02:00
data-man
b4626a220b Added $ for openarrays. Fixes #7940. 2018-06-01 21:28:23 +03:00
Dmitry Atamanov
94c45136ea Fixes #6832 (#7813)
Fixes #6832
2018-05-19 18:32:18 +03:00
Emery Hemingway
cda591a42f Disable setTerminate when noCppExceptions is defined (#7751) 2018-05-04 07:40:40 +02:00
Andreas Rumpf
599b5d6dcb make 'not nil' experimental 2018-05-02 13:34:53 +02:00
Andreas Rumpf
f64f9e50cc correct comparisons for nil strings/seqs 2018-04-28 15:13:44 +02:00
Andreas Rumpf
1eaeb8945b system.nim documentation: setLen can handle nil now 2018-04-28 09:31:22 +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
4a9f6f00ad fixes system.doAssertRaises 2018-04-18 21:30:38 +02:00
treeform
35b0cc67e8 Remove PHP backend. (#7606)
* remove php

* fix

* keep nimphpext

* remove targetJS enum
2018-04-18 20:40:11 +02:00
Arne Döring
efae366857 rename SomeReal to SomeFloat (#7617)
* rename SomeReal to SomeFloat
* added changelog entry
2018-04-15 19:59:11 +02:00
Andreas Rumpf
c08efb4c51 implements first version of for-loop macros 2018-04-15 01:07:28 +02:00
zah
e3037a2f33 Support code hot reloading for JavaScript projects (#7362)
* 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
2018-04-13 19:08:43 +02:00
PMunch
4f1725ad61 Add column number to instantiation info (#7376)
* 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.
2018-04-12 20:02:04 +02:00
cooldome
16c1a90857 Cpp codegen: handling of imported exceptions. Fixes #3571 (#7360) 2018-04-10 12:14:59 +02:00
Federico Ceratto
673f5f3534 Add RISC-V (riscv64) support (#7417) 2018-04-07 00:40:39 +02:00
Araq
9de05ec3e0 further steps in implementing sink parameters; refs #7041 2018-03-30 02:32:13 +02:00
Araq
1d9343080d added toOpenArray builtin for zero-copy slices; syntax sugar yet to come 2018-03-24 20:26:34 +01:00
WhiteDuke
d56ca42b1a [Documentation] free -> dealloc (#7334) 2018-03-16 15:55:00 +01:00
alaviss
566cec74b6 lib/system: Fix programResult documentation (#7307) 2018-03-07 14:46:02 +01:00
Araq
86c3832201 development version is 0.18.1 2018-03-05 17:02:19 +01:00
Araq
855956bf61 bump version to 0.18.0 2018-03-01 21:39:00 +01:00
Araq
ce1047f2ae added -d:nimNoArrayToString define to allow easier porting to 0.18 2018-03-01 09:42:25 +01:00
Araq
c9f184401c merged #6512 manually; fixes #6431 2018-02-27 17:43:02 +01:00
Andreas Rumpf
8a7e9960a4 system.nim: fix harmless typo 2018-02-26 09:08:57 +01:00
Araq
45437eb113 fixes #4220 2018-02-10 14:20:31 +01:00
Andreas Rumpf
49ad131fe2 mark Nim version with .intdefine 2018-02-05 21:12:56 +01:00
Andreas Rumpf
212457f5e0 the .deprecated pragma for procs now supports a user-definable deprecation message 2018-02-02 12:53:38 +01:00
Yuriy Glukhov
a37e47d069 Undeprecate readChar. Closes #7072 (#7156) 2018-01-30 15:55:11 +01:00
Andreas Rumpf
68dfd1729e fixes #6989 2018-01-27 07:59:40 +01:00
Andreas Rumpf
6266c68ab6 writeStackTrace now officially has no IO effect anymore for more convenient debugging 2018-01-21 21:08:51 +01:00
Andreas Rumpf
e4081a7201 preparations for language extensions: 'sink' and 'lent' types 2018-01-07 23:09:26 +01:00