mit-scheme.git
13 years agoMerge branch 'master' of ssh://git.sv.gnu.org/srv/git/mit-scheme into Gtk
Matt Birkholz [Fri, 19 Aug 2011 02:50:05 +0000 (19:50 -0700)]
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/mit-scheme into Gtk

13 years agoAdded c-peek-bytes, c-poke-bytes.
Matt Birkholz [Fri, 19 Aug 2011 02:42:36 +0000 (19:42 -0700)]
Added c-peek-bytes, c-poke-bytes.

13 years agoMoved outf-console to -error (stderr); fiddled FFI debugging.
Matt Birkholz [Fri, 19 Aug 2011 02:17:53 +0000 (19:17 -0700)]
Moved outf-console to -error (stderr); fiddled FFI debugging.

13 years agoc-peek-cstringp: Return () when the char* is NULL.
Matt Birkholz [Fri, 19 Aug 2011 01:52:18 +0000 (18:52 -0700)]
c-peek-cstringp: Return () when the char* is NULL.

13 years agoMerge branch 'master' of ssh://git.sv.gnu.org/srv/git/mit-scheme into Gtk
Matt Birkholz [Thu, 18 Aug 2011 23:31:45 +0000 (16:31 -0700)]
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/mit-scheme into Gtk

13 years agoWarn, not die, when a callback or constant is undefined.
Matt Birkholz [Thu, 18 Aug 2011 18:34:55 +0000 (11:34 -0700)]
Warn, not die, when a callback or constant is undefined.

13 years agoInsert const AFTER qualified type, to qualify pointers.
Matt Birkholz [Thu, 18 Aug 2011 18:31:10 +0000 (11:31 -0700)]
Insert const AFTER qualified type, to qualify pointers.

13 years agoAllow ../../ in .cdecl include statements.
Matt Birkholz [Thu, 18 Aug 2011 18:28:54 +0000 (11:28 -0700)]
Allow ../../ in .cdecl include statements.

13 years agoAdded prompt-for-string and call-with-pass-phrase.
Matt Birkholz [Thu, 18 Aug 2011 18:27:53 +0000 (11:27 -0700)]
Added prompt-for-string and call-with-pass-phrase.

13 years agoMerge remote-tracking branch 'origin/master' into Gtk
Matt Birkholz [Wed, 17 Aug 2011 22:17:05 +0000 (15:17 -0700)]
Merge remote-tracking branch 'origin/master' into Gtk

13 years agoDid not need the signal-name argument for g-signal-connect.
Matt Birkholz [Wed, 17 Aug 2011 22:02:15 +0000 (15:02 -0700)]
Did not need the signal-name argument for g-signal-connect.

13 years agoSupport GFile mounts that need a username and password.
Matt Birkholz [Wed, 17 Aug 2011 21:55:11 +0000 (14:55 -0700)]
Support GFile mounts that need a username and password.

13 years agoAdded missing gc-cleanup for <g-mount-operation>s.
Matt Birkholz [Wed, 17 Aug 2011 21:45:15 +0000 (14:45 -0700)]
Added missing gc-cleanup for <g-mount-operation>s.

13 years agoUse map! where possible, and e.g. bitwise-ior vs. bitstrings.
Matt Birkholz [Wed, 17 Aug 2011 21:34:59 +0000 (14:34 -0700)]
Use map! where possible, and e.g. bitwise-ior vs. bitstrings.

13 years agoAdded prompt-for-string and call-with-pass-phrase.
Matt Birkholz [Wed, 17 Aug 2011 21:19:32 +0000 (14:19 -0700)]
Added prompt-for-string and call-with-pass-phrase.

13 years agoWarn of undefined C-enum constants; do not error.
Matt Birkholz [Tue, 16 Aug 2011 22:16:30 +0000 (15:16 -0700)]
Warn of undefined C-enum constants; do not error.

13 years agoOutf-console is now outf-error, writing to stderr.
Matt Birkholz [Tue, 16 Aug 2011 21:22:43 +0000 (14:22 -0700)]
Outf-console is now outf-error, writing to stderr.

13 years agoFactored gfile-close out of -stream-close and -enumerator-close.
Matt Birkholz [Fri, 12 Aug 2011 19:15:44 +0000 (12:15 -0700)]
Factored gfile-close out of -stream-close and -enumerator-close.

13 years agoFactored gfile-open out of gfile-query-info.
Matt Birkholz [Fri, 12 Aug 2011 18:59:48 +0000 (11:59 -0700)]
Factored gfile-open out of gfile-query-info.

13 years agoPunt 64bit GFile attributes and the gint64 type.
Matt Birkholz [Fri, 12 Aug 2011 18:26:21 +0000 (11:26 -0700)]
Punt 64bit GFile attributes and the gint64 type.

13 years agoFactored gfile-open out of -read, -open-write and -enumerate-children.
Matt Birkholz [Fri, 12 Aug 2011 18:21:54 +0000 (11:21 -0700)]
Factored gfile-open out of -read, -open-write and -enumerate-children.

13 years agoAdded global export gdirectory-read.
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.

13 years agoMount GFiles as necessary, assuming no password is needed.
Matt Birkholz [Thu, 11 Aug 2011 00:34:45 +0000 (17:34 -0700)]
Mount GFiles as necessary, assuming no password is needed.

13 years agoG-signal-connect now has an optional signal-name parameter.
Matt Birkholz [Thu, 11 Aug 2011 00:31:05 +0000 (17:31 -0700)]
G-signal-connect now has an optional signal-name parameter.

13 years agoC-peek-cstringp! now returns () at NULL on end of a strvec.
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.

13 years agoWarn, not die, if a callback is undefined.
Matt Birkholz [Thu, 11 Aug 2011 00:10:41 +0000 (17:10 -0700)]
Warn, not die, if a callback is undefined.

13 years agoWrote analyze-file, for logs with these performance timings.
Matt Birkholz [Tue, 9 Aug 2011 00:03:19 +0000 (17:03 -0700)]
Wrote analyze-file, for logs with these performance timings.

13 years agoPunt the tty-get/set-interrupt-chars primitives.
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.

13 years agoPunt HAVE_SIGACTION_SIGINFO_SIGNALS.
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.

13 years agoFix call to COMBINATION/MAKE in sf/reduct.scm.
Taylor R Campbell [Sun, 31 Jul 2011 23:48:20 +0000 (23:48 +0000)]
Fix call to COMBINATION/MAKE in sf/reduct.scm.

13 years agoSignal handlers can now make scheme_source runnable.
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.

13 years agoInclude osscheme.h in flonum.c for error_unimplemented_primitive.
Taylor R Campbell [Sun, 31 Jul 2011 23:27:08 +0000 (23:27 +0000)]
Include osscheme.h in flonum.c for error_unimplemented_primitive.

(What's error_unimplemented_primitive doing there?)

13 years agoFix {REDUCE,REPLACE}-OPERATOR declaration after jrm's sf rototill.
Taylor R Campbell [Sun, 31 Jul 2011 23:24:43 +0000 (23:24 +0000)]
Fix {REDUCE,REPLACE}-OPERATOR declaration after jrm's sf rototill.

13 years agoAbbreviate option loading-messages.
Matt Birkholz [Thu, 28 Jul 2011 16:22:32 +0000 (09:22 -0700)]
Abbreviate option loading-messages.

13 years agoFactored out a <gio> class.
Matt Birkholz [Thu, 28 Jul 2011 05:18:22 +0000 (22:18 -0700)]
Factored out a <gio> class.

13 years ago(integrate-external "string")
Matt Birkholz [Thu, 28 Jul 2011 00:04:25 +0000 (17:04 -0700)]
(integrate-external "string")

13 years agoAvoid reading e.g. ../../src/runtime/.#genio.scm.
Matt Birkholz [Wed, 27 Jul 2011 22:52:50 +0000 (15:52 -0700)]
Avoid reading e.g. ../../src/runtime/.#genio.scm.

13 years agoUse for-each iota; punt dotimes.
Matt Birkholz [Wed, 27 Jul 2011 21:19:50 +0000 (14:19 -0700)]
Use for-each iota; punt dotimes.

13 years agotypo in last commit
Matt Birkholz [Wed, 27 Jul 2011 21:18:27 +0000 (14:18 -0700)]
typo in last commit

13 years agoAdded test-gtk, test-gfile-operations.scm.
Matt Birkholz [Wed, 27 Jul 2011 19:41:02 +0000 (12:41 -0700)]
Added test-gtk, test-gfile-operations.scm.

13 years agoWrapped GFileInfo, GFileEnumerator.
Matt Birkholz [Wed, 27 Jul 2011 19:38:55 +0000 (12:38 -0700)]
Wrapped GFileInfo, GFileEnumerator.

13 years agoSplit port and gport tests into separate procedures.
Matt Birkholz [Sun, 24 Jul 2011 15:40:58 +0000 (08:40 -0700)]
Split port and gport tests into separate procedures.

13 years agoForward async signals to the scheme_thread.
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.

13 years agoUndo genio hack: external-string buffers.
Matt Birkholz [Thu, 21 Jul 2011 20:34:29 +0000 (13:34 -0700)]
Undo genio hack: external-string buffers.

13 years agog_malloc0 nulls GError*s so a GC-cleanup will not free junk.
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.

13 years agoFixed GError GC-cleanup, again.
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.

13 years agoRename central function per new file name.
Matt Birkholz [Wed, 20 Jul 2011 22:17:48 +0000 (15:17 -0700)]
Rename central function per new file name.

13 years agoFixed GError GC-cleanup.
Matt Birkholz [Wed, 20 Jul 2011 22:14:38 +0000 (15:14 -0700)]
Fixed GError GC-cleanup.

13 years agoReformat tracing; avoid hashing objects to be GC-cleaned.
Matt Birkholz [Wed, 20 Jul 2011 22:13:44 +0000 (15:13 -0700)]
Reformat tracing; avoid hashing objects to be GC-cleaned.

13 years agoRemoved second appearance of "compiler" in SUBDIRS.
Matt Birkholz [Wed, 20 Jul 2011 17:49:56 +0000 (10:49 -0700)]
Removed second appearance of "compiler" in SUBDIRS.

13 years agoUse gdk_window_process_all_updates; keep animations moving.
Matt Birkholz [Wed, 20 Jul 2011 17:48:44 +0000 (10:48 -0700)]
Use gdk_window_process_all_updates; keep animations moving.

13 years agoTimeout -1 is forever. Turn off thread timer in toolkit.
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.

13 years agoUse trace() for less obtrusive tracing.
Matt Birkholz [Wed, 20 Jul 2011 17:36:54 +0000 (10:36 -0700)]
Use trace() for less obtrusive tracing.

13 years agoMoved maybe-yield-gtk to main.scm.
Matt Birkholz [Wed, 20 Jul 2011 17:26:11 +0000 (10:26 -0700)]
Moved maybe-yield-gtk to main.scm.

13 years agoLighter-weight GError handling.
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.

13 years agoRename test-{,g}port-performance.scm.
Matt Birkholz [Wed, 20 Jul 2011 16:29:49 +0000 (09:29 -0700)]
Rename test-{,g}port-performance.scm.

13 years agoAdded ->simple-pathname for c-including ../../whatnot.
Matt Birkholz [Wed, 20 Jul 2011 16:24:18 +0000 (09:24 -0700)]
Added ->simple-pathname for c-including ../../whatnot.

13 years agoReformat trace messages some more.
Matt Birkholz [Wed, 20 Jul 2011 16:21:30 +0000 (09:21 -0700)]
Reformat trace messages some more.

13 years agoAdded blink? and spin? flags.
Matt Birkholz [Wed, 20 Jul 2011 15:30:41 +0000 (08:30 -0700)]
Added blink? and spin? flags.

13 years agoReformat trace messages a wee bit.
Matt Birkholz [Wed, 20 Jul 2011 15:29:34 +0000 (08:29 -0700)]
Reformat trace messages a wee bit.

13 years agoAdded g-output-streams, gc-cleanups, and a performance test.
Matt Birkholz [Sun, 17 Jul 2011 18:45:38 +0000 (11:45 -0700)]
Added g-output-streams, gc-cleanups, and a performance test.

13 years agoAdded maybe-yield-gtk, for callbacks that unblock threads.
Matt Birkholz [Sun, 17 Jul 2011 18:07:26 +0000 (11:07 -0700)]
Added maybe-yield-gtk, for callbacks that unblock threads.

13 years agoFixed gtk's compile-file dependencies.
Matt Birkholz [Sun, 17 Jul 2011 17:51:58 +0000 (10:51 -0700)]
Fixed gtk's compile-file dependencies.

13 years agoInsert const AFTER qualified type, to qualify pointers.
Matt Birkholz [Sun, 17 Jul 2011 17:18:38 +0000 (10:18 -0700)]
Insert const AFTER qualified type, to qualify pointers.

13 years agoExternal string buffers for generic-i/o-ports fix.
Matt Birkholz [Sun, 17 Jul 2011 17:15:51 +0000 (10:15 -0700)]
External string buffers for generic-i/o-ports fix.

13 years agoFixed more const declarations.
Matt Birkholz [Sun, 17 Jul 2011 16:42:41 +0000 (09:42 -0700)]
Fixed more const declarations.

13 years agoNamed the cleanup thunks.
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.

13 years agoAdded c-peek-bytes, c-poke-bytes. Recycle callback ids.
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.

13 years agoAllow no runnable threads nor timers.
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.

13 years agoClose-in/output-buffer now call source/sink close method.
Matt Birkholz [Sat, 16 Jul 2011 00:42:16 +0000 (17:42 -0700)]
Close-in/output-buffer now call source/sink close method.

13 years agoFixed start_gtk to be FALSE when gtk_init_check fails.
Matt Birkholz [Sat, 16 Jul 2011 00:32:20 +0000 (17:32 -0700)]
Fixed start_gtk to be FALSE when gtk_init_check fails.

13 years agoFixed const declarations per Wiki's Const-correctness.
Matt Birkholz [Sat, 16 Jul 2011 00:27:40 +0000 (17:27 -0700)]
Fixed const declarations per Wiki's Const-correctness.

13 years agoFixed typos in comment.
Arthur A. Gleckler [Wed, 6 Jul 2011 02:30:15 +0000 (19:30 -0700)]
Fixed typos in comment.

13 years agoRecode PATTERN-LOOKUP-1 and PATTERN-VARIABLES in direct (non-CPS) style.
Joe Marshall [Wed, 6 Jul 2011 01:06:37 +0000 (18:06 -0700)]
Recode PATTERN-LOOKUP-1 and PATTERN-VARIABLES in direct (non-CPS) style.

13 years agotypo
Matt Birkholz [Fri, 1 Jul 2011 23:38:46 +0000 (16:38 -0700)]
typo

13 years agoChange default initializers from (lambda () #f) to #f.
Joe Marshall [Fri, 1 Jul 2011 16:34:58 +0000 (09:34 -0700)]
Change default initializers from (lambda () #f) to #f.

13 years agoAllow #F to be a legal record and structure initialization form equivalent to (lambda...
Joe Marshall [Fri, 1 Jul 2011 16:31:46 +0000 (09:31 -0700)]
Allow #F to be a legal record and structure initialization form equivalent to (lambda () #f).

13 years agoMerge branch 'master' of ssh://git.sv.gnu.org/srv/git/mit-scheme
Joe Marshall [Mon, 27 Jun 2011 16:09:08 +0000 (09:09 -0700)]
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/mit-scheme

13 years agoMerge branch 'release-9.1'
Chris Hanson [Mon, 27 Jun 2011 03:16:57 +0000 (20:16 -0700)]
Merge branch 'release-9.1'

13 years agoMove any old .app file out of the way.
Chris Hanson [Mon, 27 Jun 2011 03:05:24 +0000 (20:05 -0700)]
Move any old .app file out of the way.

13 years agoMerge branch 'master' of ssh://git.sv.gnu.org/srv/git/mit-scheme
Joe Marshall [Mon, 27 Jun 2011 02:52:29 +0000 (19:52 -0700)]
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/mit-scheme

13 years agoFix typo in previous change.
Chris Hanson [Mon, 27 Jun 2011 02:20:31 +0000 (19:20 -0700)]
Fix typo in previous change.

13 years agoFix compiler warning.
Chris Hanson [Mon, 27 Jun 2011 01:18:45 +0000 (18:18 -0700)]
Fix compiler warning.

13 years agoAdd undocumented command-line option to enable partial C99 support.
Chris Hanson [Mon, 27 Jun 2011 01:13:58 +0000 (18:13 -0700)]
Add undocumented command-line option to enable partial C99 support.

13 years agoDefine HAVE_CONFIG_H.
Chris Hanson [Mon, 27 Jun 2011 00:38:15 +0000 (17:38 -0700)]
Define HAVE_CONFIG_H.

13 years agoDon't use expm1 and log1p unless they're available.
Chris Hanson [Mon, 27 Jun 2011 00:34:34 +0000 (17:34 -0700)]
Don't use expm1 and log1p unless they're available.

13 years agoAdd floenv to list of files.
Chris Hanson [Mon, 27 Jun 2011 00:34:02 +0000 (17:34 -0700)]
Add floenv to list of files.

13 years agoFix argument widths under windows.
Chris Hanson [Mon, 27 Jun 2011 00:24:48 +0000 (17:24 -0700)]
Fix argument widths under windows.

13 years agoReorder for consistency.
Chris Hanson [Mon, 27 Jun 2011 00:23:22 +0000 (17:23 -0700)]
Reorder for consistency.

13 years agoProvide values for SIZEOF_OFF_T and SIZEOF_TIME_T.
Chris Hanson [Mon, 27 Jun 2011 00:22:35 +0000 (17:22 -0700)]
Provide values for SIZEOF_OFF_T and SIZEOF_TIME_T.

13 years agoFix Primitive_GC to request the right amount of space from the GC.
Taylor R Campbell [Sun, 26 Jun 2011 20:29:15 +0000 (20:29 +0000)]
Fix Primitive_GC to request the right amount of space from the GC.

New variable Free_primitive is set during primitive invocations to
the value of Free on entry, so that Primitive_GC can find the total
amount of space requested so far from the GC, rather than the amount
currently being requested.  Avoids endless GC loops, particularly in,
e.g., bignum primitives.

13 years agoMove interrupt branch from start to end of block, on x86-64.
Taylor R Campbell [Sun, 26 Jun 2011 19:45:40 +0000 (19:45 +0000)]
Move interrupt branch from start to end of block, on x86-64.

13 years agoUpdate x86-64/decls.scm to mention back/checks.scm.
Taylor R Campbell [Sun, 26 Jun 2011 19:43:20 +0000 (19:43 +0000)]
Update x86-64/decls.scm to mention back/checks.scm.

13 years agoUpdate i386/decls.scm to mention back/checks.scm.
Taylor R Campbell [Sun, 26 Jun 2011 19:43:04 +0000 (19:43 +0000)]
Update i386/decls.scm to mention back/checks.scm.

13 years agoMove interrupt branch from start to end of block, on i386.
Taylor R Campbell [Sun, 26 Jun 2011 19:39:09 +0000 (19:39 +0000)]
Move interrupt branch from start to end of block, on i386.

This makes it a forward branch rather than a reverse branch, so that
the CPU's branch predictor will predict it not taken rather than taken
by default.

Reduces time to compile the whole system by about 20%.  This
performance increase will apply to any compiled code, independent of
what sort of computation it does.

13 years agoUse MI interrupt check analysis in i386 back end.
Taylor R Campbell [Sun, 26 Jun 2011 18:33:12 +0000 (18:33 +0000)]
Use MI interrupt check analysis in i386 back end.

Nuke MD copy of it in i386/rules3.scm.

13 years agoFix typos in compiler/back/checks.scm.
Taylor R Campbell [Sun, 26 Jun 2011 18:31:59 +0000 (18:31 +0000)]
Fix typos in compiler/back/checks.scm.

13 years agoUse SYMBOL-NAME, not SYMBOL->STRING, in keyword.scm.
Taylor R Campbell [Sun, 26 Jun 2011 16:09:03 +0000 (16:09 +0000)]
Use SYMBOL-NAME, not SYMBOL->STRING, in keyword.scm.

13 years agoUse %READ-CHAR/%WRITE-CHAR in coding conversions.
Taylor R Campbell [Sat, 25 Jun 2011 19:28:48 +0000 (19:28 +0000)]
Use %READ-CHAR/%WRITE-CHAR in coding conversions.

Elides redundant port checks.

13 years agoFix out-of-place declarations.
Chris Hanson [Sun, 26 Jun 2011 09:27:03 +0000 (02:27 -0700)]
Fix out-of-place declarations.