Commit Graph

35 Commits

Author SHA1 Message Date
Andreas Rumpf
3308d26581 breaking change: arrays of char do not convert to cstring; ptr to array of char does 2017-10-10 00:17:20 +02:00
Emery Hemingway
7e351fc7fa support for the Genode OS framework (#5560) 2017-03-31 23:13:06 +02:00
Andreas Rumpf
52c38f8535 make tests green again 2017-02-08 22:42:48 +01:00
Andreas Rumpf
d23eb79849 make tests green again 2017-02-08 22:21:01 +01:00
Felix Krause
cee445b889 Display hint for -d:nimDebugDlOpen on load failure 2016-10-03 12:06:54 +02:00
Felix Krause
9c91558e62 Fixed compilation error with -d:nimDebugDlOpen 2016-10-03 11:58:21 +02: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
cheatfate
40f4fe997f Replace csprintf() in windows version of nimGetProcAddr to pure nim's implementation, to avoid possible overflow. 2016-03-31 02:39:53 +03:00
Araq
13a83c7fdd Windows: fixes a regression; codegen might not know about & at this point 2016-03-29 16:39:05 +02:00
Alex Berghage
452696b980 Makes dyncall errors report to stderr. Fixes #3987
Hooray for bugtracker items tagged 'Easy'. Also I happened
to notice this one earlier today anyway, conveniently enough.
2016-03-29 00:19:54 -07:00
Andreas Rumpf
72f804671d do not print spurious warnings when dlopen fails; can be re-enabled with -d:nimDebugDlOpen 2015-12-29 20:39:52 +01:00
dfdeshom
5b35efe5b7 Print out more detailed error messages when compilation fails 2015-11-26 12:23:26 -06:00
jyelon
e8bc19f79c Add 'auto-decoration' to nimGetProcAddr
Maintainers of win32 DLLs can opt to provide libraries with
'decorated' function names (Google "stdcall name decoration").  To
pull a function pointer out of one of these DLLs, you have to pass a
decorated name to getProcAddress.  This is painful for the authors
of NIM DLL wrappers - they have to pass manually-decorated strings
to "importc", but only on win32.

This commit adds auto-decoration to nimGetProcAddress.  This function
will probe the DLL for the undecorated name, and if that fails, it
will automatically add decoration and try again.  That way, the author
of the wrapper doesn't have to deal with it.
2015-11-11 21:55:33 -05:00
Adam Strzelecki
a02359b4e1 system/dyncalls: OS X is already handled as posix
So elif defined(mac) has absolutely no effect, also this block uses some legacy
discouraged NSCreateObjectFileImageFromFile function.
2015-10-22 20:40:02 +02:00
Sergey Avseyev
f9d8d6ce09 Trim trailling spaces 2015-06-26 07:42:58 +03:00
pdw
ff5b446dfc lib/system/a-e - Dropped 'T' from types 2015-06-04 13:18:37 +02:00
Federico Ceratto
657dca5c3b Fix typos 2015-02-15 16:20:32 +00:00
Araq
e84834db79 lots of C++ codegen improvements 2015-02-07 10:48:07 +01:00
Araq
e75e421912 C++ support: codegen generates C++'s references and avoids copies 2015-02-04 00:52:45 +01:00
Araq
fc0fda14ae system files use new identifiers 2014-08-23 00:58:04 +02:00
Araq
dbf9117c56 the big renamefest: first steps 2014-08-22 23:54:26 +02:00
Araq
286f166304 case consistency for linux 2013-12-29 03:32:46 +01:00
Araq
2df9b442c6 case consistency part 1 2013-12-27 15:48:53 +01:00
Grzegorz Adam Hankiewicz
72a3e21f28 Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
Araq
4f1b89c30c year 2012 for most copyright headers 2012-01-02 23:07:35 +01:00
Araq
67a30d8371 further steps for thread support; bootstrapping should require unzip C sources and ./build.sh 2011-05-16 00:27:47 +02:00
Araq
73c3551766 gc tweaking to gain a few percent of performance 2011-05-07 22:13:24 +02:00
Andreas Rumpf
8098e2a421 inlining of the write barrier for dlls 2010-08-08 22:45:21 +02:00
Andreas Rumpf
03724c2952 before stack init change 2010-08-01 14:49:54 +02:00
Andreas Rumpf
ff02ce2d50 handling of compiler procs improved for DLL generation 2010-07-29 21:30:04 +02:00
Andreas Rumpf
40ea1d0330 fixed pango/pangoutils new wrappers 2010-02-26 01:26:16 +01:00
rumpf_a@web.de
40a5d6c3b9 continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
Andreas Rumpf
27d7e3a0ae BUGFIX: better error message when loading of dynamic lib proc fails 2009-12-09 01:05:48 +01:00
Andreas Rumpf
66a7e3d37c added tools and web dirs 2009-09-15 23:22:22 +02:00
Andreas Rumpf
4d4b3b1c04 version0.7.10 2009-06-08 08:06:25 +02:00