From 11f574534b0537ecc20acddde08773cf2a7f49c7 Mon Sep 17 00:00:00 2001 From: Gerald Jay Sussman Date: Thu, 9 Nov 1989 03:45:06 +0000 Subject: [PATCH] Add optional arithmetic-interface code. --- v7/src/runtime/option.scm | 9 +++++---- v7/src/runtime/runtime.pkg | 17 ++++++++++++++++- v7/src/runtime/version.scm | 4 ++-- v8/src/runtime/runtime.pkg | 17 ++++++++++++++++- 4 files changed, 39 insertions(+), 8 deletions(-) diff --git a/v7/src/runtime/option.scm b/v7/src/runtime/option.scm index 7586cb612..f9cccdb87 100644 --- a/v7/src/runtime/option.scm +++ b/v7/src/runtime/option.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/option.scm,v 14.5 1989/08/03 23:06:31 cph Exp $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/option.scm,v 14.6 1989/11/09 03:44:56 gjs Exp $ Copyright (c) 1988, 1989 Massachusetts Institute of Technology @@ -61,6 +61,7 @@ MIT in each case. |# name)) (define options - '((FORMAT ((RUNTIME FORMAT) (INITIALIZE-PACKAGE!) "format")) - (STARBASE - ((RUNTIME OLD-STARBASE-GRAPHICS) (INITIALIZE-PACKAGE!) "Sgraph")))) \ No newline at end of file + '((ARITHMETIC-INTERFACE ((RUNTIME NUMBER INTERFACE) #F "numint")) + (FORMAT ((RUNTIME FORMAT) (INITIALIZE-PACKAGE!) "format")) + (STARBASE ((RUNTIME OLD-STARBASE-GRAPHICS) (INITIALIZE-PACKAGE!) "Sgraph")) + )) \ No newline at end of file diff --git a/v7/src/runtime/runtime.pkg b/v7/src/runtime/runtime.pkg index 39a0817b2..fae7bc0aa 100644 --- a/v7/src/runtime/runtime.pkg +++ b/v7/src/runtime/runtime.pkg @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/runtime.pkg,v 14.54 1989/10/27 04:43:21 cph Exp $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/runtime.pkg,v 14.55 1989/11/09 03:45:00 gjs Exp $ Copyright (c) 1988, 1989 Massachusetts Institute of Technology @@ -1026,6 +1026,21 @@ MIT in each case. |# (export (runtime number-parser) bad-range) (initialization (initialize-package!))) + +(define-package (runtime number interface) + (file-case options + ((load) "numint") + (else)) + (parent (runtime number)) + (export () + complex-package + integer-package + make-accumulation-operator + make-arithmetic-package + make-inverse-accumulation-operator + rational-package + real-package)) + (define-package (runtime number-parser) (files "numpar") (parent ()) diff --git a/v7/src/runtime/version.scm b/v7/src/runtime/version.scm index 6f5fcd712..6e386a7dd 100644 --- a/v7/src/runtime/version.scm +++ b/v7/src/runtime/version.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/version.scm,v 14.64 1989/10/31 04:41:28 cph Exp $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/version.scm,v 14.65 1989/11/09 03:45:06 gjs Exp $ Copyright (c) 1988, 1989 Massachusetts Institute of Technology @@ -45,7 +45,7 @@ MIT in each case. |# '())) (add-system! microcode-system) (add-event-receiver! event:after-restore snarf-microcode-version!) - (add-identification! "Runtime" 14 64)) + (add-identification! "Runtime" 14 65)) (define microcode-system) (define (snarf-microcode-version!) diff --git a/v8/src/runtime/runtime.pkg b/v8/src/runtime/runtime.pkg index 57cf6049a..663582d9c 100644 --- a/v8/src/runtime/runtime.pkg +++ b/v8/src/runtime/runtime.pkg @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/runtime.pkg,v 14.54 1989/10/27 04:43:21 cph Exp $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/runtime.pkg,v 14.55 1989/11/09 03:45:00 gjs Exp $ Copyright (c) 1988, 1989 Massachusetts Institute of Technology @@ -1026,6 +1026,21 @@ MIT in each case. |# (export (runtime number-parser) bad-range) (initialization (initialize-package!))) + +(define-package (runtime number interface) + (file-case options + ((load) "numint") + (else)) + (parent (runtime number)) + (export () + complex-package + integer-package + make-accumulation-operator + make-arithmetic-package + make-inverse-accumulation-operator + rational-package + real-package)) + (define-package (runtime number-parser) (files "numpar") (parent ()) -- 2.25.1