mirror of
https://github.com/mirror/make.git
synced 2025-01-14 06:10:12 +08:00
Map Guile variable objects to the empty string.
In Guile 2.0, (define ...) results in a variable object. Ensure make converts that to an empty string to avoid spurious errors.
This commit is contained in:
parent
ef6461611b
commit
e3b394f3f0
@ -1,5 +1,9 @@
|
||||
2012-01-29 Paul Smith <psmith@gnu.org>
|
||||
|
||||
* gmk-default.scm (to-string-maybe): Variables map to empty strings.
|
||||
In Guile 2.0, (define ...) results in a variable object so make
|
||||
sure that maps to an empty string in make.
|
||||
|
||||
* variable.c (parse_variable_definition): New POSIX assignment ::=
|
||||
Take a struct variable to return more information after parsing.
|
||||
(assign_variable_definition): New parse_variable_definition() call.
|
||||
|
@ -20,6 +20,7 @@
|
||||
;; In GNU make, "false" is the empty string
|
||||
((or (not x)
|
||||
(unspecified? x)
|
||||
(variable? x)
|
||||
(null? x)
|
||||
(and (string? x) (string-null? x)))
|
||||
#f)
|
||||
|
Loading…
Reference in New Issue
Block a user