1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-14 23:50:19 +02:00
guile/module/system
Ludovic Courtès 42f7c01e0a Add FFI support for short' and unsigned short'.
* libguile/foreign.c (sym_short, sym_unsigned_short): New variables.
  (scm_init_foreign): Define Scheme variables SYM_SHORT and
  SYM_UNSIGNED_SHORT.

* module/system/foreign.scm (short, unsigned-short): New exports.
  (integer-ref, integer-set): Support (= (sizeof TYPE) 2).
  (%read-short, %write-short!, %read-unsigned-short,
  %write-unsigned-short!): New variables.
  (*writers*): Add support for `short' and `unsigned-short'.
  (*readers*): Likewise.

* test-suite/tests/foreign.test ("structs")["int8, pointer, short,
  double"]: New test.
2010-11-11 16:41:15 +01:00
..
base Add warnings for obvious syntax errors in format strings. 2010-10-10 19:10:11 +02:00
repl ,frame and related commands handle for-trap? appropriately 2010-10-12 13:24:46 +02:00
vm stepping traps use frame-next-source, not frame-source 2010-10-08 12:31:56 +02:00
foreign.scm Add FFI support for short' and unsigned short'. 2010-11-11 16:41:15 +01:00
xref.scm system xref maintains source mapping for nested procedures too 2010-09-24 13:24:48 +02:00