Taylor R. Campbell [Mon, 10 Sep 2007 17:18:24 +0000 (17:18 +0000)]
Simplify calculation of octet and line counts.
Taylor R. Campbell [Mon, 10 Sep 2007 16:27:31 +0000 (16:27 +0000)]
Update SAVE-RESOURCE method on file folders to reflect six-year-old
change of status symbol from FOLDER-MODIFIED to CACHE-MODIFIED.
Taylor R. Campbell [Mon, 10 Sep 2007 16:21:59 +0000 (16:21 +0000)]
Fix bug whereby MIME parser for multipart messages would omit text
from parts with no headers starting from the beginning until the first
blank line. Do this by changing MIME:PARSE-PARTS to handle the case
of properly headerless messages, which begin with an empty line.
Taylor R. Campbell [Sun, 9 Sep 2007 18:48:46 +0000 (18:48 +0000)]
In READ-CHAR-INTERNAL and READ-STRING-INTERNAL, write the result of
READ-STRING to the IMAP transcript port only if it is not an EOF
object.
Taylor R. Campbell [Sun, 9 Sep 2007 16:51:52 +0000 (16:51 +0000)]
Export Edwin variable MAIL-RELAY-HOST from (EDWIN SENDMAIL) package so
that it can actually be set in init files.
Taylor R. Campbell [Sun, 9 Sep 2007 16:36:50 +0000 (16:36 +0000)]
New Edwin variable MAIL-RELAY-SERVICE, to specify the service on which
to connect to the mail relay host.
Chris Hanson [Sun, 9 Sep 2007 03:09:38 +0000 (03:09 +0000)]
Change error message generated when an unmatched close parenthesis or
bracket is encountered.
Taylor R. Campbell [Tue, 4 Sep 2007 03:35:20 +0000 (03:35 +0000)]
Revive SPARC Solaris support:
- Do canonical host checking earlier in `microcode/configure.ac', so
that OS-dependent customization can insert options to `LDFLAGS' for
the configuration tests. Add `-lsocket -lnsl' to `LDFLAGS' in
Solaris; this is necessary to get at sockets, `gethostbyname', &c.
- Introduce a temporary variable `GNU_LD' in `microcode/configure.ac',
set among the OS-dependent customization, which determines whether or
not the GNU-specific `-export-dynamic' option should be passed to the
C linker. Solaris's `ld' will see that option as `-e' with an
argument of `xport-dynamic', and fail; it is safe to omit the option
altogether, however, because the default (`-z record') is the
behaviour we want.
- Use `-f' and `-d' instead of `-e' in `test' in shell scripts. `test'
in Solaris's `sh' does not recognize `-e'.
- Use a horrid, horrid, hack to imitate the non-standard `-ef' in
`test'. If there is a better (preferably standard, but widely
supported is good enough) way to do this than grovelling through the
output of `ls -l', please tell me!
- Fix the emulation of <stdbool.h> in "confshared.h". Solaris needs
this because if `-std=c99' is not passed to GCC, there is no
<stdbool.h>, but if `-std=c99' is passed to GCC, <ucontext.h>
elsewhere makes GCC choke.
- Use "config.h" in `unstackify.c', not <stdbool.h>.
- Use the `__sparc' cpp macro throughout the microcode to test for the
SPARC, not `sparc'.
- Update "uxtrap.h" to include support for SPARC Solaris.
Taylor R. Campbell [Fri, 24 Aug 2007 13:19:24 +0000 (13:19 +0000)]
Implement preliminary support for Dragonfly BSD, thanks to Francis Gudin.
Chris Hanson [Wed, 22 Aug 2007 17:26:38 +0000 (17:26 +0000)]
Don't call UNIX/CURRENT-UID on non-unix systems.
Chris Hanson [Fri, 17 Aug 2007 03:42:49 +0000 (03:42 +0000)]
Eliminate spurious newlines and indentation from
WRITE-RDF/TURTLE-TRIPLE.
Chris Hanson [Fri, 17 Aug 2007 03:41:48 +0000 (03:41 +0000)]
When merging prefix registries, ignore ":" prefixes.
Chris Hanson [Fri, 17 Aug 2007 02:34:29 +0000 (02:34 +0000)]
Implement BYTES-WRITTEN operation for REPL buffer ports.
Chris Hanson [Thu, 16 Aug 2007 14:42:08 +0000 (14:42 +0000)]
Implement WRITE-RDF/TURTLE-TRIPLE.
Chris Hanson [Tue, 14 Aug 2007 02:57:34 +0000 (02:57 +0000)]
Don't inline the first part of a pgroup unless the subject is inline
(which it might not be if it's a graph). Do inline if there's only
one pgroup and the object is linear. Suppress final dot in subgraph,
and don't add extra blank lines between triple groups.
Chris Hanson [Tue, 14 Aug 2007 02:18:54 +0000 (02:18 +0000)]
When parsing, record null prefix in prefix registry. Fix several
problems in Turtle output, caused by introduction of subgraphs.
Chris Hanson [Tue, 14 Aug 2007 01:05:02 +0000 (01:05 +0000)]
In sub-graph notation, final dot is optional.
Chris Hanson [Mon, 13 Aug 2007 17:17:47 +0000 (17:17 +0000)]
Add predicates and guarantees to validate components of a triple.
Chris Hanson [Sun, 12 Aug 2007 03:30:42 +0000 (03:30 +0000)]
Do _not_ do SAVE_CONT after returning from compiled code. Assume that
the compiled-code interface has left the stack in the correct state.
Chris Hanson [Fri, 10 Aug 2007 19:26:03 +0000 (19:26 +0000)]
Add EVENT:NEW-RDF-GRAPH.
Chris Hanson [Fri, 10 Aug 2007 19:08:44 +0000 (19:08 +0000)]
Allow URIs to be given to STRING and UTF8-STRING.
Chris Hanson [Fri, 10 Aug 2007 19:07:14 +0000 (19:07 +0000)]
Implement URI-PREFIX.
Chris Hanson [Fri, 10 Aug 2007 19:01:44 +0000 (19:01 +0000)]
Fix thinko in GUARANTEE-8-BIT-CHAR.
Chris Hanson [Fri, 10 Aug 2007 18:09:39 +0000 (18:09 +0000)]
Fix typo.
Chris Hanson [Fri, 10 Aug 2007 18:09:18 +0000 (18:09 +0000)]
Oops... remove old binding of SYMBOL-APPEND.
Chris Hanson [Fri, 10 Aug 2007 18:08:38 +0000 (18:08 +0000)]
Change SYMBOL to use UTF8-STRING. Change SYMBOL-APPEND to be an alias
for SYMBOL.
Chris Hanson [Fri, 10 Aug 2007 18:06:20 +0000 (18:06 +0000)]
Extend STRING to accept a large class of objects, each of which it
converts to a string. Implement UTF8-STRING to do the same thing for
the UTF-8 encoding.
Chris Hanson [Fri, 10 Aug 2007 17:57:27 +0000 (17:57 +0000)]
Implement 8-BIT-CHAR?. Move GUARANTEE-8-BIT-CHAR to "char.scm".
Taylor R. Campbell [Sun, 5 Aug 2007 23:57:30 +0000 (23:57 +0000)]
Handle an empty selector in WRITE-MIME-MESSAGE-BODY-PART on IMAP
messages by interpreting it as a selector of (TEXT). This lets IMAIL
save MIME entities that the whole message comprises, such as S/MIME
application/pkcs7-mime messages.
Taylor R. Campbell [Sun, 5 Aug 2007 08:26:00 +0000 (08:26 +0000)]
Clarify the method of WRITE-MIME-MESSAGE-BODY-PART specialized on
<MESSAGE> instances, and fix two bugs in it:
1. Message part selectors may be empty lists, in which case the whole
message body is meant; this may arise, for instance, when a MIME
message is sent with a wholly unrecognize Content-Type (like
application/pkcs7-mime), and the user tries to save the MIME entity
that represents the whole message to a file.
2. WRITE-HEADER-FIELDS takes a list of header field strings, not a
message. How this never arose, I don't know.
Taylor R. Campbell [Sun, 5 Aug 2007 08:08:40 +0000 (08:08 +0000)]
Escape the backslash within `#\=' in the error message `Misplaced #\=
in BASE64 input.' Perhaps the message should use quote marks, rather
than Scheme's #\ notation.
Chris Hanson [Thu, 2 Aug 2007 17:20:21 +0000 (17:20 +0000)]
Fix various problems with output of subgraphs. Eliminate whitespace
preceding trailing ".".
Chris Hanson [Thu, 2 Aug 2007 16:54:42 +0000 (16:54 +0000)]
Fix some thinkos in graph parsing.
Chris Hanson [Thu, 2 Aug 2007 04:44:19 +0000 (04:44 +0000)]
Add support for subject/object graphs using N3's {} notation.
Chris Hanson [Thu, 2 Aug 2007 04:40:41 +0000 (04:40 +0000)]
Implement RDF graph type. Hash cons all structures, including triples
and literals. Add event distributor EVENT:NEW-RDF-TRIPLE that is
called whenever a new triple is allocated; this is a hook for
indexing.
Chris Hanson [Thu, 2 Aug 2007 04:37:58 +0000 (04:37 +0000)]
Update for new name READ-RDF/TURTLE-FILE.
Chris Hanson [Thu, 2 Aug 2007 04:37:36 +0000 (04:37 +0000)]
Fix bug: hex-encoded string escapes were missing leading u/U.
Chris Hanson [Wed, 1 Aug 2007 00:15:44 +0000 (00:15 +0000)]
Eliminate obsolete RDF index.
Chris Hanson [Wed, 1 Aug 2007 00:13:37 +0000 (00:13 +0000)]
Simplify bnode-registry mechanism to use a single procedure.
Chris Hanson [Sun, 29 Jul 2007 16:20:00 +0000 (16:20 +0000)]
Fix type-coercion bug in FIXNUM-LSH. Eliminate abstraction-breaking
uses of UNSIGNED_FIXNUM_TO_LONG and LONG_TO_FIXNUM in logical
operations. Tweak for style.
Chris Hanson [Mon, 23 Jul 2007 04:52:48 +0000 (04:52 +0000)]
Fix WITH-LOADER-BASE-URI so that it correctly recognizes system
library URIs and generates relative references to them.
Chris Hanson [Mon, 23 Jul 2007 04:12:45 +0000 (04:12 +0000)]
Require all names to conform to XML namespace specification; this is a
consequence of conforming to the specification.
Chris Hanson [Mon, 23 Jul 2007 02:46:10 +0000 (02:46 +0000)]
Change XML name type to represent namespace URI as a string, and to
compare namespace URIs using string comparison.
Chris Hanson [Mon, 23 Jul 2007 01:43:41 +0000 (01:43 +0000)]
Allow relative URIs as namespace names.
Chris Hanson [Mon, 23 Jul 2007 01:39:48 +0000 (01:39 +0000)]
Allow representation of characters in class "Cs".
Chris Hanson [Mon, 23 Jul 2007 00:34:02 +0000 (00:34 +0000)]
Compare XML names as strings rather than as expanded names.
Taylor R. Campbell [Tue, 17 Jul 2007 04:40:19 +0000 (04:40 +0000)]
Fix bug in liarc object initialization: dload_initialize_file must
return the complete object name with the prefix in order for it to be
properly loaded. Formerly it was returning only the name without the
prefix, so the run-time system thought that the load failed, even
though it registered the object by its full URI, and so the top-level
forms would not be executed until the file was loaded a second time.
Chris Hanson [Sun, 15 Jul 2007 22:03:15 +0000 (22:03 +0000)]
Various style tweaks, mostly spacing and indentation.
Chris Hanson [Sun, 15 Jul 2007 21:40:04 +0000 (21:40 +0000)]
Ignore key events with unknown keysyms.
Chris Hanson [Mon, 9 Jul 2007 00:46:44 +0000 (00:46 +0000)]
Make sure left-shifted constants are always cast to unsigned long.
Chris Hanson [Sun, 8 Jul 2007 22:21:54 +0000 (22:21 +0000)]
Fix some indentation problems.
Taylor R. Campbell [Sun, 8 Jul 2007 16:49:12 +0000 (16:49 +0000)]
Fix bug in dynamic initialization code: the nonce must be quoted.
Otherwise the C compiler will choke on any file compiled for dynamic
loading. Was this ever tested??
This same change could be effected in liarc.h by changing
DECLARE_DYNAMIC_INITIALIZATION & DECLARE_DYNAMIC_OBJECT_INITIALIZATION
so that they generate the line
const char dload_nonce [] = #nonce;
rather than
const char dload_nonce [] = nonce;
Taylor R. Campbell [Sun, 8 Jul 2007 06:37:31 +0000 (06:37 +0000)]
Work around bug lurking after change to store buffer contents in
external strings: %GROUP-WRITE, called in WRITE-MIME-MESSAGE-BODY-1,
passes along an external string to the writer procedure, but
ENCODE-QUOTED-PRINTABLE:UPDATE expects an internal string. Copy the
string into the heap for now with XSUBSTRING, rather than fixing the
MIME encoder to accept external strings.
Chris Hanson [Sat, 7 Jul 2007 17:22:19 +0000 (17:22 +0000)]
Implement and use EOF-OBJECT procedure.
Chris Hanson [Sat, 7 Jul 2007 17:21:38 +0000 (17:21 +0000)]
Rewrite OS/PARSE-PATH-STRING to treat multiple adjacent backslashes as
equivalent to a single backslash. (Thanks to Matthew Halfant for
noticing this.)
Chris Hanson [Sat, 7 Jul 2007 17:20:12 +0000 (17:20 +0000)]
Eliminate unbound-variable reference.
Chris Hanson [Sat, 30 Jun 2007 23:16:12 +0000 (23:16 +0000)]
Don't depend on -i and +i syntax in number parser.
Chris Hanson [Sat, 23 Jun 2007 05:56:04 +0000 (05:56 +0000)]
Explicitly specify mit-scheme-native when that's intended.
Chris Hanson [Sat, 23 Jun 2007 05:47:44 +0000 (05:47 +0000)]
For native system, install executable as mit-scheme-native rather than
just mit-scheme.
Taylor R. Campbell [Fri, 22 Jun 2007 21:25:55 +0000 (21:25 +0000)]
Fix thinko in recent change: || in C yields 1 or 0, not the first
non-zero value.
Taylor R. Campbell [Fri, 22 Jun 2007 20:18:58 +0000 (20:18 +0000)]
Rework mmap_heap_malloc so that it checks /proc/<pid>/maps only on
Linux, and on other systems just goes ahead and tries a fixed map.
Previously, mmap_heap_malloc would try a fixed map, and if it failed,
try an unfixed map; then it was changed so that it would try a fixed
map only if it knew there was a good address. I think that this only
affects Linux, so on other systems it will again try a fixed map first,
and an unfixed map only if that fails.
Taylor R. Campbell [Fri, 22 Jun 2007 18:46:53 +0000 (18:46 +0000)]
Fix typo in recent change for OpenBSD: DO_GCC_TESTS, not DO_GCC_TEST.
Taylor R. Campbell [Fri, 22 Jun 2007 08:09:25 +0000 (08:09 +0000)]
Add initial trivial configuration for OpenBSD.
This works well enough to build Scheme with liarc; whether there are
other bugs lurking, I don't know, but I imagine that it is probably OK.
Chris Hanson [Fri, 22 Jun 2007 05:18:41 +0000 (05:18 +0000)]
Use --library option with boot compiler to override an environment
variable that misidentifies the library directory.
Chris Hanson [Fri, 22 Jun 2007 02:31:22 +0000 (02:31 +0000)]
Eliminate the use of the (non-POSIX) make variable $^. Prevent
"utabmd.bin" from being a microcode "make all" dependency when
configured for liarc.
Chris Hanson [Fri, 22 Jun 2007 02:29:24 +0000 (02:29 +0000)]
Force the use of mit-scheme-c when configuring for liarc-to-native
compilation.
Chris Hanson [Fri, 22 Jun 2007 02:27:48 +0000 (02:27 +0000)]
Don't use ASSQ with all interrupts off -- it can generate an unbounded
amount of garbage and overflow the heap.
Chris Hanson [Thu, 21 Jun 2007 22:39:21 +0000 (22:39 +0000)]
Fix typo: "liarcc" -> "liarc".
Chris Hanson [Thu, 21 Jun 2007 16:55:43 +0000 (16:55 +0000)]
Don't align heap_start and constant_start when doing DISK-SAVE. This
is totally wrong -- I can't imagine why it ever worked.
Taylor R. Campbell [Thu, 21 Jun 2007 06:17:16 +0000 (06:17 +0000)]
On OS X, for dynamically loadable modules, use `-bundle', not
`-dynamiclib' when invoking `ld'. The main difference is that dylibs
don't work for our purposes on older versions of OS X, whereas bundles
do, and are generally recommended for these purposes. I've forgotten
the technical details.
Chris Hanson [Tue, 19 Jun 2007 00:11:57 +0000 (00:11 +0000)]
Prevent liarc from recompiling files that are up to date.
Chris Hanson [Mon, 18 Jun 2007 23:58:40 +0000 (23:58 +0000)]
Prevent liarc from recompiling files that are up to date.
Chris Hanson [Mon, 18 Jun 2007 17:31:05 +0000 (17:31 +0000)]
Fix two bugs in the implementation of index-fixnum type checks.
Chris Hanson [Sun, 17 Jun 2007 18:45:13 +0000 (18:45 +0000)]
Remove makefiles_created on maintainer-clean.
Chris Hanson [Sun, 17 Jun 2007 16:54:35 +0000 (16:54 +0000)]
Change system ID for LIAR to show arch.
Chris Hanson [Sat, 16 Jun 2007 02:32:22 +0000 (02:32 +0000)]
Remove obsolete #defines that cause trouble for older gcc.
Chris Hanson [Sat, 16 Jun 2007 02:14:44 +0000 (02:14 +0000)]
Don't regenerate makefiles if they are already present and correct.
Chris Hanson [Fri, 15 Jun 2007 19:24:57 +0000 (19:24 +0000)]
Update for LIARC and other changes.
Chris Hanson [Fri, 15 Jun 2007 18:09:15 +0000 (18:09 +0000)]
Make changes to support maintenance of liarc with installed liarc.
Simplify top-level makefile. Clean up boot-root and stamp files after
finishing cross compilation.
Chris Hanson [Fri, 15 Jun 2007 18:07:28 +0000 (18:07 +0000)]
If using installed liarc compiler, also use its utilities.
Chris Hanson [Fri, 15 Jun 2007 18:05:34 +0000 (18:05 +0000)]
Eliminate now-unneeded "sos" link in "lib/".
Chris Hanson [Fri, 15 Jun 2007 03:41:35 +0000 (03:41 +0000)]
Get native-from-liarc compilation working (finally).
Chris Hanson [Fri, 15 Jun 2007 03:40:21 +0000 (03:40 +0000)]
Create more flexible set of command functions in "etc/functions.sh",
and change the shell files to use them.
Chris Hanson [Thu, 14 Jun 2007 17:41:10 +0000 (17:41 +0000)]
Eliminate now-unused procedures to finish cross compilation.
Chris Hanson [Thu, 14 Jun 2007 17:39:26 +0000 (17:39 +0000)]
Rename top-level procedures to FINISH-CROSS-COMPILATION:foo, and add
new procedure FINISH-CROSS-COMPILATION:DIRECTORY. Rewrite to update
and style.
Chris Hanson [Thu, 14 Jun 2007 13:31:33 +0000 (13:31 +0000)]
Eliminate requirement that fasload files have the same
HEAP_IN_LOW_MEMORY state as the microcode loading them.
Chris Hanson [Wed, 13 Jun 2007 13:37:03 +0000 (13:37 +0000)]
Change SOS so that it's not a boot bundle. Use cross compiler when
building native system with liarc.
Chris Hanson [Wed, 13 Jun 2007 13:35:38 +0000 (13:35 +0000)]
Resurrect the cross compiler.
Chris Hanson [Wed, 13 Jun 2007 13:34:47 +0000 (13:34 +0000)]
Fix thinko: OBJECT-FILE-PREFIX must always be a URI.
Chris Hanson [Mon, 11 Jun 2007 17:49:35 +0000 (17:49 +0000)]
Delete description of LOAD/DEFAULT-TYPES which has been removed from
the system.
Chris Hanson [Sun, 10 Jun 2007 18:29:55 +0000 (18:29 +0000)]
Initial revision.
Chris Hanson [Sat, 9 Jun 2007 02:42:35 +0000 (02:42 +0000)]
Implement COMPILER-MAKE-FILE to determine the correct "make" file to
load based on the contents of the "compiler/machine" symlink.
Chris Hanson [Sat, 9 Jun 2007 02:38:06 +0000 (02:38 +0000)]
Eliminate COMPILE-BOOTSTRAP-3 by moving its contents into C-PREPARE
and NATIVE-PREPARE, each of which needs more specific initialization.
Chris Hanson [Sat, 9 Jun 2007 01:22:56 +0000 (01:22 +0000)]
Rationalize arrangement of library directory. Rename "options" to
"runtime"; move contents of "edwin/autoload" and "edwin/etc" to
"edwin" and eliminate those now-empty directories; and eliminate "SRC"
by moving its contents into "edwin" and "runtime".
Chris Hanson [Sat, 9 Jun 2007 01:19:57 +0000 (01:19 +0000)]
Make sure "sos" is consistently treated as a boot dir.
Chris Hanson [Sat, 9 Jun 2007 01:19:14 +0000 (01:19 +0000)]
Add "--stack 200" to compiler options.
Chris Hanson [Fri, 8 Jun 2007 06:04:15 +0000 (06:04 +0000)]
Redesign the liarc compilation strategy again. The new strategy has
two features: (1) it uses a shell script to control the compilation
sequence, rather than trying to get make to do the job; and (2) it
creates the second bootstrap compiler by installing it into a
subdirectory, which isolates it from the state of the build tree.
Chris Hanson [Fri, 8 Jun 2007 05:58:53 +0000 (05:58 +0000)]
Don't use WITH-LOADER-BASE-URI here -- it doesn't work correctly. For
the moment, I'm reverting the change, until I figure out the right
fix.
Chris Hanson [Thu, 7 Jun 2007 15:12:17 +0000 (15:12 +0000)]
Export ADD-PRIMITIVE-GC-DAEMON! to global.
Chris Hanson [Thu, 7 Jun 2007 15:11:24 +0000 (15:11 +0000)]
Eliminate trailing whitespace.