Matt Birkholz [Fri, 12 Aug 2011 18:26:21 +0000 (11:26 -0700)]
Punt 64bit GFile attributes and the gint64 type.
Matt Birkholz [Fri, 12 Aug 2011 18:21:54 +0000 (11:21 -0700)]
Factored gfile-open out of -read, -open-write and -enumerate-children.
Matt Birkholz [Thu, 11 Aug 2011 04:52:59 +0000 (21:52 -0700)]
Added global export gdirectory-read.
Moved directory reading code from tests/gtk/test-gport-operations.scm
to src/gtk/gio.scm. Defined a procedure to convert strings and
pathnames into absolute URIs and used it in the 3 global exports.
Matt Birkholz [Thu, 11 Aug 2011 00:34:45 +0000 (17:34 -0700)]
Mount GFiles as necessary, assuming no password is needed.
Matt Birkholz [Thu, 11 Aug 2011 00:31:05 +0000 (17:31 -0700)]
G-signal-connect now has an optional signal-name parameter.
Matt Birkholz [Thu, 11 Aug 2011 00:14:51 +0000 (17:14 -0700)]
C-peek-cstringp! now returns () at NULL on end of a strvec.
Matt Birkholz [Thu, 11 Aug 2011 00:10:41 +0000 (17:10 -0700)]
Warn, not die, if a callback is undefined.
Matt Birkholz [Tue, 9 Aug 2011 00:03:19 +0000 (17:03 -0700)]
Wrote analyze-file, for logs with these performance timings.
Matt Birkholz [Tue, 2 Aug 2011 19:51:33 +0000 (12:51 -0700)]
Punt the tty-get/set-interrupt-chars primitives.
Gtkio's signal forwarder breaks the assumptions in en/decode_interrupt
_handler. Rather than fix them, I punt the TTY-GET-INTERRUPT-CHARS
and TTY-SET-INTERRUPTS-CHARS! primitives. They were not used in The
Tree, not even by Edwin.
Matt Birkholz [Sun, 31 Jul 2011 23:54:22 +0000 (16:54 -0700)]
Punt HAVE_SIGACTION_SIGINFO_SIGNALS.
It seems that DEFUN_STD_HANDLER assumes HAVE_SIGACTION_SIGINFO_SIGNALS
is defined. Both definitions use Tsignal_handler_result, SIGINFO_T
and SIGCONTEXT_ARG_T.
Matt Birkholz [Sun, 31 Jul 2011 23:47:44 +0000 (16:47 -0700)]
Signal handlers can now make scheme_source runnable.
Previously the mask was always gc-only courtesy of call-alien, thus
pending_interrupts_p() was never true. This was masked by the select
timeout which also makes scheme_source runnable. Now that run-gtk
takes a timeout of -1, scheme_source_check needs to ignore the mask.
Matt Birkholz [Thu, 28 Jul 2011 16:22:32 +0000 (09:22 -0700)]
Abbreviate option loading-messages.
Matt Birkholz [Thu, 28 Jul 2011 05:18:22 +0000 (22:18 -0700)]
Factored out a <gio> class.
Matt Birkholz [Thu, 28 Jul 2011 00:04:25 +0000 (17:04 -0700)]
(integrate-external "string")
Matt Birkholz [Wed, 27 Jul 2011 22:52:50 +0000 (15:52 -0700)]
Avoid reading e.g. ../../src/runtime/.#genio.scm.
Matt Birkholz [Wed, 27 Jul 2011 21:19:50 +0000 (14:19 -0700)]
Use for-each iota; punt dotimes.
Matt Birkholz [Wed, 27 Jul 2011 21:18:27 +0000 (14:18 -0700)]
typo in last commit
Matt Birkholz [Wed, 27 Jul 2011 19:41:02 +0000 (12:41 -0700)]
Added test-gtk, test-gfile-operations.scm.
Matt Birkholz [Wed, 27 Jul 2011 19:38:55 +0000 (12:38 -0700)]
Wrapped GFileInfo, GFileEnumerator.
Matt Birkholz [Sun, 24 Jul 2011 15:40:58 +0000 (08:40 -0700)]
Split port and gport tests into separate procedures.
Matt Birkholz [Sun, 24 Jul 2011 15:31:49 +0000 (08:31 -0700)]
Forward async signals to the scheme_thread.
Tagged the relevant(?) signos with new signal_descriptor flag ASYNC.
Matt Birkholz [Thu, 21 Jul 2011 20:34:29 +0000 (13:34 -0700)]
Undo genio hack: external-string buffers.
Matt Birkholz [Thu, 21 Jul 2011 16:59:49 +0000 (09:59 -0700)]
g_malloc0 nulls GError*s so a GC-cleanup will not free junk.
Matt Birkholz [Thu, 21 Jul 2011 00:15:18 +0000 (17:15 -0700)]
Fixed GError GC-cleanup, again.
And integrated gerror->message back into create-pixbuf-loader-thread.
Matt Birkholz [Wed, 20 Jul 2011 22:17:48 +0000 (15:17 -0700)]
Rename central function per new file name.
Matt Birkholz [Wed, 20 Jul 2011 22:14:38 +0000 (15:14 -0700)]
Fixed GError GC-cleanup.
Matt Birkholz [Wed, 20 Jul 2011 22:13:44 +0000 (15:13 -0700)]
Reformat tracing; avoid hashing objects to be GC-cleaned.
Matt Birkholz [Wed, 20 Jul 2011 17:49:56 +0000 (10:49 -0700)]
Removed second appearance of "compiler" in SUBDIRS.
Matt Birkholz [Wed, 20 Jul 2011 17:48:44 +0000 (10:48 -0700)]
Use gdk_window_process_all_updates; keep animations moving.
Matt Birkholz [Wed, 20 Jul 2011 17:43:09 +0000 (10:43 -0700)]
Timeout -1 is forever. Turn off thread timer in toolkit.
Reworked scheme_source_prepare/check to implement timeout -1, reduce
calls to OS_real_time_clock, and improve tracing.
Matt Birkholz [Wed, 20 Jul 2011 17:36:54 +0000 (10:36 -0700)]
Use trace() for less obtrusive tracing.
Matt Birkholz [Wed, 20 Jul 2011 17:26:11 +0000 (10:26 -0700)]
Moved maybe-yield-gtk to main.scm.
Matt Birkholz [Wed, 20 Jul 2011 17:17:24 +0000 (10:17 -0700)]
Lighter-weight GError handling.
Keep a gerror-pointer in a gio stream's cancel-info to avoid MANY
mallocs/frees and gc-cleanup de-/registrations. Share gerror->message
code with gobject.scm's pixbuf loaders.
Matt Birkholz [Wed, 20 Jul 2011 16:29:49 +0000 (09:29 -0700)]
Rename test-{,g}port-performance.scm.
Matt Birkholz [Wed, 20 Jul 2011 16:24:18 +0000 (09:24 -0700)]
Added ->simple-pathname for c-including ../../whatnot.
Matt Birkholz [Wed, 20 Jul 2011 16:21:30 +0000 (09:21 -0700)]
Reformat trace messages some more.
Matt Birkholz [Wed, 20 Jul 2011 15:30:41 +0000 (08:30 -0700)]
Added blink? and spin? flags.
Matt Birkholz [Wed, 20 Jul 2011 15:29:34 +0000 (08:29 -0700)]
Reformat trace messages a wee bit.
Matt Birkholz [Sun, 17 Jul 2011 18:45:38 +0000 (11:45 -0700)]
Added g-output-streams, gc-cleanups, and a performance test.
Matt Birkholz [Sun, 17 Jul 2011 18:07:26 +0000 (11:07 -0700)]
Added maybe-yield-gtk, for callbacks that unblock threads.
Matt Birkholz [Sun, 17 Jul 2011 17:51:58 +0000 (10:51 -0700)]
Fixed gtk's compile-file dependencies.
Matt Birkholz [Sun, 17 Jul 2011 17:18:38 +0000 (10:18 -0700)]
Insert const AFTER qualified type, to qualify pointers.
Matt Birkholz [Sun, 17 Jul 2011 17:15:51 +0000 (10:15 -0700)]
External string buffers for generic-i/o-ports fix.
Matt Birkholz [Sun, 17 Jul 2011 16:42:41 +0000 (09:42 -0700)]
Fixed more const declarations.
Matt Birkholz [Sat, 16 Jul 2011 02:56:06 +0000 (19:56 -0700)]
Named the cleanup thunks.
Also threw without-interrupts around the use of a string, from
pango_font_description_to_string, that must be g_freed.
Matt Birkholz [Sat, 16 Jul 2011 01:21:08 +0000 (18:21 -0700)]
Added c-peek-bytes, c-poke-bytes. Recycle callback ids.
Made all such like procedures integrable. Added
registered-callback-count, to test for proper callback cleanup.
Matt Birkholz [Sat, 16 Jul 2011 00:46:01 +0000 (17:46 -0700)]
Allow no runnable threads nor timers.
The console thread may be reading from a GInputStream, i.e. waiting
for a callback to make it runnable.
Matt Birkholz [Sat, 16 Jul 2011 00:42:16 +0000 (17:42 -0700)]
Close-in/output-buffer now call source/sink close method.
Matt Birkholz [Sat, 16 Jul 2011 00:32:20 +0000 (17:32 -0700)]
Fixed start_gtk to be FALSE when gtk_init_check fails.
Matt Birkholz [Sat, 16 Jul 2011 00:27:40 +0000 (17:27 -0700)]
Fixed const declarations per Wiki's Const-correctness.
Matt Birkholz [Fri, 1 Jul 2011 23:38:46 +0000 (16:38 -0700)]
typo
Matt Birkholz [Wed, 22 Jun 2011 16:38:49 +0000 (09:38 -0700)]
Merge branch 'master' into Gtk
Matt Birkholz [Wed, 22 Jun 2011 16:35:28 +0000 (09:35 -0700)]
Implemented open-input-gfile using the GIO library.
Matt Birkholz [Wed, 22 Jun 2011 16:15:07 +0000 (09:15 -0700)]
Require FFI option. Punt compile-/run-time separation.
This eliminates unanalyzable (unCREFable) syntax transformers, and
compile-time imports.
Bind c-includes in (gtk) so that it does not need to be c-included in
every subpackage. This assumes compile-system is used, and that
gtk.scm/bin/com is loaded before subpackages are compiled.
Matt Birkholz [Wed, 22 Jun 2011 16:01:12 +0000 (09:01 -0700)]
Punt if-debugging syntax.
Matt Birkholz [Wed, 22 Jun 2011 15:50:56 +0000 (08:50 -0700)]
Added C declarations for GIO; created gtk/Includes/gio/.
Also created gtk/Includes/glib/. Moved randoms out of gtk.cdecl into
their "home" files, e.g. Includes/gtkscrolledwindow.cdecl.
Matt Birkholz [Wed, 22 Jun 2011 15:09:34 +0000 (08:09 -0700)]
External string buffers for generic-i/o-ports.
Added allocate-buffer-bytes with default make-string value, to fluid
let to make-external-string when appropriate, i.e. NOT in the cold
load. Not sure why it does not work in the cold load...
Hampered performance especially by replacing %substring-move! with
xsubstring-move!. The former integrates unrolled loops. Need a
%xsubstring-move! with all that, and open-coded
external-string-ref/set!.
Matt Birkholz [Wed, 22 Jun 2011 15:05:11 +0000 (08:05 -0700)]
Added xstring-byte-ref/set! for external string buffers.
To replace vector-8b-ref/set! in generic-i/o, to allow external string
buffers.
Matt Birkholz [Wed, 22 Jun 2011 15:01:38 +0000 (08:01 -0700)]
Use pathname-simplify to allow ../ in included paths.
Matt Birkholz [Wed, 22 Jun 2011 14:58:06 +0000 (07:58 -0700)]
Added %set-alien/address!, for gtk/gio.scm.
Needed to create an alien address from an external-string descriptor.
Chris Hanson [Tue, 21 Jun 2011 04:53:12 +0000 (21:53 -0700)]
Initial revision: a shell script to put on your PATH that runs an MIT Scheme application from the command line.
Chris Hanson [Mon, 20 Jun 2011 08:09:29 +0000 (01:09 -0700)]
Set SIGNAL_HANDLERS_CAN_USE_SCHEME_STACK under MacOS.
Matt Birkholz [Sun, 19 Jun 2011 18:53:48 +0000 (11:53 -0700)]
Punt fpu inits in i386/x86-64 assembler; add to savres.scm.
Matt Birkholz [Sun, 19 Jun 2011 18:18:26 +0000 (11:18 -0700)]
Unimplement BORKED_FENV.
Taylor R Campbell [Sat, 18 Jun 2011 22:22:46 +0000 (22:22 +0000)]
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/mit-scheme
Joe Marshall [Wed, 15 Jun 2011 04:44:35 +0000 (21:44 -0700)]
Revert unintended change.
Joe Marshall [Wed, 15 Jun 2011 04:33:54 +0000 (21:33 -0700)]
Revert unintended change.
Taylor R Campbell [Tue, 14 Jun 2011 03:28:23 +0000 (03:28 +0000)]
Fix calls to tcsetpgrp to avoid infinite loops on ENOSYS.
Joe Marshall [Mon, 13 Jun 2011 23:08:33 +0000 (16:08 -0700)]
Add ability to expand named-let as pure function.
Joe Marshall [Mon, 13 Jun 2011 23:07:02 +0000 (16:07 -0700)]
Fix missing call to loop in buffer-layout-visible?
Joe Marshall [Mon, 13 Jun 2011 23:04:27 +0000 (16:04 -0700)]
Remove list-ref and list-set! definitions (duplicates).
Joe Marshall [Mon, 13 Jun 2011 23:02:13 +0000 (16:02 -0700)]
Tweak integrations.
Joe Marshall [Mon, 13 Jun 2011 22:46:36 +0000 (15:46 -0700)]
Integrate DISCRIMINATE-PROCEDURE
Joe Marshall [Mon, 13 Jun 2011 22:42:07 +0000 (15:42 -0700)]
Add ability to warn about integrated operators used as arguments.
Joe Marshall [Mon, 13 Jun 2011 14:59:30 +0000 (07:59 -0700)]
Export list-set\!
Joe Marshall [Mon, 13 Jun 2011 14:58:29 +0000 (07:58 -0700)]
Define list-set\!
Joe Marshall [Mon, 13 Jun 2011 14:56:03 +0000 (07:56 -0700)]
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/mit-scheme
Matt Birkholz [Fri, 10 Jun 2011 16:07:00 +0000 (09:07 -0700)]
Merge branch 'master' into Gtk
Matt Birkholz [Fri, 10 Jun 2011 15:54:44 +0000 (08:54 -0700)]
Alienate_float_env. before callouts, after callbacks.
Matt Birkholz [Fri, 10 Jun 2011 15:53:12 +0000 (08:53 -0700)]
Fix compile-system's dependencies option.
Taylor R Campbell [Fri, 10 Jun 2011 00:33:50 +0000 (00:33 +0000)]
Fix use of the close system call.
When close returns, it guarantees that the file descriptor given will
be closed, even if it fails. (The documentation is extremely poor,
but this is what every operating system does.) Consequently, it is a
bug to retry close. Every use now either ignores the return value of
close or takes a specific action based on it; it is incorrect to use
STD_VOID_SYSTEM_CALL with close.
Some calls that ignore the return value really need to check for
EINTR and deliver pending interrupts, but I'll get to that later.
Joe Marshall [Thu, 9 Jun 2011 21:45:35 +0000 (14:45 -0700)]
Remove jrm cruft and speed things up.
Joe Marshall [Thu, 9 Jun 2011 21:31:40 +0000 (14:31 -0700)]
Remove limits on expansion of cons* and list. Improve apply expansion.
Joe Marshall [Thu, 9 Jun 2011 21:14:15 +0000 (14:14 -0700)]
Get rid of boot dependency on MEMQ.
Joe Marshall [Thu, 9 Jun 2011 20:52:56 +0000 (13:52 -0700)]
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/mit-scheme
Joe Marshall [Thu, 9 Jun 2011 20:52:35 +0000 (13:52 -0700)]
Re-order some code to eliminate forward references.
Matt Birkholz [Thu, 9 Jun 2011 17:15:43 +0000 (10:15 -0700)]
Merge branch 'master' into Gtk
Taylor R Campbell [Wed, 8 Jun 2011 18:23:31 +0000 (18:23 +0000)]
Omit some vestiges in nntp.scm.
Taylor R Campbell [Wed, 8 Jun 2011 18:21:07 +0000 (18:21 +0000)]
Fix order of arguments to HASH-TABLE/MODIFY!.
With any luck, nobody was using this except me outside the tree.
And it's not documented, so that nobody character will get what he
deserves.
Before:
(hash-table/modify! hash-table key
(lambda ()
...
a gigantic
heffable hoary herralump of
an expression
...)
tiny)
After:
(hash-table/modify! hash-table key tiny
(lambda ()
...
a gigantic
heffable hoary herralump of
an expression
...))
Taylor R Campbell [Wed, 8 Jun 2011 17:15:40 +0000 (17:15 +0000)]
Kludge up wrong-number-of-arguments error parsing for entities.
Before:
(min)
;The procedure #[compiled-procedure 11 (min "arith" #x16) #x1b1a #x1c8ac2] has been called with 1 argument; it requires at least 2 arguments.
After:
(min)
;The procedure #[arity-dispatched-procedure 11 min] has been called with 0 arguments; it requires at least 1 argument.
Screw cases be damned.
Taylor R Campbell [Wed, 8 Jun 2011 15:55:09 +0000 (15:55 +0000)]
Fix up bit-indexed integer operations.
. Fix sense of BIT-SET?.
. Add BIT-CLEAR?, for symmetry.
. Export forgotten TOGGLE-BIT.
. Add some tests for these operations.
Matt Birkholz [Tue, 7 Jun 2011 14:22:06 +0000 (07:22 -0700)]
Recognize GDK_MOD1_ as the char-bit:meta.
Joe Marshall [Mon, 6 Jun 2011 18:34:47 +0000 (11:34 -0700)]
Trivial cleanup.
Matt Birkholz [Mon, 6 Jun 2011 15:06:58 +0000 (08:06 -0700)]
Trigger-secondary-gc-daemons! every 100 GCs or so.
Matt Birkholz [Sun, 5 Jun 2011 15:11:39 +0000 (08:11 -0700)]
Genericize gdk keysyms; match Edwin's expectations.
Matt Birkholz [Thu, 2 Jun 2011 17:11:25 +0000 (10:11 -0700)]
Merge remote-tracking branch 'origin/master' into Gtk
Matt Birkholz [Thu, 2 Jun 2011 05:24:36 +0000 (22:24 -0700)]
Implement BORKED_FENV for i386.
Matt Birkholz [Thu, 2 Jun 2011 03:57:03 +0000 (20:57 -0700)]
Call gdk_threads_enter/leave, and gtk_main.
Matt Birkholz [Thu, 2 Jun 2011 03:54:13 +0000 (20:54 -0700)]
Alienate the floenv (make it FE_DFL_ENV) outside Scheme.
Matt Birkholz [Tue, 31 May 2011 01:34:07 +0000 (18:34 -0700)]
Dig keysyms out of the C declarations.