# and bare commands, events
for x in functions.getElementsByTagName("function"):
# hack: tasks don't show up with a command/event attribute
- if x.hasAttribute("event") or x.hasAttribute("command"):
+ # don't include commands/events from interfaces
+ if (x.hasAttribute("event") or x.hasAttribute("command")) and (not xml_tag(x, "interface-ref")):
incomponent = get1(x, "component-ref").getAttribute("qname")
if speclist.has_key(incomponent):
speclist[incomponent].append(x)
unshift @ncc_args, "-fnesc-dump=components(wiring)";
unshift @ncc_args, "-fnesc-dump=interfaces";
unshift @ncc_args, "-fnesc-dump=functions(!global())";
-unshift @ncc_args, "-fnesc-dump=referenced(interfaces,components)";
+unshift @ncc_args, "-fnesc-dump=referenced(interfaces,components,functions)";
unshift @ncc_args, "$exec_prefix/bin/ncc";
print STDERR join(' ', @ncc_args), "\n" if $verbose;