summary refs log tree commit diff stats
path: root/lib/system/ansi_c.nim
Commit message (Collapse)AuthorAgeFilesLines
* Genode fixes (#8501)Emery Hemingway2018-08-161-1/+1
| | | | | | | | | | | | | * Genode fixes - wrap strings in "Genode::Cstring" when logging - define SIGABRT for Genode - disable GCC -fstack-protector - use log RPC for fatal messages - add --os:genode build to appveyor - define paramStr and paramCount * Select fixups for Genode POSIX
* Haiku support for Nim (#8542)alaviss2018-08-141-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * posix_other: Haiku now has spawn.h This is added per https://dev.haiku-os.org/ticket/13446 * posix_other: Add Haiku specific Dirent members * cpuinfo: Add an implementation for Haiku * distros: Add basic Haiku support * encodings: update Haiku support * fenv, math: Haiku now provides libm * times: Add Haiku struct members * ansi_c, osalloc: Add Haiku constants * threads: Add Haiku support * testament: Haiku uses LIBRARY_PATH * nim.cfg: Update Haiku support libnetwork should only be linked if network functions are used * threads: Haiku does not support -pthread switch * tworkingdir: Haiku's env is in /bin * posix_other: add SIGKILLTHR for Haiku * sockets: link with libnetwork on Haiku * coro: correct ucontext.h location http://pubs.opengroup.org/onlinepubs/009696699/basedefs/ucontext.h.html * coro: ucontext backend is not available on Haiku Haiku doesn't provide the <ucontext.h> header, as it was removed from POSIX * coro: fix setjmp backend The compiler does not allow statements after a noreturn function * nativesockets: Haiku doesn't support AI_V4MAPPED * system: hostOS can contains "haiku" * os: add support for Haiku's packagefs packagefs is read-only, but there are writable holes to the underlying file system as well * os: update constant for Haiku
* Added c_abort to ansi_c (#8449)Yuriy Glukhov2018-07-301-0/+3
|
* Don't depend on string.h in codegen (#8299)Yuriy Glukhov2018-07-131-0/+2
|
* Nintendo switch support (#8069)Joey2018-06-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * Add config section for Nintendo Switch * Add compiler configuration for Nintendo Switch and it's CPU * Add specific lib code for Nintendo Switch * Add GC support for Nintendo Switch * Update changelog for Nintendo Switch * Update changelog with more info about fixed paths * Cleaned up GC memory management a bit * Relocate docs for Switch * Rename aarch64NoneElfGcc to nintendoSwitchGCC * Remove armv8a57 * Fix installer.ini * Reuse code in linux and amd64 * Add posix defs for nintendo switch * Add more defined sections for nintendo switch * Remove old comment * Add what's not supported for Nintendo Switch docs * Make nintendoswitch == posix * Remove DEVKITPRO references from nim.cfg * Make PR extccomp changes * Remove Result type alias * Add separate switch consts file * Update docs for nintendo switch * Fix travis errors with undefined consts and add correct wait.h procs
* fixes to allow the usage of clang on windows with the msvc abi and ms ↵Charlie Barto2017-10-091-2/+6
| | | | headers (#6442)
* Linux abi take 3 (#5692)Jacek Sieka2017-04-121-2/+8
| | | | | * avoid generating object fields for imported types * fix some abi/type issues for linux_amd64
* Fixes to support Dragonfly BSD. (#5552)Eugene Kabanov2017-03-171-1/+2
| | | | | | | | | * Fix kqueue.nim and ansi_c.nim to support dragonfly. * Fix ioselectors.nim, threads.nim to support dragonfly. * Fix deprecated dealloc call in tioselectors.nim. * Fix tfsmonitor.nim test to run only on Linux. * Fix osproc.nim return wrong exit codes. * Fix getAppFilename() for dragonfly. * Fix proper exit code handling.
* ansi_c.nim: avoid deprecated 'expr' typeAraq2017-01-201-1/+1
|
* Enhance values SIGNALS on more OS.cheatfate2016-06-161-1/+2
| | | | Checked systems OpenBSD, NetBSD, FreeBSD, Solaris.
* prefer consts to importing #defines from headersJacek Sieka2016-06-061-25/+20
| | | | | to be completed - better would be to have a libc wrapper that deals with all pesky C ABI details
* remove system/ansi_c include from osJacek Sieka2016-06-051-26/+0
|
* fix types of ansi_c/sysio to more closely match C ABIJacek Sieka2016-06-051-63/+41
| | | | | also fixes some instances of using C library functions when there are nim alternatives available
* remove strange file types in ansi_cJacek Sieka2016-06-011-30/+17
|
* added 'sig' feature; removed tfShared support in the compilerAndreas Rumpf2016-02-281-2/+2
|
* further progress on --gc:v2Andreas Rumpf2016-02-171-6/+12
|
* lib: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-11/+11
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* fixes #1744Araq2014-12-171-4/+5
|
* Merge branch 'devel' of https://github.com/Araq/Nimrod into bigbreakAraq2014-10-041-4/+17
|\ | | | | | | | | | | | | Conflicts: lib/impure/db_postgres.nim lib/pure/os.nim lib/wrappers/postgres.nim
| * Improve setjmp()/longjmp() performance.Reimer Behrends2014-09-251-4/+17
| | | | | | | | | | | | | | | | | | | | | | Exception handling for the C backend used setjmp()/longjmp() unconditionally. However, on POSIX systems, these functions save and restore the signal mask, adding considerable overhead to exception handling, even where no exceptions are involved. The compiler and library now try to use either _setjmp()/_longjmp() or sigsetjmp()/siglongjmp() where possible, marked by the defines "nimRawSetjmp" and "nimSigSetjmp", respectively. The define "nimStdSetjmp" can be used to revert to setjmp()/longjmp() instead.
* | the big renamefest: first stepsAraq2014-08-221-2/+2
|/
* distinguish between 'defined' and 'declared'Araq2014-08-111-2/+2
|
* parseBiggestFloat is now builtinAraq2014-07-161-4/+1
|
* More human readable `$`(float)katlogic2014-06-151-1/+4
| | | | | The output matches that of Python (eg 1e100, not 1.0e100), but also reflects locale (assuming it was set using setlocale() before).
* Fixes #1168Simon Hafner2014-05-031-0/+3
|
* case consistency part 4Araq2013-12-271-7/+7
|
* bootstraps with new template symbol binding rulesAraq2013-12-241-11/+11
|
* NoFakeVars progressAraq2013-12-241-3/+12
|
* vm: FFI improvementsAraq2013-12-231-15/+31
|
* fixes #569; C++ codegen works againAraq2013-08-311-1/+1
|
* fixes #532Araq2013-08-011-1/+1
|
* fixes --os:standaloneAraq2013-06-301-5/+6
|
* --os:standalone works againAraq2013-06-301-40/+56
|
* Removes executable bit for text files.Grzegorz Adam Hankiewicz2013-03-161-0/+0
|
* incompleteStruct pragma for C's FILEAraq2013-01-271-3/+2
|
* fixes #293Araq2013-01-081-1/+1
|
* fixes #250Araq2012-11-191-7/+9
|
* bugfix: 'defined/compiles' open an implicit mixin scope in genericsAraq2012-09-181-0/+2
|
* changed integer promotion rules; breaks bootstrapping and lots of codeAraq2012-07-081-1/+2
|
* changed integer promotion rules; added math.fmodAraq2012-06-281-2/+2
|
* bugfix #100 againAraq2012-03-281-1/+0
|
* year 2012 for most copyright headersAraq2012-01-021-1/+1
|
* bugfix: floating point precision; added strutils.formatFloatAraq2011-01-091-2/+3
|
* fixed pango/pangoutils new wrappersAndreas Rumpf2010-02-261-0/+0
|
* continued work on html/xmlparserrumpf_a@web.de2010-02-141-0/+0
|
* added tools and web dirsAndreas Rumpf2009-09-151-0/+0
|
* overload resolution for proc varsAndreas Rumpf2009-06-241-3/+4
|
* version0.7.10Andreas Rumpf2009-06-081-0/+104