Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
clim-tos
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alastair Bridgewater
clim-tos
Commits
65a14ed9
Commit
65a14ed9
authored
7 years ago
by
Daniel Kochmański
Browse files
Options
Downloads
Patches
Plain Diff
clim-conditions: remove pre-ansi module
parent
e367bcaa
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
sys/load-clim2.lisp
+1
-1
1 addition, 1 deletion
sys/load-clim2.lisp
sys/sysdcl-pc.lisp
+0
-5
0 additions, 5 deletions
sys/sysdcl-pc.lisp
sys/sysdcl.lisp
+1
-7
1 addition, 7 deletions
sys/sysdcl.lisp
utils/condpat.lisp
+0
-50
0 additions, 50 deletions
utils/condpat.lisp
with
2 additions
and
63 deletions
sys/load-clim2.lisp
+
1
−
1
View file @
65a14ed9
...
...
@@ -10,7 +10,7 @@
;; CLIM 2.0
clim-sys
clim-silica
clim-internals
clx-clim
genera-clim
;; CLIM 0.9
clim-conditions
clim-shared
clim-stream
clim-shared
clim-stream
silica
windshield
on-x
on-genera
))
(
when
(
find-package
pkg
)
(
delete-package
pkg
)))
...
...
This diff is collapsed.
Click to expand it.
sys/sysdcl-pc.lisp
+
0
−
5
View file @
65a14ed9
...
...
@@ -56,11 +56,6 @@
CCL-2
)
;Except for CLOSE (and WITH-OPEN-STREAM)
(
pushnew
:clim-uses-lisp-stream-functions
*features*
)
;;; CLIM-ANSI-Conditions means this lisp truly supports the ANSI CL condition system
;;; CLIM-Conditions means that it has a macro called DEFINE-CONDITION but that it works
;;; like Allegro 3.1.13 or Lucid.
(
pushnew
:CLIM-ANSI-Conditions
*features*
)
#+
Allegro
(
pushnew
:allegro-v4.0-constructors
*features*
)
...
...
This diff is collapsed.
Click to expand it.
sys/sysdcl.lisp
+
1
−
7
View file @
65a14ed9
...
...
@@ -74,11 +74,6 @@
SBCL
)
(
pushnew
:clim-uses-lisp-stream-functions
*features*
)
;;; CLIM-ANSI-Conditions means this lisp truly supports the ANSI CL condition system
;;; CLIM-Conditions means that it has a macro called DEFINE-CONDITION but that it works
;;; like allegro 3.1.13 or Lucid.
(
pushnew
:clim-ansi-conditions
*features*
)
#+
allegro
(
pushnew
:allegro-v4.0-constructors
*features*
)
...
...
@@ -126,7 +121,6 @@
"reader"
"clos-patches"
"clos"
#+
CLIM-conditions
"condpat"
;get the define-condition macro
;; General Lisp extensions
"utilities"
...
...
@@ -148,7 +142,7 @@
;; Basic utilities for Silica and CLIM
"clim-macros"
(
"transformations"
#+
CLIM-conditions
(
:load-before-compile
"condpat"
))
"transformations"
"regions"
"region-arithmetic"
"extended-regions"
...
...
This diff is collapsed.
Click to expand it.
utils/condpat.lisp
deleted
100644 → 0
+
0
−
50
View file @
e367bcaa
;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Package: CLIM-UTILS; Base: 10; Lowercase: Yes -*-
;; See the file LICENSE for the full license governing this code.
;;
(
in-package
:clim-utils
)
;;;"Copyright (c) 1990 International Lisp Associates. All rights reserved."
;;; Lucid and Franz have an old syntax for defining conditions. We define
;;; a macro here which supports [a subset of] the ANSI syntax and which
;;; forwards to their syntax. Then we can just write DEFINE-CONDITION
;;; with [relative] impunity. I suppose there is some question about
;;; whether this macro should be in all implementations so that we can
;;; detect the non-portable cases more easily. I'll think about it.
(
defmacro
define-condition
(
name
parent-types
&optional
slots
&rest
options
)
(
let
((
readers
nil
)
(
real-slots
slots
)
(
trampoline-define-condition
(
intern
(
symbol-name
'define-condition
)
(
find-package
#+
Lucid
:lucid-common-lisp
#-
Lucid
:conditions
)))
(
conc-name
(
format
nil
"~A-~A-"
name
'accessor-for
)))
(
unless
parent-types
(
setq
parent-types
'
(
condition
)))
(
unless
(
keywordp
(
first
slots
))
(
setq
real-slots
nil
)
(
dolist
(
slot
slots
)
(
let
((
reader
(
getf
(
rest
slot
)
'
:reader
)))
(
when
reader
(
let
((
trampoline
(
intern
(
format
nil
"~A~A"
conc-name
(
first
slot
))
(
symbol-package
name
))))
;; Not likely to be EQL, but can causes an infinite loop
;; in Lucid if it is...
(
unless
(
eq
trampoline
reader
)
(
push
`
(
eval-when
(
compile
load
eval
)
(
proclaim
'
(
inline
,
reader
)))
readers
)
(
push
`
(
defun
,
reader
(
condition
)
(
,
trampoline
condition
))
readers
)))))
(
let
((
initarg
(
getf
(
rest
slot
)
'
:initarg
)))
(
unless
(
eq
initarg
(
intern
(
symbol-name
(
first
slot
))
*keyword-package*
))
(
error
"We can't support initargs to DEFINE-CONDITION that ~
don't match the slot name."
)))
(
let
((
initform
(
getf
(
rest
slot
)
'
:initform
)))
(
if
initform
(
push
`
(
,
(
first
slot
)
,
initform
)
real-slots
)
(
push
`
(
,
(
first
slot
))
real-slots
)))))
`
(
progn
(
,
trampoline-define-condition
,
name
,
parent-types
,
(
nreverse
real-slots
)
(
:conc-name
,
conc-name
)
,@
options
)
,@
(
nreverse
readers
))))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment