Commit 67d72714 authored by Hugo Moreau's avatar Hugo Moreau Committed by Etienne Renault
Browse files

Blackbox: Handling global array

Blackbox can now handle global array.

 * main.go : Here.
parent 35a52b1a
......@@ -506,7 +506,10 @@ func insertGlobalInBlackbox(meta *transform.Meta, filename string) {
fmt.Println(os.Stderr, err.Error())
os.Exit(1)
}
transform.Apply(node, meta, &transform.GlobalToState{GlobalVar: globalVar, GlobalBlackbox: globalObj})
transform.ApplyAll(node, meta, []transform.Transform{
&transform.GlobalToState{GlobalVar: globalVar, GlobalBlackbox: globalObj},
&transform.DoubleBrackets{},
})
file, err := os.OpenFile(filename, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0644)
if err != nil {
fmt.Println(os.Stderr, err.Error())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment