bugmake - Bugs: bug #45799, handle local variables in $(call )

 
 

bug #45799: handle local variables in $(call )

Submitted by:  Thierry LARMOIRE <tlarmoire>
Submitted on:  Thu 20 Aug 2015 12:10:12 PM UTC  
 
Severity:  3 - Normal Item Group:  Enhancement
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  None Operating System:  Any
Fixed Release:  None Triage Status:  None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 20 Aug 2015 12:10:12 PM UTC, original submission:

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)))

Thierry LARMOIRE <tlarmoire>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by tlarmoire (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.3