Commit Graph

4487 Commits

Author SHA1 Message Date
Araq
640b30a47f codegen improvement: map the empty string to 'nil' since it's now allowed to do that 2018-08-08 12:06:00 +02:00
Araq
dd75346292 fixes the new nimcache handling 2018-08-07 22:54:45 +02:00
Araq
d8e66d6acc fixes merge conflict 2018-08-07 22:25:01 +02:00
Timothee Cour
c352329714 runnableExamples: keep (gitignored) generated foo_examples.nim for inspection even on success (#8544) 2018-08-07 18:52:55 +02:00
andri lim
4d5cce9882 fixes #6255, add system.ashr arithmetic right shift (#8547) 2018-08-07 18:41:30 +02:00
andri lim
c3d5ec8ead fixes #8421, fixes #7968, Nim compiler compiles with MSVC C89 version (#8556) 2018-08-07 09:07:18 +02:00
Andreas Rumpf
e067a7681f 'nimcache' defaults to ~/.cache on Posix; cleaned up documentation 2018-08-06 23:38:29 +02:00
Andreas Rumpf
e555e97b4b use slashes instead of dots for paths 2018-08-06 20:00:26 +02:00
Andreas Rumpf
e9d67266ef introduce the --define 'osx' as an alias for 'macosx' 2018-08-06 19:58:48 +02:00
andri lim
6e3d1dced5 fixes #5617, 'copyLineInfo' addition (#8523) 2018-08-05 23:38:21 +02:00
Andreas Rumpf
c57e320c94 fixes 7833 (#8533)
* fixes #7833; still to-do: fix setLen
* make tests green again
* also fixes setLen and string concats; refs #7833
* change formating to avoid a compiler warning
* emit the write barrier also for addChar
* fixes yet another regression
* make setLengthStr compile for the old version
* make growobjcrash complete earlier
2018-08-05 11:42:38 +02:00
Araq
96c6c82d55 fixes #8425 2018-08-04 20:10:03 +02:00
Charlie Barto
e403ef25ac fix shell quoting error for static libraries (#8532) 2018-08-04 01:18:27 +02:00
andri lim
78c0ac5407 fixes #7827, bindSym enhancement (#8499)
* bindSym power up, working prototype

* update bindSym doc

* add bindSym test

* fix some typo

* fix bindSym doc

* get rid of specialops field from vm

* add experimental: dynamicBindSym
2018-08-02 12:56:44 +02:00
Timothee Cour
9e37e3e5e8 add hintCC to optionally disable printing 'CC: filename' (#8479) 2018-08-01 09:22:51 +02:00
Timothee Cour
818d9be311 lineInfoObj (and check, expect) now return absolute paths (#8466) 2018-07-31 23:02:04 +02:00
Oscar Nihlgård
931273cc6b Fix ref bug in vmgen (#8424) 2018-07-30 22:28:24 +02:00
Oscar Nihlgård
5491f1f53b Deprecate the dot style for import paths (#8474) 2018-07-30 09:24:16 -04:00
Timothee Cour
c0f78ec012 fixes #8419 fixes #8420 ; workaround #6071 workaround nim-lang/website#98 (#8423)
add --git.devel option to override doc generated "edit" links; add --nimCompiler option to nimweb
2018-07-30 14:02:18 +02:00
Araq
f2ddd99539 fixes #8425 2018-07-30 12:20:58 +02:00
Araq
d270245a01 disable --app:gui for non Windows targets; fixes #2576 2018-07-30 12:20:58 +02:00
cooldome
404f0d64af Add sizeof for arrays of integral types (#8445) 2018-07-30 11:00:06 +02:00
LemonBoy
c3a9ac4d35 Try conversion to static[T] in generic instantation (#8443)
Fixes #8439
2018-07-30 10:51:14 +02:00
skilchen
becb6743f8 fixes #8434 (incomplete info in errmsg about 'required type') (#8441) 2018-07-30 10:41:59 +02:00
Timothee Cour
06571f5495 fixes #8323 : avoid polluting git status after nim doc foo (#8415) 2018-07-30 10:36:23 +02:00
Oscar Nihlgård
97ea18746b Fix path resolution of submodules in the std namespace (#8453) 2018-07-30 09:07:11 +02:00
LemonBoy
1fc3a68205 Access implicit result trough envP in closures (#8471)
Reuse the existing machinery, most of the changes are only needed to
handle the `result = result` node in nkReturnStmt produced by the
closure iterator transform.

Fixes #338
2018-07-30 08:34:15 +02:00
LemonBoy
d5c9255cab Allow use of typedesc as type converters (#8409)
Fixes #8403
2018-07-24 08:25:08 +02:00
Yuriy Glukhov
2094209837 Fixed #8399 (#8401) 2018-07-22 22:30:59 +02:00
cooldome
ec02940185 Render bug: if expression with statement list expression as condition (#8375)
* Fixes #8348
2018-07-21 13:01:47 +02:00
Joey
2b6f324929 Add -w flag to Switch compilation to prevent deadlock (#8372)
See https://forum.nim-lang.org/t/4062.

The summary is that there are warnings printed when compiling and that causes a deadlock, likely due to output buffers being filled up. With the `-w` flag, the compiler outputs no warnings and the compilation is allowed to finish.
2018-07-20 14:47:19 -05:00
skilchen
143834ba4e keep the imports in runnableExamples visible in generated html doc (#8354) 2018-07-19 01:05:07 +02:00
cooldome
a651809411 Fixes #8343, Fixes #8344 (#8347) 2018-07-18 14:54:44 +02:00
Aaron Levine
6512f8688d Fix #8345 (#8350) 2018-07-18 08:08:49 +02:00
skilchen
2262c255e2 let runnableExamples start in a new paragraph (#8355)
fixes #8121, fixes #8346
2018-07-18 07:51:39 +02:00
Andreas Rumpf
6a9b082b53 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2018-07-17 18:23:03 +02:00
Andreas Rumpf
2e3f477957 VM: accessing the string terminator is not allowed anymore; cleanup tests/system/tostring.nim 2018-07-17 18:22:20 +02:00
LemonBoy
ebf4e9f717 Extend init variable tracking to tuple assignments (#8321)
Fixes #8314
2018-07-17 17:50:05 +02:00
Andreas Rumpf
fc0bcccc15 fixes #8230 2018-07-17 16:43:05 +02:00
Andreas Rumpf
f29225fc63 sigmatch: no trailing whitespace 2018-07-17 16:14:12 +02:00
Quelklef
f2b6efb7dc Make pragmas look clickable in docs (#8176)
* Visual cues for hidden pragmas in docs.
* Add hover cue
2018-07-17 12:14:31 +02:00
Arne Döring
97d37aeb0b Gdb pretty printers (#8263) 2018-07-16 19:30:05 +02:00
LemonBoy
217a2cf098 Resolve converter call to constants in case arms (#8336)
Fixes #8333
2018-07-16 16:19:31 +02:00
Timothee Cour
d07489abf4 fix #7405 and #8195 (#8198)
* fix #7405 and #8195

* control pushInfoContext in semExprNoType,genStmts via a new hintExtendedContext; make NotesVerbosity computation more DRY

* addressed comments
2018-07-16 13:34:44 +02:00
Oscar Nihlgård
332469692d Bugfix for modules with multi byte characters in the name (#8319) 2018-07-14 16:00:51 +02:00
LemonBoy
9b98add6c7 Do not crash while instantiating a generic outside a call (#8279)
Fixes #8270
2018-07-14 01:44:40 +02:00
Yuriy Glukhov
dfe3f16022 Don't depend on string.h in codegen (#8299) 2018-07-13 17:41:59 +02:00
LemonBoy
54a85b4ff5 Give different names to objects coming from cpp files (#8278)
Prevent some nasty linker errors if the user switches between c and cpp
backends.
2018-07-13 15:23:41 +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
LemonBoy
ba1f036a56 Correctly hash inferred types (#8286)
We don't really want to hash the tyInferred container since that'd make
the "real" type and its inferred counterpart produce different hashes
and types for the very same type.

Fixes #8280
2018-07-12 13:00:11 +02:00