aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure18
-rw-r--r--configure.ac2
-rw-r--r--configure.ac.pamphlet2
-rw-r--r--src/ChangeLog8
-rw-r--r--src/algebra/Makefile.in6
-rw-r--r--src/algebra/Makefile.pamphlet6
-rw-r--r--src/algebra/exposed.lsp.pamphlet1
-rw-r--r--src/algebra/net.spad.pamphlet43
8 files changed, 73 insertions, 13 deletions
diff --git a/configure b/configure
index aa64c625..8ccd2747 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.60 for OpenAxiom 1.3.0-2008-10-18.
+# Generated by GNU Autoconf 2.60 for OpenAxiom 1.3.0-2008-10-21.
#
# Report bugs to <open-axiom-bugs@lists.sf.net>.
#
@@ -713,8 +713,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
# Identity of this package.
PACKAGE_NAME='OpenAxiom'
PACKAGE_TARNAME='openaxiom'
-PACKAGE_VERSION='1.3.0-2008-10-18'
-PACKAGE_STRING='OpenAxiom 1.3.0-2008-10-18'
+PACKAGE_VERSION='1.3.0-2008-10-21'
+PACKAGE_STRING='OpenAxiom 1.3.0-2008-10-21'
PACKAGE_BUGREPORT='open-axiom-bugs@lists.sf.net'
ac_unique_file="src/Makefile.pamphlet"
@@ -1404,7 +1404,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures OpenAxiom 1.3.0-2008-10-18 to adapt to many kinds of systems.
+\`configure' configures OpenAxiom 1.3.0-2008-10-21 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1474,7 +1474,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of OpenAxiom 1.3.0-2008-10-18:";;
+ short | recursive ) echo "Configuration of OpenAxiom 1.3.0-2008-10-21:";;
esac
cat <<\_ACEOF
@@ -1578,7 +1578,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-OpenAxiom configure 1.3.0-2008-10-18
+OpenAxiom configure 1.3.0-2008-10-21
generated by GNU Autoconf 2.60
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1592,7 +1592,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by OpenAxiom $as_me 1.3.0-2008-10-18, which was
+It was created by OpenAxiom $as_me 1.3.0-2008-10-21, which was
generated by GNU Autoconf 2.60. Invocation command line was
$ $0 $@
@@ -26097,7 +26097,7 @@ exec 6>&1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by OpenAxiom $as_me 1.3.0-2008-10-18, which was
+This file was extended by OpenAxiom $as_me 1.3.0-2008-10-21, which was
generated by GNU Autoconf 2.60. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -26146,7 +26146,7 @@ Report bugs to <bug-autoconf@gnu.org>."
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-OpenAxiom config.status 1.3.0-2008-10-18
+OpenAxiom config.status 1.3.0-2008-10-21
configured by $0, generated by GNU Autoconf 2.60,
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
diff --git a/configure.ac b/configure.ac
index 5a8164ac..7bcdd02c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,6 @@
sinclude(config/open-axiom.m4)
sinclude(config/aclocal.m4)
-AC_INIT([OpenAxiom], [1.3.0-2008-10-18],
+AC_INIT([OpenAxiom], [1.3.0-2008-10-21],
[open-axiom-bugs@lists.sf.net])
AC_CONFIG_AUX_DIR(config)
diff --git a/configure.ac.pamphlet b/configure.ac.pamphlet
index 3deb4496..cea0e714 100644
--- a/configure.ac.pamphlet
+++ b/configure.ac.pamphlet
@@ -1126,7 +1126,7 @@ information:
<<Autoconf init>>=
sinclude(config/open-axiom.m4)
sinclude(config/aclocal.m4)
-AC_INIT([OpenAxiom], [1.3.0-2008-10-18],
+AC_INIT([OpenAxiom], [1.3.0-2008-10-21],
[open-axiom-bugs@lists.sf.net])
@
diff --git a/src/ChangeLog b/src/ChangeLog
index 4596fc9f..434c3c3f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
+2008-10-22 Gabriel Dos Reis <gdr@cs.tamu.edu>
+
+ * algebra/net.spad.pamphlet (InputOutputBinaryFile): New.
+ (position$InputBinaryFile): New.
+ (position!$InputBinaryFile): Likewise.
+ * algebra/exposed.lsp.pamphlet: Expose InputOutputBinaryFile.
+ * algebra/Makefile.pamphlet (axiom_algebra_layer_user): Add IOBFILE.
+
2008-10-21 Gabriel Dos Reis <gdr@cs.tamu.edu>
* boot/ast.boot: Expand on native call translation.
diff --git a/src/algebra/Makefile.in b/src/algebra/Makefile.in
index f3521c0a..2bf2dc80 100644
--- a/src/algebra/Makefile.in
+++ b/src/algebra/Makefile.in
@@ -826,7 +826,8 @@ axiom_algebra_layer_user = \
LETAST SUCHAST RDUCEAST COLONAST ADDAST CAPSLAST \
CASEAST HASAST ISAST CATAST WHEREAST COMMAAST \
QQUTAST DEFAST MACROAST SPADXPT SPADAST \
- INBFILE OUTBFILE RGBCMDL RGBCSPC CTORKIND CTOR
+ INBFILE OUTBFILE IOBFILE RGBCMDL RGBCSPC CTORKIND \
+ CTOR
axiom_algebra_layer_user_nrlibs = \
$(addsuffix .NRLIB/code.$(FASLEXT),$(axiom_algebra_layer_user))
@@ -881,10 +882,13 @@ SPADAST.NRLIB/code.$(FASLEXT): \
CLLCTAST LSTAST EXITAST RETAST CRCEAST PRTDAST RSTRCAST \
SEGAST SEQAST LETAST SUCHTAST COLONAST CASEAST HASAST \
ISAST))
+
INBFILE.NRLIB/code.$(FASLEXT): $(OUT)/FNAME.$(FASLEXT) \
$(OUT)/INBCON.$(FASLEXT) $(OUT)/STRING.$(FASLEXT)
OUTBFILE.NRLIB/code.$(FASLEXT): $(OUT)/FNAME.$(FASLEXT) \
$(OUT)/OUTBCON.$(FASLEXT) $(OUT)/STRING.$(FASLEXT)
+IOBFILE.NRLIB/code.$(FASLEXT): $(OUT)/INBFILE.$(FASLEXT) \
+ $(OUT)/OUTBFILE.$(FASLEXT)
CTOR.NRLIB/code.$(FASLEXT): $(OUT)/CTORKIND.$(FASLEXT) \
$(OUT)/IDENT.$(FASLEXT)
diff --git a/src/algebra/Makefile.pamphlet b/src/algebra/Makefile.pamphlet
index 609786e6..16cb9d93 100644
--- a/src/algebra/Makefile.pamphlet
+++ b/src/algebra/Makefile.pamphlet
@@ -1253,7 +1253,8 @@ axiom_algebra_layer_user = \
LETAST SUCHAST RDUCEAST COLONAST ADDAST CAPSLAST \
CASEAST HASAST ISAST CATAST WHEREAST COMMAAST \
QQUTAST DEFAST MACROAST SPADXPT SPADAST \
- INBFILE OUTBFILE RGBCMDL RGBCSPC CTORKIND CTOR
+ INBFILE OUTBFILE IOBFILE RGBCMDL RGBCSPC CTORKIND \
+ CTOR
axiom_algebra_layer_user_nrlibs = \
$(addsuffix .NRLIB/code.$(FASLEXT),$(axiom_algebra_layer_user))
@@ -1308,10 +1309,13 @@ SPADAST.NRLIB/code.$(FASLEXT): \
CLLCTAST LSTAST EXITAST RETAST CRCEAST PRTDAST RSTRCAST \
SEGAST SEQAST LETAST SUCHTAST COLONAST CASEAST HASAST \
ISAST))
+
INBFILE.NRLIB/code.$(FASLEXT): $(OUT)/FNAME.$(FASLEXT) \
$(OUT)/INBCON.$(FASLEXT) $(OUT)/STRING.$(FASLEXT)
OUTBFILE.NRLIB/code.$(FASLEXT): $(OUT)/FNAME.$(FASLEXT) \
$(OUT)/OUTBCON.$(FASLEXT) $(OUT)/STRING.$(FASLEXT)
+IOBFILE.NRLIB/code.$(FASLEXT): $(OUT)/INBFILE.$(FASLEXT) \
+ $(OUT)/OUTBFILE.$(FASLEXT)
CTOR.NRLIB/code.$(FASLEXT): $(OUT)/CTORKIND.$(FASLEXT) \
$(OUT)/IDENT.$(FASLEXT)
diff --git a/src/algebra/exposed.lsp.pamphlet b/src/algebra/exposed.lsp.pamphlet
index 18e6384f..9d54ae9c 100644
--- a/src/algebra/exposed.lsp.pamphlet
+++ b/src/algebra/exposed.lsp.pamphlet
@@ -201,6 +201,7 @@
(|InfiniteTupleFunctions3| . ITFUN3)
(|Infinity| . INFINITY)
(|InputBinaryFile| . INBFILE)
+ (|InputOutputBinaryFile| . IOBFILE)
(|Integer| . INT)
(|IntegerCombinatoricFunctions| . COMBINAT)
(|IntegerLinearDependence| . ZLINDEP)
diff --git a/src/algebra/net.spad.pamphlet b/src/algebra/net.spad.pamphlet
index c44130e2..ba8bfdc7 100644
--- a/src/algebra/net.spad.pamphlet
+++ b/src/algebra/net.spad.pamphlet
@@ -130,6 +130,10 @@ InputBinaryFile(): Public == Private where
++ eof?(ifile) holds when the last read reached end of file.
isOpen?: % -> Boolean
++ open?(ifile) holds if `ifile' is in open state.
+ position: % -> SingleInteger
+ ++ position(f) returns the current byte-position in the file `f'.
+ position!: (%,SingleInteger) -> SingleInteger
+ ++ position(f,p) sets the current byte-position to `i'.
Private == add
Rep == Record(stream: SExpression, filename: FileName, eof: Boolean)
inputBinaryFile(f: FileName) ==
@@ -153,6 +157,15 @@ InputBinaryFile(): Public == Private where
rep(ifile).stream := closeFile(rep(ifile).stream)$Lisp
rep(ifile).eof := true
ifile
+ position ifile ==
+ isOpen? ifile =>
+ FILE_-POSITION(rep(ifile).stream)$Lisp
+ error "file is not open"
+ position!(ifile,p) ==
+ isOpen? ifile =>
+ FILE_-POSITION(rep(ifile).stream,p)$Lisp
+ p
+ error "file is not open"
coerce(ifile: %): OutputForm ==
rep(ifile).filename::OutputForm
@
@@ -197,6 +210,35 @@ OutputBinaryFile(): Public == Private where
rep(ifile).filename::OutputForm
@
+\subsection{The InputOutputBinaryFile domain}
+
+<<domain IOBFILE InputOutputBinaryFile>>=
+)abbrev domain IOBFILE InputOutputBinaryFile
+++ Author: Gabriel Dos Reis
+++ Date Created: October 21, 2008
+++ Date Last Modified: October 21, 2008
+++ Description:
+++ This domain provides representation for binary files open
+++ for input and output operations.
+++ See Also: InputBinaryFile, OutputBinaryFile
+InputOutputBinaryFile(): Public == Private where
+ Public == Join(InputOutputByteConduit, CoercibleTo OutputForm) with
+ inputOutputBinaryFile: FileName -> %
+ ++ inputOutputBinaryFile(f) returns an input/output conduit obtained
+ ++ by opening the file designated by `f' as a binary file.
+ inputOutputBinaryFile: String -> %
+ ++ inputOutputBinaryFile(f) returns an input/output conduit obtained
+ ++ by opening the file named by `f' as a binary file.
+ isOpen?: % -> Boolean
+ ++ isOpen?(f) holds if `f' is in open state.
+ Private == (InputBinaryFile, OutputBinaryFile) add
+ Rep == Record(stream: SExpression, filename: FileName)
+ inputOutputBinaryFile(f: FileName) ==
+ per [openBinaryFile(f::String,bothWays$IOMode)$Lisp,f]
+ inputOutputBinaryFile(f: String) ==
+ per [openBinaryFile(f,bothWays$IOMode)$Lisp,f::FileName]
+@
+
\section{The Hostname domain}
@@ -289,6 +331,7 @@ PortNumber(): Public == Private where
<<domain INBFILE InputBinaryFile>>
<<domain OUTBFILE OutputBinaryFile>>
+<<domain IOBFILE InputOutputBinaryFile>>
<<domain HOSTNAME Hostname>>
<<domain PORTNUM PortNumber>>