projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
978329c
)
Warn of undefined C-enum constants; do not error.
author
Matt Birkholz
<matt@birkholz.chandler.az.us>
Tue, 16 Aug 2011 22:16:30 +0000
(15:16 -0700)
committer
Matt Birkholz
<matt@birkholz.chandler.az.us>
Tue, 16 Aug 2011 22:16:30 +0000
(15:16 -0700)
src/ffi/syntax.scm
patch
|
blob
|
history
diff --git
a/src/ffi/syntax.scm
b/src/ffi/syntax.scm
index 43daca4bfd558230bcbae0b1025fad31b34e8b5c..00877991cec6e3c633edc5781192aedbf336ac1c 100644
(file)
--- a/
src/ffi/syntax.scm
+++ b/
src/ffi/syntax.scm
@@
-238,7
+238,9
@@
USA.
(define (lookup-enum-value name whole-form includes)
(let ((entry (assq name (c-includes/enum-values includes))))
(if (not entry)
- (serror whole-form "constant not declared")
+ (begin
+ (warn "no declaration of constant:" name)
+ 0)
(cdr entry))))
(define (c-enum-constant-values name form includes)