Abdulaziz Ghuloum
afa61cc1a7
- synching scheme/psyntax.*.ss from the psyntax distribution.
2008-10-13 17:33:25 -04:00
Abdulaziz Ghuloum
442f6e9049
- native bytevector operations on 16-bit values were implemented
...
using the wrong endianness.
2008-10-13 02:40:26 -04:00
Abdulaziz Ghuloum
1be0f2af6e
- changed foreign accessors and mutator names to have '-c-' in their
...
names as suggested by Ken Dickey.
2008-10-12 02:06:25 -04:00
Abdulaziz Ghuloum
811c94361b
- fixed bugs in pass-specify-rep where some (known) types were
...
unhandled causing compile time errors.
- fixed some bootstrapping issues with pointer? (which was moved out
of the (ikarus) library)
- freshened up the bootfiles for both 32- and 64-bit version of
ikarus.
2008-10-12 01:15:20 -04:00
Abdulaziz Ghuloum
69c62649cc
- defined RTLD_LOCAL for cygwin (possibly incorrect)
...
- added a missing save to a callee-save register (%edi)
when entering/reentering to Scheme which caused Ikarus
not to run properly depending on whether or not gcc places
the pcb in %edi or not during Scheme execution.
- updated lab/test-ffi.ss to use the new names for foreign
types, etc.
2008-10-07 02:46:56 -04:00
Abdulaziz Ghuloum
1e5e516b08
- added (ikarus foreign) library that should be used instead of
...
(ikarus system $foreign).
- changed the names of some of the pointer primitives
- changed the name of the procedure make-ffi to make-callout
- updated examples and libraries to conform with new names
- updated the users guide to provide a complete description of
the (ikarus foreign) library
- updated list of missing R6RS features in the users guide
2008-10-06 01:19:27 -04:00
Abdulaziz Ghuloum
997c75fabb
fixed a bug that caused (- <bignum> <bignum>) to crash or yield
...
incorrect result if gc is triggered while allocating the resulting
bignum.
2008-10-04 01:59:34 -04:00
Abdulaziz Ghuloum
cd4e12be68
One can now create (at runtime) objective-c classes and add methods
...
to them to get them to do things. See lab/objc-create-class.ss for
a cute example.
2008-09-29 01:40:58 -04:00
Abdulaziz Ghuloum
0a7a3a8266
made load feel like a top-level by consuming the contents of the
...
given file one expression at a time. Most notable difference is
observed when the loaded file captures a conitnuation in one
expression. Re-invoking this continuation should evaluate the
next expression that has not been evaluated yet, and not the
expression following the call/cc.
2008-09-28 00:08:34 -04:00
Abdulaziz Ghuloum
90175f528f
speech synthesizer demo
2008-09-27 03:20:24 -04:00
Abdulaziz Ghuloum
a2c910d990
Got the apple menu to work in cocoa.
2008-09-27 01:55:06 -04:00
Abdulaziz Ghuloum
60f5142143
Added a Cocoa library exporting some useful Cocoa stuff.
2008-09-26 04:11:18 -04:00
Abdulaziz Ghuloum
8c30f0715b
Managed to a simple Ikarus -> Objective-C interface to work. Ikarus
...
can now open a Cocoa window under Mac OS X. Happy Happy Joy Joy!!
2008-09-26 02:46:07 -04:00
Abdulaziz Ghuloum
89d9a472a5
"darwin" is no longer hardcoded in lib/ypsilon-compat.ikarus.ss,
...
instead, it is obtained from the target info that autoconf
generates.
2008-09-24 23:18:35 -04:00
Abdulaziz Ghuloum
3969e56c2d
glGetString works (returning a char* which is converted to a string)
2008-09-24 07:55:23 -04:00
Abdulaziz Ghuloum
55c3fbcc4d
moved the opengl libraries from lab/ to lib/ so that they get
...
installed as user libraries.
2008-09-24 07:22:25 -04:00
Abdulaziz Ghuloum
6a9de3e974
the opengl demos now work unmodified under both ikarus and ypsilon.
2008-09-24 06:00:42 -04:00
Abdulaziz Ghuloum
c8d0baa341
rewrote ypsilon FFI compatibility layer to be simpler and to provide
...
better error checking.
2008-09-24 05:22:53 -04:00
Abdulaziz Ghuloum
9f53841fb9
fixed endianness error in bytevector-native-[us]32-native-set!.
2008-09-23 08:02:47 -04:00
Abdulaziz Ghuloum
61ecbe0dd1
- opengl demos from ypsilon (gears and glut-demo) now work under
...
ikarus's ffi using a compatibility layer.
2008-09-23 07:48:16 -04:00
Abdulaziz Ghuloum
abe97b4053
- argument conversion for callbacks now work.
...
- added more tests in lab/test-ffi.ss
2008-09-23 03:21:41 -04:00
Abdulaziz Ghuloum
876ab09eee
- gc during callbacks now works.
...
- system continuations are now maintained as part of the list in
pcb->next_k.
2008-09-23 01:49:06 -04:00
Abdulaziz Ghuloum
df4cb7a6ce
fixed an off-by-one bug in ffi callbacks.
2008-09-23 00:24:41 -04:00
Abdulaziz Ghuloum
09657334c0
fixed autoconf so that ffi.h and libffi are checked iff ffi is
...
enabled. Also made prep-callback return #f if libffi does not
support closures.
2008-09-22 21:55:05 -04:00
Abdulaziz Ghuloum
e07d8f9760
ffi callbacks sorta kinda work now.
2008-09-21 04:08:54 -04:00
Abdulaziz Ghuloum
06fd988a17
C callbacks now reach the C point where they should make the call
...
back into Scheme land.
2008-09-20 01:58:57 -04:00
Abdulaziz Ghuloum
31f5f88889
first test of ffi works:
...
> (import (ikarus system $foreign))
> (((ffi-prep-cif 'void '(uint32))
(dlsym (dlopen #f) "hello_world"))
10)
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
>
2008-09-14 04:17:24 -07:00
Abdulaziz Ghuloum
9f2d7484ab
fixed uint/ulong pointer ref bug (and added appropriate tests).
2008-09-14 00:38:59 -07:00
Abdulaziz Ghuloum
58d937c520
upgraded to using latest versions of autoconf, aclocal, and m4.
2008-09-13 15:16:14 -07:00
Abdulaziz Ghuloum
8e750562d6
- Added memory operations on pointer types for setting and accessing
...
char, short, int, and long values from pointer arrays.
2008-09-13 07:49:17 -07:00
Abdulaziz Ghuloum
e05e84d1c2
Added dlopen, dlclose, dlerror, dlsym, malloc, and free to
...
(ikarus system $foreign).
2008-09-12 14:22:57 -07:00
Abdulaziz Ghuloum
30cd6a2de8
made environment-symbols work on the interaction-environment.
2008-09-10 11:02:42 -07:00
Abdulaziz Ghuloum
0b017898a8
- minor change to how export (with renaming) is parsed. When you
...
rename from-name to to-name, the from-name is now treated as an
identifier while the to-name is treated as a symbol.
2008-09-10 08:17:18 -07:00
Abdulaziz Ghuloum
fcef21c693
- Added (environment-symbols <env>) which returns a list of symbols
...
exported by the environment. Try
> (environment-symbols (environment '(rnrs)))
- Added an internal export mechanism so that identifiers can be
exported from within a library. The syntax is the same:
(export export-spec* ...)
when appears in a library's top level, adds the export specs to
the set of exported identifiers. So, one can do:
(library (A)
(export)
(import (ikarus))
(export a)
(define a 17))
When appearing in non-library definition context, the export form
is ignored.
2008-09-10 06:35:18 -07:00
Abdulaziz Ghuloum
a9193018a6
added a cgi-server example to lab.
2008-09-10 05:22:21 -07:00
Abdulaziz Ghuloum
c597e7a4b3
Added option for searching for socket and nanosleep in libraries
...
-lsocket and -lrt (makes it work on SunOS).
2008-09-08 14:43:47 -07:00
Abdulaziz Ghuloum
afc9bff07f
- added experimental pointer manipulation primitives.
2008-09-06 06:01:39 -07:00
Abdulaziz Ghuloum
814c797633
- removed bset/h instruction from the compiler (it was rarely used
...
and not implemented 100% correctly)
- fixed parameterize to allow (parameterize () def ... exp exp ...)
2008-09-06 04:17:20 -07:00
Abdulaziz Ghuloum
9b9464229a
- fixed how stack overflow check is performed (now using unsigned
...
arithmetic to compare the stack pointer with the redline).
- disabled stack overflow check elimination due to a bug in the
logic that assumes primitive calls are not recursive.
2008-08-13 22:28:22 -07:00
Abdulaziz Ghuloum
b9085e15da
- more work on trig functions
...
- mkstx now checks that double wraps are not merged incorrectly
2008-08-12 01:17:04 -07:00
Abdulaziz Ghuloum
476a0cb6d8
fixed small bug in rationalize
2008-08-11 13:38:28 -07:00
Abdulaziz Ghuloum
c64fda7619
fixed a few problems in geometric functions when they are passed
...
complex numbers or when they're passed real numbers but the results
are complex.
2008-08-11 10:37:05 -07:00
Abdulaziz Ghuloum
e58c53cca5
symbols containing unicode characters now print properly and respect
...
the print-unicode parameter.
2008-08-10 11:50:39 -07:00
Abdulaziz Ghuloum
fdca9ed33f
command line arguments are now interpreted as utf8 strings.
2008-08-10 11:33:10 -07:00
Abdulaziz Ghuloum
2ad6d9bddf
strings containing non-ascii characters are written using either
...
hex escaping or as-is depending on the value of the print-unicode
parameter.
2008-08-10 11:03:09 -07:00
Abdulaziz Ghuloum
22d216f9ed
- fixed a problem with loading an empty file.
...
- added ikarus.reader.annotated.ss to Makefile.am.
2008-08-10 10:46:24 -07:00
Abdulaziz Ghuloum
16284e6545
fixed a bug that might cause ikarus to crash in directory-list.
2008-08-10 10:37:39 -07:00
Abdulaziz Ghuloum
7bacb4a0a5
Added string-downcase and string-upcase. String-downcase does not
...
handle greek-final-sigma properly.
2008-08-09 07:12:22 -07:00
Abdulaziz Ghuloum
e24356eb4a
scheme-script is now its own program; it does not fork and exec
...
ikarus, and therefore does not interfere with ikarus's command line
parsing.
2008-08-09 05:47:44 -07:00
Abdulaziz Ghuloum
c5930ac113
exported enum-set?.
2008-08-08 08:29:18 -07:00