[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #45799] handle local variables in $(call )
From: |
Thierry LARMOIRE |
Subject: |
[bug #45799] handle local variables in $(call ) |
Date: |
Thu, 20 Aug 2015 12:10:13 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 |
URL:
<http://savannah.gnu.org/bugs/?45799>
Summary: handle local variables in $(call )
Project: make
Submitted by: tlarmoire
Submitted on: Thu 20 Aug 2015 12:10:12 PM GMT
Severity: 3 - Normal
Item Group: Enhancement
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Component Version: None
Operating System: Any
Fixed Release: None
Triage Status: None
_______________________________________________________
Details:
add a lset function
$(lset var_name,value)
function_table_entry
...
{ STRING_SIZE_TUPLE("lset"), 2, 2, 1, func_lset},
static char *
func_lset (char *o, char **argv, const char *funcname UNUSED)
{
if(argv[0] && argv[1])
{
define_variable(argv[0],strlen(argv[0]),argv[1],o_command,0);
o = variable_buffer_output (o, argv[1], strlen (argv[1]));
}
return o;
}
note, this defines locals in $(foreach ) also :
$(foreach src,$(srcs),$(lset obj,$(subst .c,.o,$(src)))$(info $(obj)))
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45799>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #45799] handle local variables in $(call ),
Thierry LARMOIRE <=