Closed muka closed 4 years ago
Hi @muka , thanks for the appreciation.
It seems you're misusing the less sign:
% echo 1 > 1
% echo 2 > 2
% echo 3 > 3
% cat < 1 2 3
2
3
This happens because the content of 1
file is sent through stdin and 2
and 3
names are passed as command line arguments to the program that reads them out on it's own.
Short answer: you can omit <
sign or combine output of multiple files before sending it to the generator <(cat a.xml b.xml c.xml)
Oh sorry, my fault!
Thank you
Hi, first of all great work! I am working on this repo thanks to your work https://github.com/muka/network_manager
I noticed that using a script like that
The generated code will miss the initialization method and struct for the interface of the first file listed. As a workaround I am adding an empty file with just a
<node />
as first of list and this work as a workaround.You can test this behavior here by cloning the repo and running
make generate
. TheAccessPoint
interface will miss theNewNetworkManager_AccessPoint
method and corresponding struct. Adding an empty node definition nameda.xml
fixes thisThank you