mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 16:57:35 +02:00
Added example of changes for define-c
This commit is contained in:
parent
33b1e08b0c
commit
8143614c34
1 changed files with 10 additions and 2 deletions
12
CHANGELOG.md
12
CHANGELOG.md
|
@ -4,9 +4,17 @@
|
||||||
|
|
||||||
Features
|
Features
|
||||||
|
|
||||||
- Updated the compiler and runtime to allow a (practically) unlimited number of function arguments. This involved changing the calling conventions of our generated C code and runtime functions, but is transparent to application developers. Program should continue to work without requiring modifications though it may be necessary to update `define-c` definitions if there are unused parameters, to prevent warnings from the C compiler.
|
- Updated the compiler and runtime to allow a (practically) unlimited number of function arguments.
|
||||||
|
|
||||||
TODO: example of the above fix
|
This involved changing the calling conventions of our generated C code and runtime functions, but is transparent to application developers. Program should continue to work without requiring modifications though it may be necessary to update `define-c` definitions if there are unused parameters, to prevent warnings from the C compiler. For example:
|
||||||
|
|
||||||
|
(define-c read-error
|
||||||
|
"(void *data, object _, int argc, object *args)"
|
||||||
|
" object port = args[1];
|
||||||
|
object filename = args[2];
|
||||||
|
object msg = args[3];
|
||||||
|
|
||||||
|
Note that no changes are a required if `(cyclone foreign)` is used to integrate with C.
|
||||||
|
|
||||||
- Modifying version numbers going forward to use explicit three digit semantic versioning `major.minor.bugfix`.
|
- Modifying version numbers going forward to use explicit three digit semantic versioning `major.minor.bugfix`.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue